Sun, 03 Jul 2011 13:13:36 -0700
ssl: Fix indentation (not sure how this happened)
0 | 1 | #ifndef __SSL_H__ |
2 | #define __SSL_H__ | |
3 | ||
4 | /*-------------------------------------------------------------------------- | |
5 | * LuaSec 0.4 | |
6 | * Copyright (C) 2006-2009 Bruno Silvestre | |
7 | * | |
8 | *--------------------------------------------------------------------------*/ | |
9 | ||
10 | #include <openssl/ssl.h> | |
11 | #include <lua.h> | |
12 | ||
13 | #include "io.h" | |
14 | #include "buffer.h" | |
15 | #include "timeout.h" | |
39
3626abd24c59
ssl: ssl.h needs to include socket.h
Paul Aurich <paul@darkrain42.org>
parents:
0
diff
changeset
|
16 | #include "socket.h" |
0 | 17 | #include "context.h" |
18 | ||
19 | #define ST_SSL_NEW 1 | |
20 | #define ST_SSL_CONNECTED 2 | |
21 | #define ST_SSL_CLOSED 3 | |
22 | ||
23 | typedef struct t_ssl_ { | |
24 | t_socket sock; | |
25 | t_io io; | |
26 | t_buffer buf; | |
27 | t_timeout tm; | |
28 | SSL *ssl; | |
29 | char state; | |
30 | int error; | |
31 | } t_ssl; | |
32 | typedef t_ssl* p_ssl; | |
33 | ||
34 | LUASEC_API int luaopen_ssl_core(lua_State *L); | |
35 | ||
36 | #endif |