Modified DTLS cert signature algorithm used (#3876)

This commit is contained in:
sauwming 2024-03-05 12:46:57 +08:00 committed by GitHub
parent 5ef8463d56
commit 9e6a63e42f
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194
1 changed files with 1 additions and 1 deletions

View File

@ -464,7 +464,7 @@ static pj_status_t ssl_generate_cert(X509 **p_cert, EVP_PKEY **p_priv_key)
if (!X509_set_pubkey(cert, priv_key)) goto on_error;
/* Sign with the private key */
if (!X509_sign(cert, priv_key, EVP_sha1())) goto on_error;
if (!X509_sign(cert, priv_key, EVP_sha256())) goto on_error;
/* Free big number */
BN_free(bne);