diff options
-rw-r--r-- | src/GNUmakefile | 1 | ||||
-rw-r--r-- | src/openssl.c | 25 | ||||
-rw-r--r-- | src/openssl.ocsp.basic.lua | 3 |
3 files changed, 29 insertions, 0 deletions
diff --git a/src/GNUmakefile b/src/GNUmakefile index 015a93c..7de802a 100644 --- a/src/GNUmakefile +++ b/src/GNUmakefile | |||
@@ -92,6 +92,7 @@ MODS$(1)_$(d) = \ | |||
92 | $$(DESTDIR)$(3)/openssl.lua \ | 92 | $$(DESTDIR)$(3)/openssl.lua \ |
93 | $$(DESTDIR)$(3)/openssl/auxlib.lua \ | 93 | $$(DESTDIR)$(3)/openssl/auxlib.lua \ |
94 | $$(DESTDIR)$(3)/openssl/bignum.lua \ | 94 | $$(DESTDIR)$(3)/openssl/bignum.lua \ |
95 | $$(DESTDIR)$(3)/openssl/ocsp/basic.lua \ | ||
95 | $$(DESTDIR)$(3)/openssl/pkey.lua \ | 96 | $$(DESTDIR)$(3)/openssl/pkey.lua \ |
96 | $$(DESTDIR)$(3)/openssl/pubkey.lua \ | 97 | $$(DESTDIR)$(3)/openssl/pubkey.lua \ |
97 | $$(DESTDIR)$(3)/openssl/x509.lua \ | 98 | $$(DESTDIR)$(3)/openssl/x509.lua \ |
diff --git a/src/openssl.c b/src/openssl.c index 0de4f82..83e8bc8 100644 --- a/src/openssl.c +++ b/src/openssl.c | |||
@@ -9371,6 +9371,31 @@ static const auxL_Reg ob_metatable[] = { | |||
9371 | { NULL, NULL }, | 9371 | { NULL, NULL }, |
9372 | }; | 9372 | }; |
9373 | 9373 | ||
9374 | static const auxL_Reg ob_globals[] = { | ||
9375 | { NULL, NULL }, | ||
9376 | }; | ||
9377 | |||
9378 | static const auxL_IntegerReg ob_verify_flags[] = { | ||
9379 | { "NOSIGS", OCSP_NOSIGS}, | ||
9380 | { "NOVERIFY", OCSP_NOVERIFY}, | ||
9381 | { "NOCHAIN", OCSP_NOCHAIN}, | ||
9382 | { "NOCHECKS", OCSP_NOCHECKS}, | ||
9383 | { "NOEXPLICIT", OCSP_NOEXPLICIT}, | ||
9384 | { "TRUSTOTHER", OCSP_TRUSTOTHER}, | ||
9385 | { "NOINTERN", OCSP_NOINTERN}, | ||
9386 | { "TRUSTOTHER", OCSP_TRUSTOTHER}, | ||
9387 | { NULL, 0 }, | ||
9388 | }; | ||
9389 | |||
9390 | int luaopen__openssl_ocsp_basic(lua_State *L) { | ||
9391 | initall(L); | ||
9392 | |||
9393 | auxL_newlib(L, ob_globals, 0); | ||
9394 | auxL_setintegers(L, ob_verify_flags); | ||
9395 | |||
9396 | return 1; | ||
9397 | } /* luaopen__openssl_ocsp_basic() */ | ||
9398 | |||
9374 | /* | 9399 | /* |
9375 | * Rand - openssl.rand | 9400 | * Rand - openssl.rand |
9376 | * | 9401 | * |
diff --git a/src/openssl.ocsp.basic.lua b/src/openssl.ocsp.basic.lua new file mode 100644 index 0000000..355faf7 --- /dev/null +++ b/src/openssl.ocsp.basic.lua | |||
@@ -0,0 +1,3 @@ | |||
1 | local ob = require "_openssl.ocsp.basic" | ||
2 | |||
3 | return ob | ||