diff options
author | Steven Barth <steven@midlink.org> | 2009-02-23 17:21:14 +0000 |
---|---|---|
committer | Steven Barth <steven@midlink.org> | 2009-02-23 17:21:14 +0000 |
commit | 6b104b9a458db6c2a1624085121814e7c8cbb014 (patch) | |
tree | 08b22ae96d2981700f0b03ad5487470bb40cf6b8 /libs/nixio/src/nixio-tls.h | |
parent | 65b50a8f8a95d0d091a3f16ba5574842840c7289 (diff) |
nixio:
Reogranize TLS headers
Fix TLS receive buffer workaround for axTLS
Add support for flock()
Diffstat (limited to 'libs/nixio/src/nixio-tls.h')
-rw-r--r-- | libs/nixio/src/nixio-tls.h | 22 |
1 files changed, 22 insertions, 0 deletions
diff --git a/libs/nixio/src/nixio-tls.h b/libs/nixio/src/nixio-tls.h new file mode 100644 index 0000000000..13b400ed52 --- /dev/null +++ b/libs/nixio/src/nixio-tls.h @@ -0,0 +1,22 @@ +#ifndef NIXIO_TLS_H_ +#define NIXIO_TLS_H_ + +#include "nixio.h" + +#ifndef WITHOUT_OPENSSL +#include <openssl/ssl.h> +#endif + +#define NIXIO_TLS_CTX_META "nixio.tls.ctx" +#define NIXIO_TLS_SOCK_META "nixio.tls.sock" + +typedef struct nixio_tls_socket { + SSL *socket; +#ifdef WITH_AXTLS + size_t pbufsiz; + char *pbufpos; + char *pbuffer; +#endif +} nixio_tls_sock; + +#endif /* NIXIO_TLS_H_ */ |