Skip to content

Commit

Permalink
Use more future-proof hash for signature (#532)
Browse files Browse the repository at this point in the history
Signed-off-by: Dmitry Belyavskiy <[email protected]>
  • Loading branch information
beldmit authored Oct 4, 2024
1 parent 3cdbfed commit f11961c
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion test/tlstest_helpers.c
Original file line number Diff line number Diff line change
Expand Up @@ -27,7 +27,7 @@ int create_cert_key(OSSL_LIB_CTX *libctx, char *algname, char *certfilename,
!X509_NAME_add_entry_by_txt(name, "CN", MBSTRING_ASC,
(unsigned char *)"localhost", -1, -1, 0) ||
!X509_set_issuer_name(x509, name) ||
!X509_sign(x509, pkey, EVP_sha1()) ||
!X509_sign(x509, pkey, EVP_sha256()) ||
!(keybio = BIO_new_file(privkeyfilename, "wb")) ||
!PEM_write_bio_PrivateKey(keybio, pkey, NULL, NULL, 0, NULL, NULL) ||
!(certbio = BIO_new_file(certfilename, "wb")) ||
Expand Down

0 comments on commit f11961c

Please sign in to comment.