diff options
author | Luke Bratch <luke@bratch.co.uk> | 2019-06-16 19:31:51 +0100 |
---|---|---|
committer | Luke Bratch <luke@bratch.co.uk> | 2019-06-16 19:31:51 +0100 |
commit | de11f8cdc5817fd2ea79886c4899d2fbe04c94c2 (patch) | |
tree | 4e22b67cd007298bd7b5504c0c7a733893854581 /sockets.h | |
parent | db0ab741a43a56ed898112fa09af6e465272cd25 (diff) |
Log OpenSSL errors properly instead of printing to stderr.
Diffstat (limited to 'sockets.h')
-rw-r--r-- | sockets.h | 3 |
1 files changed, 3 insertions, 0 deletions
@@ -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 |