From d4bf870ff5d26772d7f019e698529534f8a1f577 Mon Sep 17 00:00:00 2001
From: Paul Bakker
Date: Mon, 9 Sep 2013 13:59:11 +0200
Subject: [PATCH] Allow spaces after the comma when converting X509 names
---
library/x509write.c | 3 +++
1 file changed, 3 insertions(+)
diff --git a/library/x509write.c b/library/x509write.c
index c57e56a0b..aed66240e 100644
--- a/library/x509write.c
+++ b/library/x509write.c
@@ -102,6 +102,9 @@ static int x509write_string_to_names( asn1_named_data **head, char *name )
return( POLARSSL_ERR_X509WRITE_MALLOC_FAILED );
}
+ while( c < end && *(c + 1) == ' ' )
+ c++;
+
s = c + 1;
in_tag = 1;
}