Fix constness issue in pkcs5_pbes2()

This commit is contained in:
Manuel Pégourié-Gonnard 2015-03-19 15:21:13 +00:00
parent 0db107e4ba
commit 8d92cedd11
2 changed files with 2 additions and 2 deletions

View file

@ -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 );

View file

@ -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 )