mirror of
https://github.com/Mbed-TLS/mbedtls.git
synced 2026-04-05 20:15:36 +02:00
Change param type for x509_parse_int() to fix warn
This commit is contained in:
committed by
Simon Butcher
parent
8388be3ec7
commit
876214cd9d
@@ -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;
|
||||
|
||||
Reference in New Issue
Block a user