From: Martin Kraemer Date: Tue, 29 Jun 2004 14:06:08 +0000 (+0000) Subject: Use the correct Apache-2.x EBCDIC conversion function (not the old apache-1.3 routine) X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=ea6637bfe64ee7464704bd58af2a8dbec6b8555a;p=thirdparty%2Fapache%2Fhttpd.git Use the correct Apache-2.x EBCDIC conversion function (not the old apache-1.3 routine) git-svn-id: https://svn.apache.org/repos/asf/httpd/httpd/trunk/modules/ssl@104082 13f79535-47bb-0310-9956-ffa450edef68 --- diff --git a/ssl_engine_vars.c b/ssl_engine_vars.c index 32c93b67258..9dc7aecd74b 100644 --- a/ssl_engine_vars.c +++ b/ssl_engine_vars.c @@ -420,10 +420,9 @@ static char *ssl_var_lookup_ssl_cert_dn(apr_pool_t *p, X509_NAME *xsname, char * result = apr_pstrmemdup(p, X509_NAME_ENTRY_get_data_ptr(xsne), X509_NAME_ENTRY_get_data_len(xsne)); -#ifdef CHARSET_EBCDIC - ascii2ebcdic(result, result, - X509_NAME_ENTRY_get_data_len(xsne)); -#endif /* CHARSET_EBCDIC */ +#if APR_CHARSET_EBCDIC + ap_xlate_proto_from_ascii(result, data_len); +#endif /* APR_CHARSET_EBCDIC */ break; } }