aboutsummaryrefslogtreecommitdiff
path: root/src/ssl.h
diff options
context:
space:
mode:
Diffstat (limited to 'src/ssl.h')
-rw-r--r--src/ssl.h29
1 files changed, 29 insertions, 0 deletions
diff --git a/src/ssl.h b/src/ssl.h
new file mode 100644
index 0000000..13ce97b
--- /dev/null
+++ b/src/ssl.h
@@ -0,0 +1,29 @@
1#ifndef SSL_H
2#define SSL_H
3/*=========================================================================*\
4* Simple client SSL support
5* LuaSocket toolkit
6*
7* This is just a simple example to show how to extend LuaSocket
8*
9* RCS ID: $Id$
10\*=========================================================================*/
11#include <lua.h>
12#include <openssl/ssl.h>
13
14#include "buffer.h"
15#include "timeout.h"
16#include "socket.h"
17#include "tcp.h"
18
19typedef struct t_wrap_ {
20 p_tcp tcp;
21 SSL* ssl;
22 int ref;
23} t_wrap;
24
25typedef t_wrap *p_wrap;
26
27int ssl_open(lua_State *L);
28
29#endif /* SSL_H */