RT4002: check for NULL cipher in p12_crpt.c
authorEmilia Kasper <emilia@openssl.org>
Tue, 1 Sep 2015 12:56:58 +0000 (14:56 +0200)
committerEmilia Kasper <emilia@openssl.org>
Tue, 1 Sep 2015 18:01:38 +0000 (20:01 +0200)
commit394f7b6fcc38132b8ccff0a3253b9dd15640cfc0
tree81cb6c4056f24b46fba9b9b39050ef80a26feb58
parent25d6b3401ca40c9a2cbe5080449c1c2a37037777
RT4002: check for NULL cipher in p12_crpt.c

The NULL cipher case can't actually happen because we have no
EVP_PBE_CTL combinations where cipher_nid is -1 and keygen is
PKCS12_PBE_keyivgen. But make the code more obviously correct.

Reviewed-by: Matt Caswell <matt@openssl.org>
crypto/pkcs12/p12_crpt.c