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

Function ssl_log_ssl_error

modules/ssl/ssl_engine_log.c:94–124  ·  view source on GitHub ↗

* Prints the SSL library error information. */

Source from the content-addressed store, hash-verified

92 * Prints the SSL library error information.
93 */
94void ssl_log_ssl_error(const char *file, int line, int level, server_rec *s)
95{
96 unsigned long e;
97 const char *data;
98 int flags;
99
100 while ((e = modssl_ERR_peek_error_data(&data, &flags))) {
101 const char *annotation;
102 char err[256];
103
104 if (!(flags & ERR_TXT_STRING)) {
105 data = NULL;
106 }
107
108 ERR_error_string_n(e, err, sizeof err);
109 annotation = ssl_log_annotation(err);
110
111 ap_log_error(file, line, APLOG_MODULE_INDEX, level, 0, s,
112 "SSL Library Error: %s%s%s%s%s%s",
113 /* %s */
114 err,
115 /* %s%s%s */
116 data ? " (" : "", data ? data : "", data ? ")" : "",
117 /* %s%s */
118 annotation ? " -- " : "",
119 annotation ? annotation : "");
120
121 /* Pop the error off the stack: */
122 ERR_get_error();
123 }
124}
125
126static void ssl_log_cert_error(const char *file, int line, int level,
127 apr_status_t rv, const server_rec *s,

Callers 15

ssl_init_ssl_connectionFunction · 0.85
read_responseFunction · 0.85
ssl_io_input_readFunction · 0.85
ssl_filter_writeFunction · 0.85
ssl_io_filter_errorFunction · 0.85
ssl_io_filter_handshakeFunction · 0.85
ssl_init_ModuleFunction · 0.85
ssl_init_EngineFunction · 0.85
ssl_init_ctx_protocolFunction · 0.85

Calls 3

ssl_log_annotationFunction · 0.85
ap_log_errorFunction · 0.50

Tested by

no test coverage detected