Tolerate TLSv1.3 PSKs that are a different size to the hash size
authorMatt Caswell <matt@openssl.org>
Tue, 6 Mar 2018 14:12:10 +0000 (14:12 +0000)
committerMatt Caswell <matt@openssl.org>
Fri, 9 Mar 2018 11:22:23 +0000 (11:22 +0000)
commite73c6eaeff82615d20845692c5c72ba9dfa895f5
tree3eabbfe2325ad07a300c38e299e927b026aff507
parenta7fb4fa1708c65c0932133dca64a53d0237312e3
Tolerate TLSv1.3 PSKs that are a different size to the hash size

We also default to SHA256 as per the spec if we do not have an explicit
digest defined.

Reviewed-by: Rich Salz <rsalz@openssl.org>
(Merged from https://github.com/openssl/openssl/pull/5554)
apps/s_client.c
apps/s_server.c
ssl/statem/extensions.c