summaryrefslogtreecommitdiffstats
path: root/crypto/evp/evp_pbe.c
diff options
context:
space:
mode:
authorDr. Stephen Henson <steve@openssl.org>1999-04-27 00:36:20 +0000
committerDr. Stephen Henson <steve@openssl.org>1999-04-27 00:36:20 +0000
commitb64f825671861144e1c24f2a5498a95a083021cd (patch)
tree96633569d2d6416f56fea9037fe35e80b5ebe469 /crypto/evp/evp_pbe.c
parent73d2257d978c7a201d6a914dc141ea1484d9aa6f (diff)
Add PKCS#12 documentation and new option in x509 to add certificate extensions.
Diffstat (limited to 'crypto/evp/evp_pbe.c')
-rw-r--r--crypto/evp/evp_pbe.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/crypto/evp/evp_pbe.c b/crypto/evp/evp_pbe.c
index 02ae151cf4..848edddd8c 100644
--- a/crypto/evp/evp_pbe.c
+++ b/crypto/evp/evp_pbe.c
@@ -83,8 +83,7 @@ int EVP_PBE_CipherInit (ASN1_OBJECT *pbe_obj, const char *pass, int passlen,
unsigned char key[EVP_MAX_KEY_LENGTH], iv[EVP_MAX_IV_LENGTH];
int i;
pbelu.pbe_nid = OBJ_obj2nid(pbe_obj);
- if ((pbelu.pbe_nid != NID_undef) && pbe_algs)
- i = sk_find (pbe_algs, (char *)&pbelu);
+ if (pbelu.pbe_nid != NID_undef) i = sk_find(pbe_algs, (char *)&pbelu);
else i = -1;
if (i == -1) {
@@ -167,4 +166,5 @@ int EVP_PBE_alg_add (int nid, EVP_CIPHER *cipher, EVP_MD *md,
void EVP_PBE_cleanup(void)
{
sk_pop_free(pbe_algs, FreeFunc);
+ pbe_algs = NULL;
}