summaryrefslogtreecommitdiff
path: root/sockets.h
diff options
context:
space:
mode:
authorLuke Bratch <luke@bratch.co.uk>2019-06-16 19:31:51 +0100
committerLuke Bratch <luke@bratch.co.uk>2019-06-16 19:31:51 +0100
commitde11f8cdc5817fd2ea79886c4899d2fbe04c94c2 (patch)
tree4e22b67cd007298bd7b5504c0c7a733893854581 /sockets.h
parentdb0ab741a43a56ed898112fa09af6e465272cd25 (diff)
Log OpenSSL errors properly instead of printing to stderr.
Diffstat (limited to 'sockets.h')
-rw-r--r--sockets.h3
1 files changed, 3 insertions, 0 deletions
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