MCPcopy Create free account
hub / github.com/apache/qpid-proton / ssl_log_error_status

Function ssl_log_error_status

c/src/ssl/schannel.cpp:397–413  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

395
396PN_PRINTF_FORMAT_ATTR(2, 3)
397static void ssl_log_error_status(HRESULT status, PN_PRINTF_FORMAT const char *fmt, ...)
398{
399 char buf[512];
400 va_list ap;
401
402 if (fmt) {
403 va_start(ap, fmt);
404 ssl_vlog(NULL, PN_LEVEL_ERROR, fmt, ap);
405 va_end(ap);
406 }
407
408 if (FormatMessage(FORMAT_MESSAGE_MAX_WIDTH_MASK | FORMAT_MESSAGE_FROM_SYSTEM,
409 0, status, 0, buf, sizeof(buf), 0))
410 ssl_log_error("%s", buf);
411 else
412 ssl_log_error("Internal Windows error: %x for %x", GetLastError(), status);
413}
414
415static void ssl_log_clear_data(pn_transport_t *transport, const char *data, size_t len)
416{

Callers 9

pn_ssl_initFunction · 0.85
client_handshake_initFunction · 0.85
client_handshakeFunction · 0.85
server_handshakeFunction · 0.85
open_cert_dbFunction · 0.85
wide_to_utf8Function · 0.85
server_name_matchesFunction · 0.85
verify_peerFunction · 0.85

Calls 2

ssl_vlogFunction · 0.70
ssl_log_errorFunction · 0.70

Tested by

no test coverage detected