diff options
| -rw-r--r-- | src/openssl.c | 9 |
1 files changed, 9 insertions, 0 deletions
diff --git a/src/openssl.c b/src/openssl.c index 7c3f32f..5ee969a 100644 --- a/src/openssl.c +++ b/src/openssl.c | |||
| @@ -6905,6 +6905,15 @@ int luaopen__openssl_x509_store(lua_State *L) { | |||
| 6905 | 6905 | ||
| 6906 | auxL_newlib(L, xs_globals, 0); | 6906 | auxL_newlib(L, xs_globals, 0); |
| 6907 | 6907 | ||
| 6908 | lua_pushstring(L, X509_get_default_cert_dir()); | ||
| 6909 | lua_setfield(L, -2, "CERT_DIR"); | ||
| 6910 | lua_pushstring(L, X509_get_default_cert_file()); | ||
| 6911 | lua_setfield(L, -2, "CERT_FILE"); | ||
| 6912 | lua_pushstring(L, X509_get_default_cert_dir_env()); | ||
| 6913 | lua_setfield(L, -2, "CERT_DIR_EVP"); | ||
| 6914 | lua_pushstring(L, X509_get_default_cert_file_env()); | ||
| 6915 | lua_setfield(L, -2, "CERT_FILE_EVP"); | ||
| 6916 | |||
| 6908 | return 1; | 6917 | return 1; |
| 6909 | } /* luaopen__openssl_x509_store() */ | 6918 | } /* luaopen__openssl_x509_store() */ |
| 6910 | 6919 | ||
