summaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
Diffstat (limited to 'src')
-rw-r--r--src/GNUmakefile1
-rw-r--r--src/openssl.c21
-rw-r--r--src/openssl.ocsp.response.lua3
3 files changed, 23 insertions, 2 deletions
diff --git a/src/GNUmakefile b/src/GNUmakefile
index 7de802a..132f3bf 100644
--- a/src/GNUmakefile
+++ b/src/GNUmakefile
@@ -93,6 +93,7 @@ MODS$(1)_$(d) = \
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/ocsp/basic.lua \
96 $$(DESTDIR)$(3)/openssl/ocsp/response.lua \
96 $$(DESTDIR)$(3)/openssl/pkey.lua \ 97 $$(DESTDIR)$(3)/openssl/pkey.lua \
97 $$(DESTDIR)$(3)/openssl/pubkey.lua \ 98 $$(DESTDIR)$(3)/openssl/pubkey.lua \
98 $$(DESTDIR)$(3)/openssl/x509.lua \ 99 $$(DESTDIR)$(3)/openssl/x509.lua \
diff --git a/src/openssl.c b/src/openssl.c
index 83e8bc8..e8dbead 100644
--- a/src/openssl.c
+++ b/src/openssl.c
@@ -9254,11 +9254,10 @@ int luaopen__openssl_cipher(lua_State *L) {
9254 9254
9255 9255
9256/* 9256/*
9257 * OCSP 9257 * OCSP_RESPONSE - openssl.ocsp.response
9258 * 9258 *
9259 * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * */ 9259 * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * */
9260 9260
9261
9262static int or_tostring(lua_State *L) { 9261static int or_tostring(lua_State *L) {
9263 OCSP_RESPONSE *resp = checksimple(L, 1, OCSP_RESPONSE_CLASS); 9262 OCSP_RESPONSE *resp = checksimple(L, 1, OCSP_RESPONSE_CLASS);
9264 BIO *bio = getbio(L); 9263 BIO *bio = getbio(L);
@@ -9328,6 +9327,23 @@ static const auxL_Reg or_metatable[] = {
9328 { NULL, NULL }, 9327 { NULL, NULL },
9329}; 9328};
9330 9329
9330static const auxL_Reg or_globals[] = {
9331 { NULL, NULL },
9332};
9333
9334int luaopen__openssl_ocsp_response(lua_State *L) {
9335 initall(L);
9336
9337 auxL_newlib(L, or_globals, 0);
9338
9339 return 1;
9340} /* luaopen__openssl_ocsp_response() */
9341
9342
9343/*
9344 * OCSP_BASICRESP - openssl.ocsp.basic
9345 *
9346 * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * */
9331 9347
9332static int ob_verify(lua_State *L) { 9348static int ob_verify(lua_State *L) {
9333 OCSP_BASICRESP *basic = checksimple(L, 1, OCSP_BASICRESP_CLASS); 9349 OCSP_BASICRESP *basic = checksimple(L, 1, OCSP_BASICRESP_CLASS);
@@ -9396,6 +9412,7 @@ int luaopen__openssl_ocsp_basic(lua_State *L) {
9396 return 1; 9412 return 1;
9397} /* luaopen__openssl_ocsp_basic() */ 9413} /* luaopen__openssl_ocsp_basic() */
9398 9414
9415
9399/* 9416/*
9400 * Rand - openssl.rand 9417 * Rand - openssl.rand
9401 * 9418 *
diff --git a/src/openssl.ocsp.response.lua b/src/openssl.ocsp.response.lua
new file mode 100644
index 0000000..2226096
--- /dev/null
+++ b/src/openssl.ocsp.response.lua
@@ -0,0 +1,3 @@
1local ocsp_response = require "_openssl.ocsp.response"
2
3return ocsp_response