diff options
author | Peter Edwards <peadar@arista.com> | 2022-06-27 22:00:05 +0100 |
---|---|---|
committer | Peter Edwards <peadar@arista.com> | 2022-06-27 23:07:58 +0100 |
commit | e563c9b20616c40b7cd57165eb91171b6619346b (patch) | |
tree | c86174609ef183164b4791443d46bba1f0f62d5d /test | |
parent | 1c204d55640170b77ed2f7e8cc07f9417e1844cc (diff) | |
download | libevent-e563c9b20616c40b7cd57165eb91171b6619346b.tar.gz |
OpenSSL 3 fixes: use SHA256 instead of SHA1
OpenSSL 3.x does not support signing certificates with SHA1 by default.
Use SHA256 instead.
Diffstat (limited to 'test')
-rw-r--r-- | test/regress_openssl.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/test/regress_openssl.c b/test/regress_openssl.c index 1bf0b50d..f74cae1c 100644 --- a/test/regress_openssl.c +++ b/test/regress_openssl.c @@ -103,7 +103,7 @@ ssl_getcert(EVP_PKEY *key) now += 3600; X509_time_adj(X509_getm_notAfter(x509), 0, &now); X509_set_pubkey(x509, key); - tt_assert(0 != X509_sign(x509, key, EVP_sha1())); + tt_assert(0 != X509_sign(x509, key, EVP_sha256())); return x509; end: |