summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorKaspar Brand <kbrand@apache.org>2011-09-26 17:24:23 +0200
committerKaspar Brand <kbrand@apache.org>2011-09-26 17:24:23 +0200
commit8a52dc261091866d76abcf4ab52a142bd24fe8a1 (patch)
tree8e50c41b3b04dd4a45fe46f39e1ef691cd4bab51
parentenable the SNI extension for proxy connections (diff)
downloadapache2-8a52dc261091866d76abcf4ab52a142bd24fe8a1.tar.xz
apache2-8a52dc261091866d76abcf4ab52a142bd24fe8a1.zip
replace another occurence of X509_NAME_oneline by SSL_X509_NAME_to_string
git-svn-id: https://svn.apache.org/repos/asf/httpd/httpd/trunk@1175905 13f79535-47bb-0310-9956-ffa450edef68
-rw-r--r--modules/ssl/ssl_engine_init.c10
1 files changed, 5 insertions, 5 deletions
diff --git a/modules/ssl/ssl_engine_init.c b/modules/ssl/ssl_engine_init.c
index 67d1258b11..71a91047aa 100644
--- a/modules/ssl/ssl_engine_init.c
+++ b/modules/ssl/ssl_engine_init.c
@@ -1385,7 +1385,8 @@ static int ssl_init_FindCAList_X509NameCmp(const X509_NAME * const *a,
}
static void ssl_init_PushCAList(STACK_OF(X509_NAME) *ca_list,
- server_rec *s, const char *file)
+ server_rec *s, apr_pool_t *ptemp,
+ const char *file)
{
int n;
STACK_OF(X509_NAME) *sk;
@@ -1398,12 +1399,11 @@ static void ssl_init_PushCAList(STACK_OF(X509_NAME) *ca_list,
}
for (n = 0; n < sk_X509_NAME_num(sk); n++) {
- char name_buf[256];
X509_NAME *name = sk_X509_NAME_value(sk, n);
ap_log_error(APLOG_MARK, APLOG_DEBUG, 0, s,
"CA certificate: %s",
- X509_NAME_oneline(name, name_buf, sizeof(name_buf)));
+ SSL_X509_NAME_to_string(ptemp, name, 0));
/*
* note that SSL_load_client_CA_file() checks for duplicates,
@@ -1441,7 +1441,7 @@ STACK_OF(X509_NAME) *ssl_init_FindCAList(server_rec *s,
* Process CA certificate bundle file
*/
if (ca_file) {
- ssl_init_PushCAList(ca_list, s, ca_file);
+ ssl_init_PushCAList(ca_list, s, ptemp, ca_file);
/*
* If ca_list is still empty after trying to load ca_file
* then the file failed to load, and users should hear about that.
@@ -1475,7 +1475,7 @@ STACK_OF(X509_NAME) *ssl_init_FindCAList(server_rec *s,
continue; /* don't try to load directories */
}
file = apr_pstrcat(ptemp, ca_path, "/", direntry.name, NULL);
- ssl_init_PushCAList(ca_list, s, file);
+ ssl_init_PushCAList(ca_list, s, ptemp, file);
}
apr_dir_close(dir);