From 908716f09712c68c2e9271fa8d4149a2947011f2 Mon Sep 17 00:00:00 2001 From: Andrzej Kurek Date: Tue, 25 Apr 2023 04:31:26 -0400 Subject: [PATCH] Add missing RFC822_NAME case to SAN setting Signed-off-by: Andrzej Kurek --- library/x509write_crt.c | 1 + 1 file changed, 1 insertion(+) diff --git a/library/x509write_crt.c b/library/x509write_crt.c index 6b23a94a9a..e3b8f605ea 100644 --- a/library/x509write_crt.c +++ b/library/x509write_crt.c @@ -170,6 +170,7 @@ int mbedtls_x509write_crt_set_subject_alternative_name(mbedtls_x509write_cert *c case MBEDTLS_X509_SAN_DNS_NAME: case MBEDTLS_X509_SAN_UNIFORM_RESOURCE_IDENTIFIER: case MBEDTLS_X509_SAN_IP_ADDRESS: + case MBEDTLS_X509_SAN_RFC822_NAME: /* length of value for each name entry, * maximum 4 bytes for the length field, * 1 byte for the tag/type.