diff options
author | Dr. Stephen Henson <steve@openssl.org> | 2003-03-30 01:51:16 +0000 |
---|---|---|
committer | Dr. Stephen Henson <steve@openssl.org> | 2003-03-30 01:51:16 +0000 |
commit | 1a15c89988f1be6e3f46b184cc1b27e6cf43e869 (patch) | |
tree | a7d6e8737be2712658684fc72c196562a2e99b78 /crypto/x509v3/v3_utl.c | |
parent | d0a4bd00b6fe6dc7f3de37ad1e8682656629e21c (diff) |
Multi valued AVA support.
Diffstat (limited to 'crypto/x509v3/v3_utl.c')
-rw-r--r-- | crypto/x509v3/v3_utl.c | 15 |
1 files changed, 13 insertions, 2 deletions
diff --git a/crypto/x509v3/v3_utl.c b/crypto/x509v3/v3_utl.c index 9770b51677..a2bb7b0043 100644 --- a/crypto/x509v3/v3_utl.c +++ b/crypto/x509v3/v3_utl.c @@ -801,7 +801,7 @@ int X509V3_NAME_from_section(X509_NAME *nm, STACK_OF(CONF_VALUE)*dn_sk, unsigned long chtype) { CONF_VALUE *v; - int i; + int i, mval; char *p, *type; if (!nm) return 0; @@ -824,8 +824,19 @@ int X509V3_NAME_from_section(X509_NAME *nm, STACK_OF(CONF_VALUE)*dn_sk, if(*p) type = p; break; } +#ifndef CHARSET_EBCDIC + if (*p == '+') +#else + if (*p == os_toascii['+']) +#endif + { + mval = -1; + p++; + } + else + mval = 0; if (!X509_NAME_add_entry_by_txt(nm,type, chtype, - (unsigned char *) v->value,-1,-1,0)) + (unsigned char *) v->value,-1,-1,mval)) return 0; } |