commit | d968b81d4cd4a285914ba443c3aae4aed0862393 | [log] [tgz] |
---|---|---|
author | Kazuho Oku <kazuhooku@gmail.com> | Sun Mar 21 08:59:50 2021 +0900 |
committer | Kazuho Oku <kazuhooku@gmail.com> | Sun Mar 21 08:59:50 2021 +0900 |
tree | e37e677ee9efa660ec2171ae21b5c9bc05383ca6 | |
parent | 16253efe2b7401e1dde736f220e6b45440e5abac [diff] |
fix hash function used by mgf1; confirmed interop. against www.google.com
diff --git a/lib/openssl.c b/lib/openssl.c index 01ad2a0..90f6984 100644 --- a/lib/openssl.c +++ b/lib/openssl.c
@@ -1068,7 +1068,7 @@ ret = PTLS_ERROR_LIBRARY; goto Exit; } - if (EVP_PKEY_CTX_set_rsa_mgf1_md(pkey_ctx, EVP_sha256()) != 1) { + if (EVP_PKEY_CTX_set_rsa_mgf1_md(pkey_ctx, scheme->scheme_md()) != 1) { ret = PTLS_ERROR_LIBRARY; goto Exit; }