Correcting documentation issues:

- Changelog entry is Feature instead of API Change
- Correcting whitespaces around braces
- Also adding defensive mechanism to x509_get_subject_key_id
  to avoid malfunction in case of trailing garbage

Signed-off-by: toth92g <[email protected]>
This commit is contained in:
toth92g
2023-04-04 17:48:27 +02:00
committed by Przemek Stekiel
parent 0e2e2d6841
commit d96027acd2
2 changed files with 8 additions and 2 deletions
@@ -1,2 +1,3 @@
API changes
* x509 certificate parse functionality is extended with the possibility of extracting SignatureKeyId and AuthorityKeyId fields
Features
* When parsing X.509 certificates, support the extensions
SignatureKeyIdentifier and AuthorityKeyIdentifier.
+5
View File
@@ -608,6 +608,11 @@ static int x509_get_subject_key_id(unsigned char **p,
*p += len;
}
if (*p != end) {
return MBEDTLS_ERR_X509_INVALID_EXTENSIONS +
MBEDTLS_ERR_ASN1_LENGTH_MISMATCH;
}
return 0;
}