diff options
author | daurnimator <quae@daurnimator.com> | 2018-03-27 16:25:18 +1100 |
---|---|---|
committer | daurnimator <quae@daurnimator.com> | 2018-03-27 16:35:21 +1100 |
commit | 9a22e97103439a090228b50c59637ca0a34d1271 (patch) | |
tree | 5880f7e154f27dee6b0b2fea7ddd413c279f19b0 | |
parent | 615743fec5eb97d42f1e7c9fc5964106816dcce4 (diff) | |
download | luaossl-9a22e97103439a090228b50c59637ca0a34d1271.tar.gz luaossl-9a22e97103439a090228b50c59637ca0a34d1271.tar.bz2 luaossl-9a22e97103439a090228b50c59637ca0a34d1271.zip |
src/openssl.ssl.lua: Add ssl:setStore wrapper
-rw-r--r-- | src/openssl.ssl.lua | 6 |
1 files changed, 6 insertions, 0 deletions
diff --git a/src/openssl.ssl.lua b/src/openssl.ssl.lua index bf90f29..2a18024 100644 --- a/src/openssl.ssl.lua +++ b/src/openssl.ssl.lua @@ -2,6 +2,12 @@ local ssl = require"_openssl.ssl" local pack = table.pack or function(...) return { n = select("#", ...); ... } end +ssl.interpose("setStore", function(self, store) + self:setChainStore(store) + self:setVerifyStore(store) + return true +end) + -- Allow passing a vararg of curves, or an array local setCurvesList = ssl.interpose("setCurvesList", nil) if setCurvesList then |