summaryrefslogtreecommitdiff
path: root/src/openssl.c
diff options
context:
space:
mode:
authordaurnimator <quae@daurnimator.com>2017-04-03 18:30:30 +1000
committerdaurnimator <quae@daurnimator.com>2017-04-03 18:30:49 +1000
commit1274afbbf57354afd93a925c9ba766a71b47598b (patch)
tree9db8100d2464f92b8ead7b86a7a10309ff872385 /src/openssl.c
parenta46bb3bb92178884616e2b645241ee3fe0d962f7 (diff)
downloadluaossl-1274afbbf57354afd93a925c9ba766a71b47598b.tar.gz
luaossl-1274afbbf57354afd93a925c9ba766a71b47598b.tar.bz2
luaossl-1274afbbf57354afd93a925c9ba766a71b47598b.zip
Export constants for openssl.ocsp.basic:verify() with via module
Diffstat (limited to 'src/openssl.c')
-rw-r--r--src/openssl.c25
1 files changed, 25 insertions, 0 deletions
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
9374static const auxL_Reg ob_globals[] = {
9375 { NULL, NULL },
9376};
9377
9378static 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
9390int 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 *