From 8d92cedd114d4fb4be65e172ce08153f76a5506f Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Manuel=20P=C3=A9gouri=C3=A9-Gonnard?= Date: Thu, 19 Mar 2015 15:21:13 +0000 Subject: [PATCH] Fix constness issue in pkcs5_pbes2() --- include/mbedtls/pkcs5.h | 2 +- library/pkcs5.c | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/include/mbedtls/pkcs5.h b/include/mbedtls/pkcs5.h index 6a21af10b..5a765e02b 100644 --- a/include/mbedtls/pkcs5.h +++ b/include/mbedtls/pkcs5.h @@ -63,7 +63,7 @@ extern "C" { * * \returns 0 on success, or a POLARSSL_ERR_xxx code if verification fails. */ -int pkcs5_pbes2( asn1_buf *pbe_params, int mode, +int pkcs5_pbes2( const asn1_buf *pbe_params, int mode, const unsigned char *pwd, size_t pwdlen, const unsigned char *data, size_t datalen, unsigned char *output ); diff --git a/library/pkcs5.c b/library/pkcs5.c index 12ec5ea27..79d67e9a5 100644 --- a/library/pkcs5.c +++ b/library/pkcs5.c @@ -109,7 +109,7 @@ static int pkcs5_parse_pbkdf2_params( const asn1_buf *params, return( 0 ); } -int pkcs5_pbes2( asn1_buf *pbe_params, int mode, +int pkcs5_pbes2( const asn1_buf *pbe_params, int mode, const unsigned char *pwd, size_t pwdlen, const unsigned char *data, size_t datalen, unsigned char *output )