mirror of
https://github.com/Mbed-TLS/mbedtls.git
synced 2026-04-02 10:36:07 +02:00
@@ -660,6 +660,11 @@ static int x509_get_subject_key_id(unsigned char **p,
|
||||
MBEDTLS_ERR_ASN1_LENGTH_MISMATCH;
|
||||
}
|
||||
|
||||
if (*p != end) {
|
||||
return MBEDTLS_ERR_X509_INVALID_EXTENSIONS +
|
||||
MBEDTLS_ERR_ASN1_LENGTH_MISMATCH;
|
||||
}
|
||||
|
||||
return 0;
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user