src/x509.h

Sun, 03 Jul 2011 13:13:36 -0700

author
Paul Aurich <paul@darkrain42.org>
date
Sun, 03 Jul 2011 13:13:36 -0700
changeset 41
e26f1f91118a
parent 14
1927b7b32faf
permissions
-rw-r--r--

Fix the verification function so it doesn't pass for everyone on invalid purpose errors.

Inspiration and code partially from Matthew

#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