Fetch the latest OpenSSL error and store it in the connection */
| 688 | |
| 689 | /* Fetch the latest OpenSSL error and store it in the connection */ |
| 690 | static 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 | |
| 697 | connection *connCreateTLS(void) { |
| 698 | return createTLSConnection(1); |
no test coverage detected