diff options
author | Richard Levitte <levitte@openssl.org> | 2000-09-10 16:45:19 +0200 |
---|---|---|
committer | Richard Levitte <levitte@openssl.org> | 2000-09-10 16:45:19 +0200 |
commit | 97d8e82c4c622b8896e37634c6d4ee43ab6a4432 (patch) | |
tree | 9872033f9258a4032388a234c23659b31434cfea /apps | |
parent | More preliminary BIO docs... (diff) | |
download | openssl-97d8e82c4c622b8896e37634c6d4ee43ab6a4432.tar.xz openssl-97d8e82c4c622b8896e37634c6d4ee43ab6a4432.zip |
Marin Kraemer <Martin.Kraemer@MchP.Siemens.De> sent us patches to make
the OpenSSL commands x50 and req work better on a EBCDIC system.
Diffstat (limited to 'apps')
-rw-r--r-- | apps/req.c | 7 |
1 files changed, 7 insertions, 0 deletions
diff --git a/apps/req.c b/apps/req.c index 6a225bb431..2c1b9ee876 100644 --- a/apps/req.c +++ b/apps/req.c @@ -1099,7 +1099,11 @@ static int auto_info(X509_REQ *req, STACK_OF(CONF_VALUE) *dn_sk, * multiple instances */ for(p = v->name; *p ; p++) +#ifndef CHARSET_EBCDIC if ((*p == ':') || (*p == ',') || (*p == '.')) { +#else + if ((*p == os_toascii[':']) || (*p == os_toascii[',']) || (*p == os_toascii['.'])) { +#endif p++; if(*p) type = p; break; @@ -1215,6 +1219,9 @@ start: return(0); } buf[--i]='\0'; +#ifdef CHARSET_EBCDIC + ebcdic2ascii(buf, buf, i); +#endif if(!req_check_len(i, min, max)) goto start; if(!X509_REQ_add1_attr_by_NID(req, nid, MBSTRING_ASC, |