diff options
author | daurnimator <quae@daurnimator.com> | 2017-04-03 18:41:51 +1000 |
---|---|---|
committer | daurnimator <quae@daurnimator.com> | 2017-04-03 18:41:51 +1000 |
commit | b7b068b572e951534747ccd57a8c0987170ab423 (patch) | |
tree | 000f8508c7330592387b240864815cca86dd9427 /src | |
parent | b8e6d9e9de0f5431957a1df666cf6c4753a49518 (diff) | |
download | luaossl-b7b068b572e951534747ccd57a8c0987170ab423.tar.gz luaossl-b7b068b572e951534747ccd57a8c0987170ab423.tar.bz2 luaossl-b7b068b572e951534747ccd57a8c0987170ab423.zip |
Have (empty) openssl.ocsp.response module
Diffstat (limited to 'src')
-rw-r--r-- | src/GNUmakefile | 1 | ||||
-rw-r--r-- | src/openssl.c | 21 | ||||
-rw-r--r-- | src/openssl.ocsp.response.lua | 3 |
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 | |||
9262 | static int or_tostring(lua_State *L) { | 9261 | static 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 | ||
9330 | static const auxL_Reg or_globals[] = { | ||
9331 | { NULL, NULL }, | ||
9332 | }; | ||
9333 | |||
9334 | int 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 | ||
9332 | static int ob_verify(lua_State *L) { | 9348 | static 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 @@ | |||
1 | local ocsp_response = require "_openssl.ocsp.response" | ||
2 | |||
3 | return ocsp_response | ||