summaryrefslogtreecommitdiffstats
path: root/ssl_timeoutio.h
diff options
context:
space:
mode:
Diffstat (limited to 'ssl_timeoutio.h')
-rw-r--r--ssl_timeoutio.h21
1 files changed, 21 insertions, 0 deletions
diff --git a/ssl_timeoutio.h b/ssl_timeoutio.h
new file mode 100644
index 0000000..073cb67
--- /dev/null
+++ b/ssl_timeoutio.h
@@ -0,0 +1,21 @@
1#ifndef SSL_TIMEOUTIO_H
2#define SSL_TIMEOUTIO_H
3
4#include <openssl/ssl.h>
5
6/* the version is like this: 0xMNNFFPPS: major minor fix patch status */
7#if OPENSSL_VERSION_NUMBER < 0x00906000L
8# error "Need OpenSSL version at least 0.9.6"
9#endif
10
11int ssl_timeoutconn(int t, int rfd, int wfd, SSL *ssl);
12int ssl_timeoutaccept(int t, int rfd, int wfd, SSL *ssl);
13int ssl_timeoutrehandshake(int t, int rfd, int wfd, SSL *ssl);
14
15int ssl_timeoutread(int t, int rfd, int wfd, SSL *ssl, char *buf, int len);
16int ssl_timeoutwrite(int t, int rfd, int wfd, SSL *ssl, char *buf, int len);
17
18int ssl_timeoutio(
19 int (*fun)(), int t, int rfd, int wfd, SSL *ssl, char *buf, int len);
20
21#endif