src/x509.h

Sat, 17 Dec 2011 10:30:58 -0800

author
Paul Aurich <paul@darkrain42.org>
date
Sat, 17 Dec 2011 10:30:58 -0800
changeset 45
5be249c0ae71
parent 14
1927b7b32faf
permissions
-rw-r--r--

context: Add no_compression for OpenSSL 0.9.8 as well

Since OpenSSL 0.9.8 doesn't have SSL_OP_NO_COMPRESSION, this is
implemented by simplying NULLing out the SSL_CTX->comp_methods stack.

#include <openssl/x509v3.h>
#include <lua.h>

typedef struct t_x509_ {
  X509 *cert;
} t_x509;
typedef t_x509* p_x509;

void luasec_push_x509(lua_State* L, X509* cert);
X509* luasec_to_x509(lua_State* L, int idx);

LUASEC_API int luaopen_ssl_x509(lua_State *L);

mercurial