summary refs log tree commit diff stats
path: root/tests/bind
diff options
context:
space:
mode:
authorDanil Yarantsev <tiberiumk12@gmail.com>2020-06-06 10:31:19 +0300
committerGitHub <noreply@github.com>2020-06-06 09:31:19 +0200
commitb19ad22b90b920036fcc7752eca624e55a929cf3 (patch)
treee0a9fb60062f22439779597f492db3fcaab4fd5a /tests/bind
parent7cdf4702699b5de0e31e1139122aa0486fad24a9 (diff)
downloadNim-b19ad22b90b920036fcc7752eca624e55a929cf3.tar.gz
Fix #14570 (#14571)
* Fix #14570
Diffstat (limited to 'tests/bind')
0 files changed, 0 insertions, 0 deletions
'>35 36 37 38 39 40 41












                                                                              


                                 
                                























                                            
#ifndef LSEC_SSL_H
#define LSEC_SSL_H

/*--------------------------------------------------------------------------
 * LuaSec 1.0.2
 *
 * Copyright (C) 2006-2021 Bruno Silvestre
 *
 *--------------------------------------------------------------------------*/

#include <openssl/ssl.h>
#include "../lua.h"

#include "../luasocket/io.h"
#include "../luasocket/buffer.h"
#include "../luasocket/timeout.h"
#include "../luasocket/socket.h"

#include "compat.h"
#include "context.h"

#define LSEC_STATE_NEW       1
#define LSEC_STATE_CONNECTED 2
#define LSEC_STATE_CLOSED    3

#define LSEC_IO_SSL          -100

typedef struct t_ssl_ {
  t_socket sock;
  t_io io;
  t_buffer buf;
  t_timeout tm;
  SSL *ssl;
  int state;
  int error;
} t_ssl;
typedef t_ssl* p_ssl;

LSEC_API int luaopen_ssl_core(lua_State *L);

#endif