aboutsummaryrefslogtreecommitdiffstats
path: root/apps/req.c
diff options
context:
space:
mode:
authorRichard Levitte <levitte@openssl.org>2000-09-10 14:45:19 +0000
committerRichard Levitte <levitte@openssl.org>2000-09-10 14:45:19 +0000
commit97d8e82c4c622b8896e37634c6d4ee43ab6a4432 (patch)
tree9872033f9258a4032388a234c23659b31434cfea /apps/req.c
parentd7b9c76c72bd6e744db2070d148738941ba38305 (diff)
downloadopenssl-97d8e82c4c622b8896e37634c6d4ee43ab6a4432.tar.gz
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/req.c')
-rw-r--r--apps/req.c7
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,