Home
last modified time | relevance | path

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

/base/update/updater/services/package/pkg_verify/
H A Dopenssl_util.cpp93 BIO *pemBio = BIO_new(BIO_s_mem()); in GetX509CertFromPemString() local
94 if (pemBio == nullptr) { in GetX509CertFromPemString()
98 if (BIO_write(pemBio, pemString.c_str(), strLen) != strLen) { in GetX509CertFromPemString()
99 BIO_free_all(pemBio); in GetX509CertFromPemString()
103 X509 *cert = PEM_read_bio_X509(pemBio, nullptr, nullptr, nullptr); in GetX509CertFromPemString()
107 BIO_free_all(pemBio); in GetX509CertFromPemString()
/base/security/appverify/interfaces/innerkits/appverify/src/util/
H A 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()

Completed in 3 milliseconds