diff options
Diffstat (limited to 'sockets.h')
-rw-r--r-- | sockets.h | 6 |
1 files changed, 6 insertions, 0 deletions
@@ -34,4 +34,10 @@ SSL_CTX *create_context(); void configure_context(SSL_CTX *ctx, char *certfile, char *keyfile); +// Read from a socket, whether or not using TLS +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); + #endif |