diff options
author | Diego Nehab <diego@tecgraf.puc-rio.br> | 2004-06-22 16:12:53 +0000 |
---|---|---|
committer | Diego Nehab <diego@tecgraf.puc-rio.br> | 2004-06-22 16:12:53 +0000 |
commit | 1ce47ebe3942a8b18b3b709f1ad915ac9ce82782 (patch) | |
tree | 7e78b55363929ecd43ac01a64dec6f22b2386215 /src/ssl.h | |
parent | 7195ab620bd5029856a5c6c88e54a9a6eceb5e87 (diff) | |
download | luasocket-1ce47ebe3942a8b18b3b709f1ad915ac9ce82782.tar.gz luasocket-1ce47ebe3942a8b18b3b709f1ad915ac9ce82782.tar.bz2 luasocket-1ce47ebe3942a8b18b3b709f1ad915ac9ce82782.zip |
Added support for unix stream sockets.
Diffstat (limited to 'src/ssl.h')
-rw-r--r-- | src/ssl.h | 29 |
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 | |||
19 | typedef struct t_wrap_ { | ||
20 | p_tcp tcp; | ||
21 | SSL* ssl; | ||
22 | int ref; | ||
23 | } t_wrap; | ||
24 | |||
25 | typedef t_wrap *p_wrap; | ||
26 | |||
27 | int ssl_open(lua_State *L); | ||
28 | |||
29 | #endif /* SSL_H */ | ||