Restoring correct check for legacy PKEY
authorDmitry Belyavskiy <beldmit@gmail.com>
Tue, 14 Jan 2020 08:09:30 +0000 (11:09 +0300)
committerDmitry Belyavskiy <beldmit@gmail.com>
Wed, 15 Jan 2020 08:50:10 +0000 (11:50 +0300)
commited086e2318fb97ebafcd724fbfd1834e17d581d9
treef5759f95788a36a8885d0d00d2f6cd36bbfc2d09
parent36fc5fc6bd5ca53fb30aabc38e3fefbab0005b2c
Restoring correct check for legacy PKEY

The fix inroduced in #10758 was rolled back by accident.
Restoring it.

Reviewed-by: Richard Levitte <levitte@openssl.org>
(Merged from https://github.com/openssl/openssl/pull/10839)
crypto/evp/pmeth_lib.c