summaryrefslogtreecommitdiffhomepage
path: root/libs/nixio/src/nixio-tls.h
diff options
context:
space:
mode:
Diffstat (limited to 'libs/nixio/src/nixio-tls.h')
-rw-r--r--libs/nixio/src/nixio-tls.h22
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_ */