/base/security/certificate_framework/frameworks/adapter/v1.0/src/ |
D | x509_crl_openssl.c | 40 X509_CRL *crl; member 75 return ((HcfX509CRLOpensslImpl *)self)->crl; in GetCrl() 108 X509_CRL *crl = ((HcfX509CRLOpensslImpl *)self)->crl; in IsRevoked() local 109 if (crl == NULL) { in IsRevoked() 114 int32_t res = X509_CRL_get0_by_cert(crl, &rev, certOpenssl); in IsRevoked() 129 X509_CRL *crl = ((HcfX509CRLOpensslImpl *)self)->crl; in GetEncoded() local 130 if (crl == NULL) { in GetEncoded() 134 int32_t length = i2d_X509_CRL(crl, &out); in GetEncoded() 185 X509_CRL *crl = ((HcfX509CRLOpensslImpl *)self)->crl; in Verify() local 186 if (crl == NULL) { in Verify() [all …]
|
/base/security/appverify/interfaces/innerkits/appverify/src/init/ |
D | hap_crl_manager.cpp | 90 … X509_CRL* crl = HapCertVerifyOpensslUtils::GetX509CrlFromDerBuffer(crlsBuffer, hasUsed, crlLen); in ParseCrls() local 91 if (crl == nullptr) { in ParseCrls() 97 if (!HapCertVerifyOpensslUtils::GetIssuerFromX509Crl(crl, crlIssuer)) { in ParseCrls() 98 X509_CRL_free(crl); in ParseCrls() 106 crlsMap[crlIssuer] = crl; in ParseCrls() 161 void HapCrlManager::UpdateCrlByIssuer(const std::string& issuer, X509_CRL* crl) in UpdateCrlByIssuer() argument 163 if (crl == nullptr) { in UpdateCrlByIssuer() 170 crlsMap[issuer] = X509_CRL_dup(crl); in UpdateCrlByIssuer()
|
/base/security/certificate_framework/test/fuzztest/v1.0/x509crl_fuzzer/ |
D | x509crl_fuzzer.cpp | 115 X509_CRL *crl = X509_CRL_new(); in GetCrlStream() local 116 (void)X509_CRL_set_version(crl, TEST_VERSION); in GetCrlStream() 123 (void)X509_CRL_set_issuer_name(crl, issuer); in GetCrlStream() 128 (void)X509_CRL_set_lastUpdate(crl, g_lastUpdate); in GetCrlStream() 133 (void)X509_CRL_set_nextUpdate(crl, g_nextUpdate); in GetCrlStream() 143 (void)X509_CRL_set_nextUpdate(crl, g_rvTime); in GetCrlStream() 145 (void)X509_CRL_add0_revoked(crl, revoked); in GetCrlStream() 147 (void)X509_CRL_sort(crl); in GetCrlStream() 148 (void)X509_CRL_sign(crl, prikey, EVP_sha256()); in GetCrlStream() 149 int len = i2d_X509_CRL(crl, nullptr); in GetCrlStream() [all …]
|
/base/security/appverify/interfaces/innerkits/appverify/src/util/ |
D | hap_cert_verify_openssl_utils.cpp | 222 X509_CRL* crl = d2i_X509_CRL_bio(derBio, nullptr); in GetX509CrlFromDerBuffer() local 224 return crl; in GetX509CrlFromDerBuffer() 227 void HapCertVerifyOpensslUtils::WriteX509CrlToStream(std::ofstream& crlFile, X509_CRL* crl) in WriteX509CrlToStream() argument 239 if (crl == nullptr || i2d_X509_CRL_bio(derBio, crl) == 0) { in WriteX509CrlToStream() 452 X509_CRL* crl = sk_X509_CRL_value(crls, i); in GetCrlBySignedCertIssuer() local 453 if (crl == nullptr) { in GetCrlBySignedCertIssuer() 457 X509_NAME* crlIssuer = X509_CRL_get_issuer(crl); in GetCrlBySignedCertIssuer() 459 return crl; in GetCrlBySignedCertIssuer() 513 bool HapCertVerifyOpensslUtils::GetIssuerFromX509Crl(const X509_CRL* crl, std::string& issuer) in GetIssuerFromX509Crl() argument 515 if (crl == nullptr) { in GetIssuerFromX509Crl() [all …]
|
D | hap_verify_openssl_utils.cpp | 130 if (!HapCertVerifyOpensslUtils::VerifyCrl(certsChain, p7->d.sign->crl, pkcs7Context)) { in VerifyCertChain()
|
/base/security/appverify/interfaces/innerkits/appverify/include/util/ |
D | hap_cert_verify_openssl_utils.h | 42 DLL_EXPORT static bool GetIssuerFromX509Crl(const X509_CRL* crl, std::string& issuer); 46 DLL_EXPORT static void WriteX509CrlToStream(std::ofstream& crlFile, X509_CRL* crl);
|
/base/security/appverify/interfaces/innerkits/appverify/include/init/ |
D | hap_crl_manager.h | 50 DLL_EXPORT void UpdateCrlByIssuer(const std::string& issuer, X509_CRL* crl);
|
/base/security/huks/services/huks_standard/huks_engine/main/device_cert_manager/include/ |
D | dcm_attest.h | 105 struct HksAsn1Obj crl; member
|
/base/security/appverify/interfaces/innerkits/appverify_lite/src/ |
D | mbedtls_pkcs7.c | 565 …atic int32_t ParseSignedDataCrl(unsigned char **p, const unsigned char *end, mbedtls_x509_crl *crl) in ParseSignedDataCrl() argument 575 mbedtls_x509_crl_init(crl); in ParseSignedDataCrl() 576 rc = mbedtls_x509_crl_parse(crl, *p, len); in ParseSignedDataCrl() 622 rc = ParseSignedDataCrl(&p, end, &signedData->crl); in ParseSignedData() 701 mbedtls_x509_crl_free(&pkcs7->signedData.crl); in FreeSignedDataCrl() 984 static int32_t IsRevoked(const mbedtls_x509_crt *crt, const mbedtls_x509_crl *crl) in IsRevoked() argument 986 mbedtls_x509_crl_entry *cur = (mbedtls_x509_crl_entry *)(&crl->entry); in IsRevoked() 1003 static int32_t VerifyCrl(const mbedtls_x509_crt *crt, const mbedtls_x509_crl *crl) in VerifyCrl() argument 1005 const mbedtls_x509_crl *crlList = crl; in VerifyCrl() 1025 (mbedtls_x509_crl *)&pkcs7->signedData.crl, NULL, &flags, NULL, NULL); in VerifyClicert() [all …]
|
/base/security/appverify/interfaces/innerkits/appverify_lite/include/ |
D | mbedtls_pkcs7.h | 130 mbedtls_x509_crl crl; member
|
/base/security/certificate_framework/frameworks/js/napi/certificate/src/ |
D | napi_x509_crl.cpp | 51 HcfX509Crl *crl; member 925 context->errCode = HcfX509CrlCreate(context->encodingBlob, &context->crl); in CreateX509CrlExecute() 941 NapiX509Crl *x509CrlClass = new (std::nothrow) NapiX509Crl(context->crl); in CreateX509CrlComplete() 946 CfObjDestroy(context->crl); in CreateX509CrlComplete()
|
/base/security/huks/services/huks_standard/huks_engine/main/device_cert_manager/src/ |
D | dcm_attest.c | 582 ret += DcmAsn1ExtractTag(&val, &ext->crl, &val, ASN_1_TAG_TYPE_SEQ); in ParseAttestExtension()
|