From 0767e67d17ed42519ee2f61d1b69c551687696c4 Mon Sep 17 00:00:00 2001 From: Paul Bakker Date: Fri, 18 Apr 2014 14:11:37 +0200 Subject: [PATCH] Add support for 'emailAddress' to x509_string_to_names() --- library/x509_create.c | 2 ++ 1 file changed, 2 insertions(+) diff --git a/library/x509_create.c b/library/x509_create.c index 2ac4d1d0c..7637e6171 100644 --- a/library/x509_create.c +++ b/library/x509_create.c @@ -65,6 +65,8 @@ int x509_string_to_names( asn1_named_data **head, const char *name ) oid = OID_AT_ORG_UNIT; else if( c - s == 2 && strncasecmp( s, "ST", 2 ) == 0 ) oid = OID_AT_STATE; + else if( c - s == 12 && strncasecmp( s, "emailAddress", 12 ) == 0 ) + oid = OID_PKCS9_EMAIL; else if( c - s == 12 && strncasecmp( s, "serialNumber", 12 ) == 0 ) oid = OID_AT_SERIAL_NUMBER; else if( c - s == 13 && strncasecmp( s, "postalAddress", 13 ) == 0 )