From 1865ab5daeb5a30ab10ada390bcb54b06570df45 Mon Sep 17 00:00:00 2001 From: Doug MacEachern Date: Wed, 13 Mar 2002 17:09:51 +0000 Subject: [PATCH] PR: Obtained from: Submitted by: Madhusudan Mathihalli Reviewed by: dougm adjust to SSL_SESSION_id2sz() prototype change git-svn-id: https://svn.apache.org/repos/asf/httpd/httpd/trunk@93907 13f79535-47bb-0310-9956-ffa450edef68 --- modules/ssl/ssl_engine_vars.c | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/modules/ssl/ssl_engine_vars.c b/modules/ssl/ssl_engine_vars.c index a36ff6c5c3..7dde749e82 100644 --- a/modules/ssl/ssl_engine_vars.c +++ b/modules/ssl/ssl_engine_vars.c @@ -282,10 +282,12 @@ static char *ssl_var_lookup_ssl(apr_pool_t *p, conn_rec *c, char *var) result = (char *)SSL_get_version(ssl); } else if (ssl != NULL && strcEQ(var, "SESSION_ID")) { + char buf[SSL_SESSION_ID_STRING_LEN]; SSL_SESSION *pSession = SSL_get_session(ssl); result = apr_pstrdup(p, SSL_SESSION_id2sz( SSL_SESSION_get_session_id(pSession), - SSL_SESSION_get_session_id_length(pSession))); + SSL_SESSION_get_session_id_length(pSession), + buf, sizeof(buf))); } else if (ssl != NULL && strlen(var) >= 6 && strcEQn(var, "CIPHER", 6)) { result = ssl_var_lookup_ssl_cipher(p, c, var+6); -- 2.40.0