Add check for EVP_CIPHER_CTX_set_key_length return value
authorinoguchi <inoguchi@openbsd.org>
Thu, 20 Jan 2022 10:58:35 +0000 (10:58 +0000)
committerinoguchi <inoguchi@openbsd.org>
Thu, 20 Jan 2022 10:58:35 +0000 (10:58 +0000)
commita94e800442957d0b5beb7f74c75ae305fef0bd01
tree6463d8881c4b8fa05ffc0585177eac9885953bc4
parent69b60116a057b4ecc64a88dc8664e268dd18c76e
Add check for EVP_CIPHER_CTX_set_key_length return value

It returns 1 on success and 0 for failure, never negative value.

ok jsing@ millert@ tb@
lib/libcrypto/cms/cms_enc.c