Don't switch password formats using global state.
authorAndy Polyakov <appro@openssl.org>
Wed, 24 Aug 2016 17:54:10 +0000 (18:54 +0100)
committerMatt Caswell <matt@openssl.org>
Thu, 25 Aug 2016 10:42:33 +0000 (11:42 +0100)
commit0fe17491c34848db3cbb39c1841099161b4b449f
treed274d0d721f19dc23d5c253b16dc1d24c6110bbb
parentcc069067075d77c7a61e44a253aec917d0b6a2f5
Don't switch password formats using global state.

To avoid possible race conditions don't switch password format using
global state in crypto/pkcs12

Reviewed-by: Richard Levitte <levitte@openssl.org>
crypto/pkcs12/p12_crpt.c
crypto/pkcs12/p12_lcl.h
crypto/pkcs12/p12_mutl.c