aboutsummaryrefslogtreecommitdiff
path: root/src/ssl.h
blob: 13ce97b96c1debd3ced8ff83fe17ecbbcec21402 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
#ifndef SSL_H
#define SSL_H
/*=========================================================================*\
* Simple client SSL support
* LuaSocket toolkit
*
* This is just a simple example to show how to extend LuaSocket
*
* RCS ID: $Id$
\*=========================================================================*/
#include <lua.h>
#include <openssl/ssl.h>

#include "buffer.h"
#include "timeout.h"
#include "socket.h"
#include "tcp.h"

typedef struct t_wrap_ {
    p_tcp tcp;
    SSL* ssl;
    int ref;
} t_wrap;

typedef t_wrap *p_wrap;

int ssl_open(lua_State *L);

#endif /* SSL_H */