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/openssl.c | |
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/openssl.c')
-rw-r--r-- | src/openssl.c | 21 |
1 files changed, 19 insertions, 2 deletions
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 | * |