Remove PKCS5_pbe2_set_iv()
authortb <tb@openbsd.org>
Tue, 26 Mar 2024 07:03:10 +0000 (07:03 +0000)
committertb <tb@openbsd.org>
Tue, 26 Mar 2024 07:03:10 +0000 (07:03 +0000)
commitc1f409eab9c024c6da239096fed92d93b5d17678
treeff40b2c9def8c69c45d4bea8e027cee0edb26ad2
parent0c33764564b06caff7d5987607561140ed889404
Remove PKCS5_pbe2_set_iv()

This used to be a generalization of PKCS5_pbe2_set(). Its only caller was
the latter, which always passes aiv == NULL and pbe_prf == -1. Thus, the
iv would always be random and regarding the pbe_prf, it would always end
up being NID_hmacWithSHA1 since the only ctrl grokking EVP_CTRL_PBE_PRF_NID
was RC2's control, but only if PBE_PRF_TEST was defined, which it wasn't.

ok jsing
lib/libcrypto/asn1/p5_pbev2.c