epee: fix build with OpenSSL 4.0

This commit is contained in:
weifanglab
2026-07-14 00:11:41 +08:00
parent 0f84863fed
commit 4f73cfea6d
+1 -2
View File
@@ -174,8 +174,7 @@ bool create_rsa_ssl_certificate(EVP_PKEY *&pkey, X509 *&cert)
X509_free(cert);
return false;
}
X509_NAME *name = X509_get_subject_name(cert);
X509_set_issuer_name(cert, name);
X509_set_issuer_name(cert, X509_get_subject_name(cert));
if (X509_sign(cert, pkey, EVP_sha256()) == 0)
{