]> granicus.if.org Git - apache/commitdiff
PR:
authorDoug MacEachern <dougm@apache.org>
Wed, 13 Mar 2002 17:09:51 +0000 (17:09 +0000)
committerDoug MacEachern <dougm@apache.org>
Wed, 13 Mar 2002 17:09:51 +0000 (17:09 +0000)
Obtained from:
Submitted by:   Madhusudan Mathihalli <madhusudan_mathihalli@hp.com>
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

index a36ff6c5c3933ec2c9565d5905247dcf76cb4036..7dde749e82a7d2f95f50ab3a6541c88714df9725 100644 (file)
@@ -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);