haskell-cryptography / HsOpenSSL

OpenSSL binding for Haskell
http://hackage.haskell.org/package/HsOpenSSL
Creative Commons Zero v1.0 Universal
22 stars 33 forks source link

Clear error stack after validation failure #91

Closed pcapriotti closed 3 months ago

pcapriotti commented 3 months ago

When x509_verify fails validating a certificate, it leaves a number of errors on the stack. These need to be cleared before returning, otherwise the global library state is contaminated and that can affect subsequent uses of the library.

vshabanov commented 3 months ago

Thank you. It's now available in HsOpenSSL-0.11.7.7