Lines Matching refs:x509
45 bssl::UniquePtr<X509> x509(X509_new()); in makeSelfSignedCert() local
50 TEST_AND_RETURN(nullptr, BN_to_ASN1_INTEGER(serial.get(), X509_get_serialNumber(x509.get()))); in makeSelfSignedCert()
51 TEST_AND_RETURN(nullptr, X509_gmtime_adj(X509_getm_notBefore(x509.get()), 0)); in makeSelfSignedCert()
52 TEST_AND_RETURN(nullptr, X509_gmtime_adj(X509_getm_notAfter(x509.get()), validSeconds)); in makeSelfSignedCert()
54 X509_NAME* subject = X509_get_subject_name(x509.get()); in makeSelfSignedCert()
63 TEST_AND_RETURN(nullptr, X509_set_issuer_name(x509.get(), subject)); in makeSelfSignedCert()
65 TEST_AND_RETURN(nullptr, X509_set_pubkey(x509.get(), pkey)); in makeSelfSignedCert()
66 TEST_AND_RETURN(nullptr, X509_sign(x509.get(), pkey, EVP_sha256())); in makeSelfSignedCert()
67 return x509; in makeSelfSignedCert()
108 bssl::UniquePtr<X509> x509 = deserializeCertificate(cert, format); in addTrustedPeerCertificate() local
109 if (x509 == nullptr) { in addTrustedPeerCertificate()
114 mTrustedPeerCertificates.push_back(std::move(x509)); in addTrustedPeerCertificate()