diff options
Diffstat (limited to 'crypto/asn1/p5_pbev2.c')
-rw-r--r-- | crypto/asn1/p5_pbev2.c | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/crypto/asn1/p5_pbev2.c b/crypto/asn1/p5_pbev2.c index 51e587e923..10364a0561 100644 --- a/crypto/asn1/p5_pbev2.c +++ b/crypto/asn1/p5_pbev2.c @@ -153,7 +153,7 @@ PBKDF2PARAM *d2i_PBKDF2PARAM(PBKDF2PARAM **a, unsigned char **pp, void PBKDF2PARAM_free (PBKDF2PARAM *a) { if(a==NULL) return; - ASN1_OCTET_STRING_free(a->salt); + ASN1_TYPE_free(a->salt); ASN1_INTEGER_free(a->iter); ASN1_INTEGER_free(a->keylength); X509_ALGOR_free(a->prf); @@ -164,8 +164,8 @@ void PBKDF2PARAM_free (PBKDF2PARAM *a) * yes I know this is horrible! */ -X509_ALGOR *PKCS5_pbe2_set(EVP_CIPHER *cipher, int iter, unsigned char *salt, - int saltlen) +X509_ALGOR *PKCS5_pbe2_set(const EVP_CIPHER *cipher, int iter, + unsigned char *salt, int saltlen) { X509_ALGOR *scheme = NULL, *kalg = NULL, *ret = NULL; int alg_nid; |