Home | History | Annotate | Download | only in tool

Lines Matching refs:EVP_PKEY

104 static bssl::UniquePtr<EVP_PKEY> MakeKeyPairForSelfSignedCert() {
110 bssl::UniquePtr<EVP_PKEY> evp_pkey(EVP_PKEY_new());
111 if (!evp_pkey || !EVP_PKEY_assign_EC_KEY(evp_pkey.get(), ec_key.release())) {
115 return evp_pkey;
118 static bssl::UniquePtr<X509> MakeSelfSignedCert(EVP_PKEY *evp_pkey,
136 if (!X509_set_pubkey(x509.get(), evp_pkey)) {
140 if (!X509_sign(x509.get(), evp_pkey, EVP_sha256())) {
174 bssl::UniquePtr<EVP_PKEY> evp_pkey = MakeKeyPairForSelfSignedCert();
175 if (!evp_pkey) {
179 MakeSelfSignedCert(evp_pkey.get(), 365 /* valid_days */);
183 if (!SSL_CTX_use_PrivateKey(ctx.get(), evp_pkey.get())) {