MCPcopy Create free account
hub / github.com/Snapchat/KeyDB / updateTLSError

Function updateTLSError

src/tls.cpp:690–695  ·  view source on GitHub ↗

Fetch the latest OpenSSL error and store it in the connection */

Source from the content-addressed store, hash-verified

688
689/* Fetch the latest OpenSSL error and store it in the connection */
690static void updateTLSError(tls_connection *conn) {
691 conn->c.last_errno = 0;
692 if (conn->ssl_error) zfree(conn->ssl_error);
693 conn->ssl_error = (char*)zmalloc(512);
694 ERR_error_string_n(ERR_get_error(), conn->ssl_error, 512);
695}
696
697connection *connCreateTLS(void) {
698 return createTLSConnection(1);

Callers 2

connCreateAcceptedTLSFunction · 0.85
handleSSLReturnCodeFunction · 0.85

Calls 2

zfreeFunction · 0.85
zmallocFunction · 0.85

Tested by

no test coverage detected