Lines Matching refs:x509

615         auto x509 = X509_Ptr(d2i_X509(nullptr, &p, pEnd - p));  in certificateChainSplit()  local
617 if (x509 == nullptr) { in certificateChainSplit()
634 auto x509 = X509_Ptr(d2i_X509(nullptr, &p, pEnd - p)); in parseX509Certificates() local
635 if (x509 == nullptr) { in parseX509Certificates()
639 parsedCertificates.push_back(std::move(x509)); in parseX509Certificates()
647 auto x509 = X509_Ptr(d2i_X509(nullptr, &p, certificate.size())); in certificateSignedByPublicKey() local
648 if (x509 == nullptr) { in certificateSignedByPublicKey()
679 if (X509_verify(x509.get(), pkey.get()) != 1) { in certificateSignedByPublicKey()
1090 auto x509 = X509_Ptr(X509_new()); in ecKeyPairGetPkcs12() local
1091 if (!x509.get()) { in ecKeyPairGetPkcs12()
1096 if (!X509_set_version(x509.get(), 2 /* version 3, but zero-based */)) { in ecKeyPairGetPkcs12()
1101 if (X509_set_pubkey(x509.get(), pkey.get()) != 1) { in ecKeyPairGetPkcs12()
1113 if (X509_set_serialNumber(x509.get(), asnSerial.get()) != 1) { in ecKeyPairGetPkcs12()
1123 X509_set_issuer_name(x509.get(), x509Issuer.get()) != 1) { in ecKeyPairGetPkcs12()
1133 X509_set_subject_name(x509.get(), x509Subject.get()) != 1) { in ecKeyPairGetPkcs12()
1139 if (asnNotBefore.get() == nullptr || X509_set_notBefore(x509.get(), asnNotBefore.get()) != 1) { in ecKeyPairGetPkcs12()
1145 if (asnNotAfter.get() == nullptr || X509_set_notAfter(x509.get(), asnNotAfter.get()) != 1) { in ecKeyPairGetPkcs12()
1150 if (X509_sign(x509.get(), pkey.get(), EVP_sha256()) == 0) { in ecKeyPairGetPkcs12()
1164 auto pkcs12 = PKCS12_Ptr(PKCS12_create(nullptr, name.c_str(), pkey.get(), x509.get(), in ecKeyPairGetPkcs12()
1248 auto x509 = X509_Ptr(X509_new()); in ecPublicKeyGenerateCertificate() local
1249 if (!x509.get()) { in ecPublicKeyGenerateCertificate()
1254 if (!X509_set_version(x509.get(), 2 /* version 3, but zero-based */)) { in ecPublicKeyGenerateCertificate()
1259 if (X509_set_pubkey(x509.get(), publicKey) != 1) { in ecPublicKeyGenerateCertificate()
1271 if (X509_set_serialNumber(x509.get(), asnSerial.get()) != 1) { in ecPublicKeyGenerateCertificate()
1281 X509_set_issuer_name(x509.get(), x509Issuer.get()) != 1) { in ecPublicKeyGenerateCertificate()
1291 X509_set_subject_name(x509.get(), x509Subject.get()) != 1) { in ecPublicKeyGenerateCertificate()
1297 if (asnNotBefore.get() == nullptr || X509_set_notBefore(x509.get(), asnNotBefore.get()) != 1) { in ecPublicKeyGenerateCertificate()
1303 if (asnNotAfter.get() == nullptr || X509_set_notAfter(x509.get(), asnNotAfter.get()) != 1) { in ecPublicKeyGenerateCertificate()
1328 if (!X509_add_ext(x509.get(), extension.get(), -1)) { in ecPublicKeyGenerateCertificate()
1334 if (X509_sign(x509.get(), signingKey, EVP_sha256()) == 0) { in ecPublicKeyGenerateCertificate()
1340 int length = i2d_X509(x509.get(), &buffer); in ecPublicKeyGenerateCertificate()