Fetch the latest OpenSSL error and store it in the connection */
| 430 | |
| 431 | /* Fetch the latest OpenSSL error and store it in the connection */ |
| 432 | static 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. |
no test coverage detected