Fix SSL_CTX_use_serverinfo_ex() et al to properly handle V1 data
authorMatt Caswell <matt@openssl.org>
Thu, 4 May 2017 09:21:39 +0000 (10:21 +0100)
committerMatt Caswell <matt@openssl.org>
Thu, 4 May 2017 15:02:08 +0000 (16:02 +0100)
commitbade29da33155afc87ed5806c996efea7684666c
treeda3e558988255ac17fcd54bcad8d67c3c87e8bae
parentbb78552ee14c1caa867dfe782f6d1222c776e439
Fix SSL_CTX_use_serverinfo_ex() et al to properly handle V1 data

SSL_CTX_use_serverinfo_ex() et al were always processing data as if it was
V2 format, even if it was V1. This bug was masked because, although we had
a test which loaded V1 serverinfo data from a file, the function
SSL_CTX_use_serverinfo_file() transparently converts V1 data to V2 before
calling SSL_CTX_use_serverinfo_ex().

Reviewed-by: Rich Salz <rsalz@openssl.org>
(Merged from https://github.com/openssl/openssl/pull/3382)
ssl/ssl_rsa.c