#33041·openssl

Cleanup in EVP_SKEY from PKCS#12 files processing

Author: beldmitCreated Sep 29, 2026Updated Sep 29, 2026

Thanks for addressing issues and sorry for the late review.

I have one nonblocking suggestion in extract_symmetric_key, apps/pkcs12.c, lines 1048-1056: could we handle the enc != NULL branch immediately after the NOKEYS check, before decrypting and importing the key? That branch only prints the original encrypted bag, so it shouldn't need a successful EVP_SKEY import.

This doesn't hold up my approval.

Originally posted by @idrassi in https://github.com/openssl/openssl/pull/32978#pullrequestreview-5335099092