You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
I am using validate from x509-validation package in an otherwise pure (no IO) scenario. After looking at the code I would be interested in accessing doValidate and pass in the current DateTime or not use that at all (disabling the check).
Would you be open about a PR where doValidate is exported and changed to something like:
doValidate :: Monad m => DateTime
-> ValidationHooks
-> ValidationChecks
-> CertificateStore
-> ServiceID
-> CertificateChain
-> m [FailedReason]
As far as I could tell there is no reason to have this lower-level checking function run in IO.
Thanks for creating these packages!
The text was updated successfully, but these errors were encountered:
Hi,
I am using
validate
fromx509-validation
package in an otherwise pure (noIO
) scenario. After looking at the code I would be interested in accessingdoValidate
and pass in the currentDateTime
or not use that at all (disabling the check).Would you be open about a PR where
doValidate
is exported and changed to something like:As far as I could tell there is no reason to have this lower-level checking function run in
IO
.Thanks for creating these packages!
The text was updated successfully, but these errors were encountered: