Commit 88574d5 1 parent dd4d7a6 commit 88574d5 Copy full SHA for 88574d5
File tree 2 files changed +8
-0
lines changed
2 files changed +8
-0
lines changed Original file line number Diff line number Diff line change @@ -28,6 +28,8 @@ ffi.cdef [[
28
28
X509 * x509 , OPENSSL_STACK * chain );
29
29
30
30
int X509_STORE_CTX_get_error (X509_STORE_CTX * ctx );
31
+
32
+ int X509_STORE_set_flags (X509_STORE * ctx , unsigned long flags );
31
33
]]
32
34
33
35
local _M = {}
Original file line number Diff line number Diff line change @@ -64,6 +64,12 @@ function _M:add(item)
64
64
if C .X509_STORE_add_crl (self .ctx , dup ) ~= 1 then
65
65
err = format_error (" store:add: X509_STORE_add_crl" )
66
66
end
67
+
68
+ -- define X509_V_FLAG_CRL_CHECK 0x4
69
+ -- enables CRL checking for the certificate chain leaf certificate.
70
+ -- An error occurs if a suitable CRL cannot be found.
71
+ -- Note: this does not check for certificates in the chain.
72
+ C .X509_STORE_set_flags (self .ctx , 0x4 )
67
73
-- decrease the dup ctx ref count immediately to make leak test happy
68
74
C .X509_CRL_free (dup )
69
75
else
You can’t perform that action at this time.
0 commit comments