]> granicus.if.org Git - apache/commitdiff
Use portable macro instead of the (no longer working) Apache-1.3 code
authorMartin Kraemer <martin@apache.org>
Fri, 20 Jun 2003 12:52:18 +0000 (12:52 +0000)
committerMartin Kraemer <martin@apache.org>
Fri, 20 Jun 2003 12:52:18 +0000 (12:52 +0000)
git-svn-id: https://svn.apache.org/repos/asf/httpd/httpd/trunk@100314 13f79535-47bb-0310-9956-ffa450edef68

modules/ssl/ssl_util_ssl.c

index faaebc4fdaaa46dd750f2258417d1a7bc044ab15..eb5929eabb2684a02a4faf4a90d7659a107868fa 100644 (file)
@@ -405,9 +405,7 @@ BOOL SSL_X509_getCN(apr_pool_t *p, X509 *xs, char **cppCN)
             *cppCN = apr_palloc(p, data_len+1);
             apr_cpystrn(*cppCN, (char *)data_ptr, data_len+1);
             (*cppCN)[data_len] = NUL;
-#ifdef CHARSET_EBCDIC
-            ascii2ebcdic(*cppCN, *cppCN, strlen(*cppCN));
-#endif
+            ap_xlate_proto_from_ascii(*cppCN, data_len);
             return TRUE;
         }
     }