/base/security/certificate_framework/frameworks/js/napi/certificate/src/ |
H A D | napi_x509_distinguished_name.cpp | 40 HcfX509DistinguishedName *x509Name = nullptr; member 92 context->errCode = HcfX509DistinguishedNameCreate(context->inPara, context->paraIsString, &context->x509Name); in CreateDistinguishedNameExecute() 108 NapiX509DistinguishedName *x509NameClass = new (std::nothrow) NapiX509DistinguishedName(context->x509Name); in CreateDistinguishedNameComplete() 114 CfObjDestroy(context->x509Name); in CreateDistinguishedNameComplete() 132 HcfX509DistinguishedName *x509Name = GetX509DistinguishedName(); in GetEncoded() local 134 CfResult ret = x509Name->getEncode(x509Name, &blob); in GetEncoded() 156 HcfX509DistinguishedName *x509Name = GetX509DistinguishedName(); in GetName() local 159 CfResult ret = x509Name->getName(x509Name, NUL in GetName() 195 NapiX509DistinguishedName *x509Name = nullptr; NapiGetEncoded() local 208 NapiX509DistinguishedName *x509Name = nullptr; NapiGetName() local [all...] |
H A D | napi_x509_certificate.cpp | 868 HcfX509DistinguishedName *x509Name = nullptr; in GetIssuerX500DistinguishedName() local 869 ret = HcfX509DistinguishedNameCreate(&blob, true, &x509Name); in GetIssuerX500DistinguishedName() 870 if (ret != CF_SUCCESS || x509Name == nullptr) { in GetIssuerX500DistinguishedName() 878 NapiX509DistinguishedName *x509NameClass = new (std::nothrow) NapiX509DistinguishedName(x509Name); in GetIssuerX500DistinguishedName() 881 CfObjDestroy(x509Name); in GetIssuerX500DistinguishedName() 905 HcfX509DistinguishedName *x509Name = nullptr; in GetSubjectX500DistinguishedName() local 906 ret = HcfX509DistinguishedNameCreate(&blob, true, &x509Name); in GetSubjectX500DistinguishedName() 907 if (ret != CF_SUCCESS || x509Name == nullptr) { in GetSubjectX500DistinguishedName() 915 NapiX509DistinguishedName *x509NameClass = new (std::nothrow) NapiX509DistinguishedName(x509Name); in GetSubjectX500DistinguishedName() 918 CfObjDestroy(x509Name); in GetSubjectX500DistinguishedName() [all...] |
H A D | napi_x509_crl_entry.cpp | 449 HcfX509DistinguishedName *x509Name = nullptr; in GetCertIssuerX500DistinguishedName() local 450 CfResult ret = HcfX509DistinguishedNameCreate(&blob, true, &x509Name); in GetCertIssuerX500DistinguishedName() 458 NapiX509DistinguishedName *x509NameClass = new (std::nothrow) NapiX509DistinguishedName(x509Name); in GetCertIssuerX500DistinguishedName() 461 CfObjDestroy(x509Name); in GetCertIssuerX500DistinguishedName()
|
H A D | napi_x509_crl.cpp | 826 HcfX509DistinguishedName *x509Name = nullptr; in GetIssuerX500DistinguishedName() local 827 ret = HcfX509DistinguishedNameCreate(&blob, true, &x509Name); in GetIssuerX500DistinguishedName() 835 NapiX509DistinguishedName *x509NameClass = new (std::nothrow) NapiX509DistinguishedName(x509Name); in GetIssuerX500DistinguishedName() 838 CfObjDestroy(x509Name); in GetIssuerX500DistinguishedName()
|
/base/security/certificate_framework/test/unittest/v1.0/src/ |
H A D | x509_distinguished_name_test.cpp | 104 HcfX509DistinguishedName *x509Name = nullptr; in SetUpTestCase() local 105 ret = HcfX509DistinguishedNameCreate(&out, true, &x509Name); in SetUpTestCase() 107 EXPECT_NE(x509Name, nullptr); in SetUpTestCase() 108 g_x509Name = x509Name; in SetUpTestCase() 110 HcfX509DistinguishedNameImpl *x509NameImpl = (HcfX509DistinguishedNameImpl *)x509Name; in SetUpTestCase() 145 HcfX509DistinguishedName *x509Name = nullptr; in HWTEST_F() local 146 ret = HcfX509DistinguishedNameCreate(&out, true, &x509Name); in HWTEST_F() 148 EXPECT_NE(x509Name, nullptr); in HWTEST_F() 151 x509Name->base.destroy(NULL); in HWTEST_F() 153 x509Name in HWTEST_F() 173 HcfX509DistinguishedName *x509Name = nullptr; HWTEST_F() local 302 HcfX509DistinguishedName x509Name; HWTEST_F() local 379 HcfX509DistinguishedName x509Name; HWTEST_F() local [all...] |
/base/update/updater/services/package/pkg_verify/ |
H A D | openssl_util.cpp | 244 std::string GetStringFromX509Name(X509_NAME *x509Name) in GetStringFromX509Name() argument 246 if (x509Name == nullptr) { in GetStringFromX509Name() 251 GetTextContentFromX509Name(x509Name, NID_countryName, country); in GetStringFromX509Name() 254 GetTextContentFromX509Name(x509Name, NID_organizationName, organization); in GetStringFromX509Name() 257 GetTextContentFromX509Name(x509Name, NID_organizationalUnitName, organizationalUnitName); in GetStringFromX509Name() 260 GetTextContentFromX509Name(x509Name, NID_commonName, commonName); in GetStringFromX509Name()
|
H A D | openssl_util.h | 29 std::string GetStringFromX509Name(X509_NAME *x509Name);
|
/base/security/certificate_framework/frameworks/adapter/v1.0/src/ |
H A D | certificate_openssl_common.c | 175 X509_NAME *x509Name = d2i_X509_NAME(NULL, &data, derLen);
in ConvertNameDerDataToString() local 176 if (x509Name == NULL) {
in ConvertNameDerDataToString() 177 LOGE("x509Name is null!");
in ConvertNameDerDataToString() 181 char *name = X509_NAME_oneline(x509Name, NULL, 0);
in ConvertNameDerDataToString() 185 X509_NAME_free(x509Name);
in ConvertNameDerDataToString() 192 X509_NAME_free(x509Name);
in ConvertNameDerDataToString() 197 X509_NAME_free(x509Name);
in ConvertNameDerDataToString()
|
H A D | x509_crl_openssl.c | 237 X509_NAME *x509Name = X509_CRL_get_issuer(crl); in GetIssuerName() local 238 if (x509Name == NULL) { in GetIssuerName() 243 char *issuer = X509_NAME_oneline(x509Name, NULL, 0); in GetIssuerName()
|