summaryrefslogtreecommitdiffstats
path: root/crypto/x509/x509name.c
diff options
context:
space:
mode:
authorDr. Stephen Henson <steve@openssl.org>1999-10-25 02:00:09 +0000
committerDr. Stephen Henson <steve@openssl.org>1999-10-25 02:00:09 +0000
commitf769ce3ea41ba1c2b16f345722ed006861d51150 (patch)
tree5df2c631989beff5b5b28f01cc09c6c12e44ce02 /crypto/x509/x509name.c
parent042a93e443732418df4714d217ccc0b35cdc4eb5 (diff)
More multibyte character support.
Functions to get keys from EVP_PKEY structures.
Diffstat (limited to 'crypto/x509/x509name.c')
-rw-r--r--crypto/x509/x509name.c6
1 files changed, 5 insertions, 1 deletions
diff --git a/crypto/x509/x509name.c b/crypto/x509/x509name.c
index 2a422be350..64c1315495 100644
--- a/crypto/x509/x509name.c
+++ b/crypto/x509/x509name.c
@@ -267,7 +267,7 @@ X509_NAME_ENTRY *X509_NAME_ENTRY_create_by_OBJ(X509_NAME_ENTRY **ne,
goto err;
if (!X509_NAME_ENTRY_set_data(ret,type,bytes,len))
goto err;
-
+
if ((ne != NULL) && (*ne == NULL)) *ne=ret;
return(ret);
err:
@@ -294,6 +294,10 @@ int X509_NAME_ENTRY_set_data(X509_NAME_ENTRY *ne, int type,
int i;
if ((ne == NULL) || ((bytes == NULL) && (len != 0))) return(0);
+ if(type & MBSTRING_FLAG)
+ return ASN1_STRING_set_by_NID(&ne->value, bytes,
+ len, type,
+ OBJ_obj2nid(ne->object)) ? 1 : 0;
if (len < 0) len=strlen((char *)bytes);
i=ASN1_STRING_set(ne->value,bytes,len);
if (!i) return(0);