/* -*- Mode: C++; tab-width: 8; indent-tabs-mode: nil; c-basic-offset: 2 -*- */ /* vim: set ts=8 sts=2 et sw=2 tw=80: */ /* This code is made available to you under your choice of the following sets *oflicensingterms:
*/ /* This Source Code Form is subject to the terms of the Mozilla Public *License,v.2.0.IfacopyoftheMPLwasnotdistributedwiththis *file,Youcanobtainoneathttp://mozilla.org/MPL/2.0/.
*/ /* Copyright 2013 Mozilla Contributors * *LicensedundertheApacheLicense,Version2.0(the"License"); *youmaynotusethisfileexceptincompliancewiththeLicense. *YoumayobtainacopyoftheLicenseat * *http://www.apache.org/licenses/LICENSE-2.0 * *Unlessrequiredbyapplicablelaworagreedtoinwriting,software *distributedundertheLicenseisdistributedonan"ASIS"BASIS, *WITHOUTWARRANTIESORCONDITIONSOFANYKIND,eitherexpressorimplied. *SeetheLicenseforthespecificlanguagegoverningpermissionsand *limitationsundertheLicense.
*/
// ---------------------------------------------------------------------------- // SELECTED ERROR CODE EXPLANATIONS // // Result::ERROR_UNTRUSTED_CERT // means that the end-entity certificate was actively distrusted. // Result::ERROR_UNTRUSTED_ISSUER // means that path building failed because of active distrust. // Result::ERROR_INVALID_DER_TIME // means the DER-encoded time was unexpected, such as being before the // UNIX epoch (allowed by X500, but not valid here). // Result::ERROR_EXPIRED_CERTIFICATE // means the end entity certificate expired. // Result::ERROR_EXPIRED_ISSUER_CERTIFICATE // means the CA certificate expired. // Result::ERROR_UNKNOWN_ISSUER // means that the CA could not be found in the root store. // Result::ERROR_POLICY_VALIDATION_FAILED // means that an encoded policy could not be applied or wasn't present // when expected. Usually this is in the context of Extended Validation. // Result::ERROR_BAD_CERT_DOMAIN // means that the certificate's name couldn't be matched to the // reference identifier. // Result::ERROR_CERT_NOT_IN_NAME_SPACE // typically means the certificate violates name constraints applied // by the issuer. // Result::ERROR_BAD_DER // means the input was improperly encoded. // Result::ERROR_UNKNOWN_ERROR // means that an external library (NSS) provided an error we didn't // anticipate. See the map below in Result.h to add new ones. // Result::FATAL_ERROR_LIBRARY_FAILURE // is an unexpected fatal error indicating a library had an unexpected // failure, and we can't proceed. // Result::FATAL_ERROR_INVALID_ARGS // means that we violated our own expectations on inputs and there's a // bug somewhere. // Result::FATAL_ERROR_INVALID_STATE // means that we violated our own expectations on state and there's a // bug somewhere. // Result::FATAL_ERROR_NO_MEMORY // means a memory allocation failed, prohibiting validation. // ----------------------------------------------------------------------------
enumclass Result { #define MOZILLA_PKIX_MAP(name, value, nss_name) name = value,
MOZILLA_PKIX_MAP_LIST #undef MOZILLA_PKIX_MAP
};
// Returns the stringified name of the given result, e.g. "Result::Success", // or nullptr if result is unknown (invalid). constchar* MapResultToName(Result result);
// We write many comparisons as (x != Success), and this shortened name makes // those comparisons clearer, especially because the shortened name often // results in less line wrapping. staticconst Result Success = Result::Success;
Die Informationen auf dieser Webseite wurden
nach bestem Wissen sorgfältig zusammengestellt. Es wird jedoch weder Vollständigkeit, noch Richtigkeit,
noch Qualität der bereit gestellten Informationen zugesichert.
Bemerkung:
Die farbliche Syntaxdarstellung und die Messung sind noch experimentell.