-
Notifications
You must be signed in to change notification settings - Fork 34
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Put X509.Authenticator.authenticate into an IO monad? #31
Comments
I'd prefer to not have a user's authentication routine to require I/O. any specific use case in mind? |
Logging certificates to disk or implementing something like Perspectives/Convergence are use cases. |
Also SCVP (RFC 5055). |
And anything else that does DPD/DPV (RFC 3379). |
As we just discussed, exposing an intermediate state value (abstract) would also solve this problem. @pqwy suggested using that approach at a low level and putting a monadic interface on it at a higher level (e.g. TLS). |
To wrap up:
We absolutely knew that as some point, we would want the certificate authenticator to do wild things and potentially talk over the network. But in the course of writing As But please do not expect this do be done too soon; it's fiddly and it's unclear how to do it properly. |
Is this reasonable? What if a user's authentication routine requires I/O?
The text was updated successfully, but these errors were encountered: