diff options
| author | manuel <manuel@mausz.at> | 2013-02-04 02:32:40 +0100 |
|---|---|---|
| committer | manuel <manuel@mausz.at> | 2013-02-04 02:32:40 +0100 |
| commit | 8514473287c9594137c6fbc39f5619672ebc2430 (patch) | |
| tree | a5b965d8c7b60dee396bf8ebe25dd3eddfaa6753 /ssl_timeoutio.h | |
| parent | 35ddb916045abafaa4ae2c778b9383059fa06726 (diff) | |
| download | qmail-8514473287c9594137c6fbc39f5619672ebc2430.tar.gz qmail-8514473287c9594137c6fbc39f5619672ebc2430.tar.bz2 qmail-8514473287c9594137c6fbc39f5619672ebc2430.zip | |
[PATCH] qregex-starttls-2way-auth-20060423-mm
Diffstat (limited to 'ssl_timeoutio.h')
| -rw-r--r-- | ssl_timeoutio.h | 21 |
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 | |||
| 11 | int ssl_timeoutconn(int t, int rfd, int wfd, SSL *ssl); | ||
| 12 | int ssl_timeoutaccept(int t, int rfd, int wfd, SSL *ssl); | ||
| 13 | int ssl_timeoutrehandshake(int t, int rfd, int wfd, SSL *ssl); | ||
| 14 | |||
| 15 | int ssl_timeoutread(int t, int rfd, int wfd, SSL *ssl, char *buf, int len); | ||
| 16 | int ssl_timeoutwrite(int t, int rfd, int wfd, SSL *ssl, char *buf, int len); | ||
| 17 | |||
| 18 | int ssl_timeoutio( | ||
| 19 | int (*fun)(), int t, int rfd, int wfd, SSL *ssl, char *buf, int len); | ||
| 20 | |||
| 21 | #endif | ||
