I thought about linking in curl, but curl doesn't seem to offer any help in making OCSP requests separately, it only has support for OCSP stapling. Not that not having OCSP by itself is a major issue, but not having OCSP, CT and a reliable and complete CRL set to check for certificate revocations is. Since GnuTLS is a readily available, and has APIs that make OCSP requests and verify OCSP responses, and Emacs itself can already open network sockets, in the end I've decided to stick to a bunch of Lisp and a couple of simple C functions for GnuTLS.
Emacs uses TLS for more than just HTTP. SMTP+STARTLS for instance…
You were saying: https://stackoverflow.com/questions/14722556/using-curl-to-s...? :D
Fair enough, but does it do nntp, irc, pop, imap, jabber, etc? Emacs (for better or worse) has a complete network API so people can implement all of these things, and it doesn't want to be limited by a high-level library that only supports some small subset (however large that subset is).
If you push hard enough...: https://curl.haxx.se/mail/lib-2012-02/0234.html :)
Re:Emacs and TLS
by simcop2387 on Friday July 20, 2018 @03:23AM
(#17573100)
As far as I know you can't use libcurl to talk to smtp, or other protocols like that. They need generic socket support.
I see SMTP here: https://curl.haxx.se/libcurl/c/smtp-mail.html
And on their page they have a zillion protocols: https://curl.haxx.se/
Maybe it would be worth trying out.
Also big thanks for putting this work into Emacs. I use Emacs for hours at least every work day and many non-workdays as well.