Home
last modified time | relevance | path

Searched refs:pemBio (Results 1 – 2 of 2) sorted by relevance

/base/update/updater/services/package/pkg_verify/
Dopenssl_util.cpp92 BIO *pemBio = BIO_new(BIO_s_mem()); in GetX509CertFromPemString() local
93 if (pemBio == nullptr) { in GetX509CertFromPemString()
97 if (BIO_write(pemBio, pemString.c_str(), strLen) != strLen) { in GetX509CertFromPemString()
98 BIO_free_all(pemBio); in GetX509CertFromPemString()
102 X509 *cert = PEM_read_bio_X509(pemBio, nullptr, nullptr, nullptr); in GetX509CertFromPemString()
106 BIO_free_all(pemBio); in GetX509CertFromPemString()
/base/security/appverify/interfaces/innerkits/appverify/src/util/
Dhap_cert_verify_openssl_utils.cpp42 BIO* pemBio = BIO_new(BIO_s_mem()); in GetX509CertFromPemString() local
43 if (pemBio == nullptr) { in GetX509CertFromPemString()
49 if (BIO_write(pemBio, pemString.c_str(), strLen) != strLen) { in GetX509CertFromPemString()
52 BIO_free_all(pemBio); in GetX509CertFromPemString()
55 X509* cert = PEM_read_bio_X509(pemBio, nullptr, nullptr, nullptr); in GetX509CertFromPemString()
56 BIO_free_all(pemBio); in GetX509CertFromPemString()