Remove MBEDTLS_OID_C guard from static functions

This commit removes the MBEDTLS_OID_C guard from the static functions in
the library/x509_create.c as this function is no longer included in the
oid.c file.

Signed-off-by: Harry Ramsey <harry.ramsey@arm.com>
This commit is contained in:
Harry Ramsey 2024-09-26 11:38:25 +01:00
parent 94c3065d7f
commit 3b71262750

View File

@ -278,8 +278,6 @@ error:
return MBEDTLS_ERR_X509_INVALID_NAME;
}
#if defined(MBEDTLS_OID_C)
static int oid_parse_number(unsigned int *num, const char **p, const char *bound)
{
int ret = MBEDTLS_ERR_ASN1_INVALID_DATA;
@ -456,8 +454,6 @@ error:
return ret;
}
#endif /* MBEDTLS_OID_C */
int mbedtls_x509_string_to_names(mbedtls_asn1_named_data **head, const char *name)
{
int ret = MBEDTLS_ERR_X509_INVALID_NAME;