aboutsummaryrefslogtreecommitdiffstats
path: root/src/openssl.c
diff options
context:
space:
mode:
Diffstat (limited to 'src/openssl.c')
-rw-r--r--src/openssl.c21
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) {
/*
- * OCSP
+ * OCSP_RESPONSE - openssl.ocsp.response
*
* * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * */
-
static int or_tostring(lua_State *L) {
OCSP_RESPONSE *resp = checksimple(L, 1, OCSP_RESPONSE_CLASS);
BIO *bio = getbio(L);
@@ -9328,6 +9327,23 @@ static const auxL_Reg or_metatable[] = {
{ NULL, NULL },
};
+static const auxL_Reg or_globals[] = {
+ { NULL, NULL },
+};
+
+int luaopen__openssl_ocsp_response(lua_State *L) {
+ initall(L);
+
+ auxL_newlib(L, or_globals, 0);
+
+ return 1;
+} /* luaopen__openssl_ocsp_response() */
+
+
+/*
+ * OCSP_BASICRESP - openssl.ocsp.basic
+ *
+ * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * */
static int ob_verify(lua_State *L) {
OCSP_BASICRESP *basic = checksimple(L, 1, OCSP_BASICRESP_CLASS);
@@ -9396,6 +9412,7 @@ int luaopen__openssl_ocsp_basic(lua_State *L) {
return 1;
} /* luaopen__openssl_ocsp_basic() */
+
/*
* Rand - openssl.rand
*