mirror of
https://github.com/Mbed-TLS/mbedtls.git
synced 2026-01-06 11:41:12 +03:00
Remove MBEDTLS_OID_X509_EXT_xxx constants
They're just aliases for the corresponding MBEDTLS_X509_EXT_xxx. We don't need separate names. Signed-off-by: Gilles Peskine <Gilles.Peskine@arm.com>
This commit is contained in:
@@ -1015,7 +1015,7 @@ static int x509_get_crt_ext(unsigned char **p,
|
||||
}
|
||||
break;
|
||||
|
||||
case MBEDTLS_OID_X509_EXT_CERTIFICATE_POLICIES:
|
||||
case MBEDTLS_X509_EXT_CERTIFICATE_POLICIES:
|
||||
/* Parse certificate policies type */
|
||||
if ((ret = x509_get_certificate_policies(p, end_ext_octet,
|
||||
&crt->certificate_policies)) != 0) {
|
||||
@@ -1866,7 +1866,7 @@ int mbedtls_x509_crt_info(char *buf, size_t size, const char *prefix,
|
||||
}
|
||||
}
|
||||
|
||||
if (crt->ext_types & MBEDTLS_OID_X509_EXT_CERTIFICATE_POLICIES) {
|
||||
if (crt->ext_types & MBEDTLS_X509_EXT_CERTIFICATE_POLICIES) {
|
||||
ret = mbedtls_snprintf(p, n, "\n%scertificate policies : ", prefix);
|
||||
MBEDTLS_X509_SAFE_SNPRINTF;
|
||||
|
||||
|
||||
Reference in New Issue
Block a user