From 3b712627506d3a0268d6ca0f3cffc186b8d0ca4f Mon Sep 17 00:00:00 2001 From: Harry Ramsey Date: Thu, 26 Sep 2024 11:38:25 +0100 Subject: [PATCH] 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 --- library/x509_create.c | 4 ---- 1 file changed, 4 deletions(-) diff --git a/library/x509_create.c b/library/x509_create.c index fa254fec5..130983189 100644 --- a/library/x509_create.c +++ b/library/x509_create.c @@ -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;