diff options
author | Dr. Stephen Henson <steve@openssl.org> | 1999-06-10 17:32:52 +0000 |
---|---|---|
committer | Dr. Stephen Henson <steve@openssl.org> | 1999-06-10 17:32:52 +0000 |
commit | b7d135b353953bf40a58b49d145df5376a8af209 (patch) | |
tree | 13d52048866ecf20b4ab22366c467c0871a14ce1 /crypto/evp/p5_crpt.c | |
parent | d58d092bc9f0a541ce5f0b265ee819f7ab086560 (diff) | |
download | openssl-b7d135b353953bf40a58b49d145df5376a8af209.zip openssl-b7d135b353953bf40a58b49d145df5376a8af209.tar.gz openssl-b7d135b353953bf40a58b49d145df5376a8af209.tar.bz2 |
Two new functions to write out PKCS#8 private keys. Also fixes for some of
the the PBE code and a new constant PKCS5_DEFAULT_ITER for the default
iteration count if it is passed as zero.
Diffstat (limited to 'crypto/evp/p5_crpt.c')
-rw-r--r-- | crypto/evp/p5_crpt.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/crypto/evp/p5_crpt.c b/crypto/evp/p5_crpt.c index 798cbe9..abf6af0 100644 --- a/crypto/evp/p5_crpt.c +++ b/crypto/evp/p5_crpt.c @@ -100,7 +100,7 @@ int PKCS5_PBE_keyivgen(EVP_CIPHER_CTX *cctx, const char *pass, int passlen, /* Extract useful info from parameter */ pbuf = param->value.sequence->data; - if (!param || (param->type = V_ASN1_SEQUENCE) || + if (!param || (param->type != V_ASN1_SEQUENCE) || !(pbe = d2i_PBEPARAM (NULL, &pbuf, param->value.sequence->length))) { EVPerr(EVP_F_PKCS5_PBE_KEYIVGEN,EVP_R_DECODE_ERROR); return 0; |