From de11f8cdc5817fd2ea79886c4899d2fbe04c94c2 Mon Sep 17 00:00:00 2001 From: Luke Bratch Date: Sun, 16 Jun 2019 19:31:51 +0100 Subject: Log OpenSSL errors properly instead of printing to stderr. --- sockets.h | 3 +++ 1 file changed, 3 insertions(+) (limited to 'sockets.h') diff --git a/sockets.h b/sockets.h index c1d74c7..4fb6c20 100644 --- a/sockets.h +++ b/sockets.h @@ -68,4 +68,7 @@ int sockread(SSL *fd, char *buf, int bufsize, int tls); // Write to a socket, whether or not using TLS int socksend(SSL *fd, char *buf, int bufsize, int tls); +// Return character array of latest OpenSSL error +char *openssl_error_string(); + #endif -- cgit v1.2.3