For provided ciphers, EVP_CIPHER_CTX_ctrl() with EVP_CTRL_INIT always returns 1
authorRichard Levitte <levitte@openssl.org>
Tue, 15 Oct 2019 14:45:12 +0000 (16:45 +0200)
committerRichard Levitte <levitte@openssl.org>
Thu, 17 Oct 2019 07:14:01 +0000 (09:14 +0200)
commitd6d74cf4a44f08ed63d942b103198a1e3294295a
tree2f71f1000480ee31bfd3b8bf87d5e9099b9eeb18
parent6a36f209bcfbc958e30d544c3031ed002dbfe582
For provided ciphers, EVP_CIPHER_CTX_ctrl() with EVP_CTRL_INIT always returns 1

This control command should never be used with provided methods, but
since this is publically available, someone might still make the
mistake.  We make sure it returns 1 so as not to be overly
disruptive.

Reviewed-by: Shane Lontis <shane.lontis@oracle.com>
(Merged from https://github.com/openssl/openssl/pull/10163)
crypto/evp/evp_enc.c