diff options
| author | daurnimator <quae@daurnimator.com> | 2016-11-07 23:09:08 +1100 |
|---|---|---|
| committer | daurnimator <quae@daurnimator.com> | 2016-11-07 23:09:08 +1100 |
| commit | 79ce69e01bf377ae26a3d40ea37454339def94bd (patch) | |
| tree | 527087485d2049702d664b52314750ae2f32d3bb | |
| parent | 938ffdf8c30cb88e4ece27031a2c18cedf9da722 (diff) | |
| download | luaossl-79ce69e01bf377ae26a3d40ea37454339def94bd.tar.gz luaossl-79ce69e01bf377ae26a3d40ea37454339def94bd.tar.bz2 luaossl-79ce69e01bf377ae26a3d40ea37454339def94bd.zip | |
openssl.x509.store: Expose cert dir and cert file constants
| -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 | ||
