commit | 876214cd9d83cddb97b628f3cbcf3f66b24bab97 | [log] [tgz] |
---|---|---|
author | Andres Amaya Garcia <andres.amayagarcia@arm.com> | Mon Jul 31 16:37:35 2017 +0100 |
committer | Simon Butcher <simon.butcher@arm.com> | Sat Oct 07 22:22:15 2017 +0100 |
tree | 16e37b6b83c442a22396ad66c16ab52252579997 | |
parent | 8388be3ec7487ed43c4bf145dc31f486973bc711 [diff] |
Change param type for x509_parse_int() to fix warn
diff --git a/library/x509.c b/library/x509.c index 5e6062b..fbee2c5 100644 --- a/library/x509.c +++ b/library/x509.c
@@ -480,7 +480,7 @@ } } -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;