From 876214cd9d83cddb97b628f3cbcf3f66b24bab97 Mon Sep 17 00:00:00 2001 From: Andres Amaya Garcia Date: Mon, 31 Jul 2017 16:37:35 +0100 Subject: [PATCH] Change param type for x509_parse_int() to fix warn --- library/x509.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/library/x509.c b/library/x509.c index 5e6062bfa..fbee2c54d 100644 --- a/library/x509.c +++ b/library/x509.c @@ -480,7 +480,7 @@ int x509_get_name( unsigned char **p, const unsigned char *end, } } -static int x509_parse_int(unsigned char **p, unsigned n, int *res){ +static int x509_parse_int(unsigned char **p, size_t n, int *res){ *res = 0; for( ; n > 0; --n ){ if( ( **p < '0') || ( **p > '9' ) ) return POLARSSL_ERR_X509_INVALID_DATE;