MCPcopy Create free account
hub / github.com/F-Stack/f-stack / updateTLSError

Function updateTLSError

app/redis-6.2.6/src/tls.c:432–437  ·  view source on GitHub ↗

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

Source from the content-addressed store, hash-verified

430
431/* Fetch the latest OpenSSL error and store it in the connection */
432static void updateTLSError(tls_connection *conn) {
433 conn->c.last_errno = 0;
434 if (conn->ssl_error) zfree(conn->ssl_error);
435 conn->ssl_error = zmalloc(512);
436 ERR_error_string_n(ERR_get_error(), conn->ssl_error, 512);
437}
438
439/* Create a new TLS connection that is already associated with
440 * an accepted underlying file descriptor.

Callers 2

connCreateAcceptedTLSFunction · 0.85
handleSSLReturnCodeFunction · 0.85

Calls 2

zmallocFunction · 0.85
zfreeFunction · 0.70

Tested by

no test coverage detected