From 946491360b7d67dfe69021980300d50329a90070 Mon Sep 17 00:00:00 2001 From: David Horstmann Date: Wed, 21 Feb 2024 10:31:39 +0000 Subject: [PATCH] Unrestore mbedtls_x509_string_to_names() This function should be internal, being exposed only via functions like mbedtls_x509write_crt_set_subject_name(). Signed-off-by: David Horstmann --- include/mbedtls/x509.h | 2 -- library/x509_internal.h | 1 + 2 files changed, 1 insertion(+), 2 deletions(-) diff --git a/include/mbedtls/x509.h b/include/mbedtls/x509.h index 1dde7af45..715855517 100644 --- a/include/mbedtls/x509.h +++ b/include/mbedtls/x509.h @@ -322,8 +322,6 @@ mbedtls_x509_san_list; */ int mbedtls_x509_dn_gets(char *buf, size_t size, const mbedtls_x509_name *dn); -int mbedtls_x509_string_to_names(mbedtls_asn1_named_data **head, const char *name); - /** * \brief Return the next relative DN in an X509 name. * diff --git a/library/x509_internal.h b/library/x509_internal.h index 8a2d2ed00..09b6fc5a1 100644 --- a/library/x509_internal.h +++ b/library/x509_internal.h @@ -21,6 +21,7 @@ #include "mbedtls/rsa.h" #endif +int mbedtls_x509_string_to_names(mbedtls_asn1_named_data **head, const char *name); int mbedtls_x509_get_name(unsigned char **p, const unsigned char *end, mbedtls_x509_name *cur); int mbedtls_x509_get_alg_null(unsigned char **p, const unsigned char *end,