MCPcopy Create free account
hub / github.com/apache/httpd / ssl_session_log

Function ssl_session_log

modules/ssl/ssl_engine_kernel.c:1869–1895  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

1867}
1868
1869static void ssl_session_log(server_rec *s,
1870 const char *request,
1871 IDCONST unsigned char *id,
1872 unsigned int idlen,
1873 const char *status,
1874 const char *result,
1875 long timeout)
1876{
1877 char buf[MODSSL_SESSION_ID_STRING_LEN];
1878 char timeout_str[56] = {'\0'};
1879
1880 if (!APLOGdebug(s)) {
1881 return;
1882 }
1883
1884 if (timeout) {
1885 apr_snprintf(timeout_str, sizeof(timeout_str),
1886 "timeout=%lds ", timeout);
1887 }
1888
1889 ap_log_error(APLOG_MARK, APLOG_TRACE2, 0, s,
1890 "Inter-Process Session Cache: "
1891 "request=%s status=%s id=%s %s(session %s)",
1892 request, status,
1893 modssl_SSL_SESSION_id2sz(id, idlen, buf, sizeof(buf)),
1894 timeout_str, result);
1895}
1896
1897/*
1898 * This callback function is executed by OpenSSL whenever a new SSL_SESSION is

Calls 2

modssl_SSL_SESSION_id2szFunction · 0.85
ap_log_errorFunction · 0.50

Tested by

no test coverage detected