From 17984874afd3d27f06a5eb64fd8672878a748906 Mon Sep 17 00:00:00 2001 From: Agathiyan Bragadeesh Date: Fri, 11 Aug 2023 12:42:03 +0100 Subject: [PATCH] Change error from unknown oid to invalid name Since the implementation no longer needs to know the oid, it makes more sense for the error message to be an invalid name. Signed-off-by: Agathiyan Bragadeesh --- library/x509_create.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/library/x509_create.c b/library/x509_create.c index 6483b39d3d..99115c450e 100644 --- a/library/x509_create.c +++ b/library/x509_create.c @@ -274,7 +274,7 @@ int mbedtls_x509_string_to_names(mbedtls_asn1_named_data **head, const char *nam if (in_attr_type && *c == '=') { if ((attr_descr = x509_attr_descr_from_name(s, c - s)) == NULL) { if ((oid = x509_oid_from_numericoid(s, c - s)) == NULL) { - return MBEDTLS_ERR_X509_UNKNOWN_OID; + return MBEDTLS_ERR_X509_INVALID_NAME; } else { numericoid = 1; }