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

Add SSL_CTX_set_session_id_context #55

Closed fgaz closed 3 years ago

fgaz commented 3 years ago

As in the title, it'd be nice to have a binding to SSL_CTX_set_session_id_context too. Without it, it's impossible to enable server session resumption with client certificates.

Would you accept a PR that adds a contextSetSessionIdContext :: SSLContext -> ByteString -> IO () function?

vshabanov commented 3 years ago

Sure, I will accept a PR and publish new version on Hackage.