]> git.ipfire.org Git - thirdparty/openssl.git/commit
Fix PKCS12_newpass() to work with PBES2.
authorslontis <shane.lontis@oracle.com>
Wed, 25 Jan 2023 01:25:33 +0000 (11:25 +1000)
committerPauli <pauli@openssl.org>
Tue, 14 Mar 2023 21:49:03 +0000 (08:49 +1100)
commit9191dfb0ef48f95002aecfa8e11d9db434b4093d
tree3c18ea874a8c08a32fdc15ceb56f2e9f474d83bd
parent513b20a982e237fbd4c281c1c7ba817864f9a827
Fix PKCS12_newpass() to work with PBES2.

Fixes #19092

The code looks like it was written to work with PBES1.
As it had no tests, this would of then broken when PBES2
was introduced at a later point.

Also added libctx and propq support.

This affects the shroudedkeybag object.

Reviewed-by: Tomas Mraz <tomas@openssl.org>
Reviewed-by: Paul Dale <pauli@openssl.org>
(Merged from https://github.com/openssl/openssl/pull/20134)
crypto/pkcs12/p12_npas.c
test/pkcs12_api_test.c