Use the index that matches the key type (either SSL_PKEY_RSA_PSS_SIGN or SSL_PKEY_RSA).
authorNoah Robbin <noah_robbin@symantec.com>
Wed, 29 Nov 2017 21:58:25 +0000 (16:58 -0500)
committerRich Salz <rsalz@openssl.org>
Mon, 8 Jan 2018 16:49:53 +0000 (11:49 -0500)
commitbcec0b9488d3b0a91289998e7e73f1d91156c6fb
treeb165f6ea7b4a6f31c4af4ecaf849d16594fb5752
parent0fe3db251a49b11cafdc3e4a25fdac947f3bdf3b
Use the index that matches the key type (either SSL_PKEY_RSA_PSS_SIGN or SSL_PKEY_RSA).

Extract the RSA key using EVP_PKEY_get0.  Type is checked externally to be either EVP_PKEY_RSA_PSS or EVP_PKEY_RSA.

Reviewed-by: Richard Levitte <levitte@openssl.org>
Reviewed-by: Rich Salz <rsalz@openssl.org>
(Merged from https://github.com/openssl/openssl/pull/4389)
ssl/t1_lib.c