Home
last modified time | relevance | path

Searched refs:certbio (Results 1 – 3 of 3) sorted by relevance

/ohos5.0/base/update/updater/services/package/pkg_algorithm/
H A Dpkg_algo_sign.cpp113 BIO *certbio = BIO_new_file(keyName_.c_str(), "r"); in GetPubkey() local
114 if (certbio == nullptr) { in GetPubkey()
118 X509 *rcert = PEM_read_bio_X509(certbio, nullptr, nullptr, nullptr); in GetPubkey()
121 BIO_free(certbio); in GetPubkey()
124 BIO_free(certbio); in GetPubkey()
/ohos5.0/base/update/updater/test/unittest/package/
H A Dpkg_verify_unittest.cpp93 BIO *certbio = BIO_new_file(GetTestPrivateKeyName(0).c_str(), "r"); in TestCertVerifyFailed() local
94 X509 *rcert = PEM_read_bio_X509(certbio, nullptr, nullptr, nullptr); in TestCertVerifyFailed()
95 if (certbio != nullptr) { in TestCertVerifyFailed()
96 BIO_free(certbio); in TestCertVerifyFailed()
129 BIO *certbio = BIO_new_file(GetTestPrivateKeyName(0).c_str(), "r"); in TestOpensslUtilFailed() local
130 X509 *cert = PEM_read_bio_X509(certbio, nullptr, nullptr, nullptr); in TestOpensslUtilFailed()
131 if (certbio != nullptr) { in TestOpensslUtilFailed()
132 BIO_free(certbio); in TestOpensslUtilFailed()
/ohos5.0/base/update/updater/services/package/pkg_verify/
H A Dopenssl_util.cpp119 BIO *certbio = BIO_new_file(filePath.c_str(), "r"); in GetX509CertFromPemFile() local
120 if (certbio == nullptr) { in GetX509CertFromPemFile()
125 X509 *cert = PEM_read_bio_X509(certbio, nullptr, nullptr, nullptr); in GetX509CertFromPemFile()
128 BIO_free_all(certbio); in GetX509CertFromPemFile()
131 BIO_free_all(certbio); in GetX509CertFromPemFile()