From 43ae2984109d414b7072c3a83ff25c82f7fd2294 Mon Sep 17 00:00:00 2001 From: Paul Bakker Date: Wed, 14 Nov 2012 12:14:19 +0000 Subject: [PATCH] - Fixed argument types --- include/polarssl/pkcs11.h | 4 ++-- library/pkcs11.c | 2 +- 2 files changed, 3 insertions(+), 3 deletions(-) diff --git a/include/polarssl/pkcs11.h b/include/polarssl/pkcs11.h index ddfae3017..003d3f52d 100644 --- a/include/polarssl/pkcs11.h +++ b/include/polarssl/pkcs11.h @@ -104,7 +104,7 @@ int pkcs11_decrypt( pkcs11_context *ctx, int mode, size_t *olen, const unsigned char *input, unsigned char *output, - unsigned int output_max_len ); + size_t output_max_len ); /** * \brief Do a private RSA to sign a message digest @@ -134,7 +134,7 @@ int pkcs11_sign( pkcs11_context *ctx, */ static inline int ssl_pkcs11_decrypt( void *ctx, int mode, size_t *olen, const unsigned char *input, unsigned char *output, - unsigned int output_max_len ) + size_t output_max_len ) { return pkcs11_decrypt( (pkcs11_context *) ctx, mode, olen, input, output, output_max_len ); diff --git a/library/pkcs11.c b/library/pkcs11.c index b71415a41..b68d6881d 100644 --- a/library/pkcs11.c +++ b/library/pkcs11.c @@ -115,7 +115,7 @@ int pkcs11_decrypt( pkcs11_context *ctx, int mode, size_t *olen, const unsigned char *input, unsigned char *output, - unsigned int output_max_len ) + size_t output_max_len ) { size_t input_len, output_len;