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 22:03:45 +0000 (23:03 +0100)
commit222333cf01e2fec4a20c107ac9e820694611a4db
tree23d655f1dbd6d7297752c0a07ef26c7ee7a30c1f
parent3fb9f875e7d6295129782837db5d4a21940d2efa
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.h
crypto/evp/evp_err.c
crypto/evp/pmeth_fn.c