pmeth_lib: detect unsupported OSSL_PARAM.
authorPauli <paul.dale@oracle.com>
Mon, 10 Feb 2020 03:32:36 +0000 (13:32 +1000)
committerRichard Levitte <levitte@openssl.org>
Fri, 21 Feb 2020 12:04:25 +0000 (13:04 +0100)
commit292c8bdc083d1b739ae241775bfac36f1f998294
tree9c059a29ac737cfa7835e7ddb75defa097dc1540
parent2ee0dfa684d5fbda5758136807e2732bd4f85139
pmeth_lib: detect unsupported OSSL_PARAM.

When converting legacy controls to OSSL_PARAMs, return the unsupported -2
value correctly.

Reviewed-by: Tomas Mraz <tmraz@fedoraproject.org>
(Merged from https://github.com/openssl/openssl/pull/11049)
crypto/evp/pmeth_lib.c