From 9a22e97103439a090228b50c59637ca0a34d1271 Mon Sep 17 00:00:00 2001 From: daurnimator Date: Tue, 27 Mar 2018 16:25:18 +1100 Subject: src/openssl.ssl.lua: Add ssl:setStore wrapper --- src/openssl.ssl.lua | 6 ++++++ 1 file changed, 6 insertions(+) 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 -- cgit v1.2.3-59-g8ed1b