M_check_autoarg: sanity check the key
authorRichard Levitte <levitte@openssl.org>
Tue, 20 Dec 2016 11:56:14 +0000 (12:56 +0100)
committerRichard Levitte <levitte@openssl.org>
Tue, 20 Dec 2016 18:02:20 +0000 (19:02 +0100)
commit22e9f9211de80d7edcb1bd3b86eef7611718ab5c
treeedcb250fdc9fcfa1d9b646f238263e003dd2fba3
parentf7a2da1d584bed2e05774f92d69fee39ce3edda2
M_check_autoarg: sanity check the key

For now, checking that the size is non-zero will suffice.

Reviewed-by: Rich Salz <rsalz@openssl.org>
(Merged from https://github.com/openssl/openssl/pull/2120)
(cherry picked from commit d7c8f142ea5953bf260b70a58739c1c9b0f038eb)
crypto/evp/evp_err.c
crypto/evp/pmeth_fn.c
include/openssl/evp.h