src/x509.h

changeset 14
1927b7b32faf
--- /dev/null	Thu Jan 01 00:00:00 1970 +0000
+++ b/src/x509.h	Fri Nov 05 20:48:06 2010 +0000
@@ -0,0 +1,12 @@
+#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