News for hackers. Stuff that matters.
Re:Emacs and TLS by etu on Friday July 20, 2018 @02:03AM (#17572839)
Question: Wouldn't it just be easier for Emacs to link to libcurl which has pretty much reasonable defaults (afaik, correct me if I'm wrong). The result would be that Emacs wouldn't need to link to a specific TLS library or have to maintain this. libcurl's API has a good reputation for not breaking :-)

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.

Re:Emacs and TLS by wyuenho on Friday July 20, 2018 @03:17AM (#17573079)
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.
Re:Emacs and TLS by __david__ on Friday July 20, 2018 @03:20AM (#17573091)
Emacs uses TLS for more than just HTTP. SMTP+STARTLS for instance…
Re:Emacs and TLS by oblio on Friday July 20, 2018 @06:29AM (#17573826)
Re:Emacs and TLS by __david__ on Friday July 20, 2018 @01:11PM (#17576875)
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).
Re:Emacs and TLS by oblio on Friday July 20, 2018 @02:31PM (#17577569)
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.
Re:Emacs and TLS by oblio on Friday July 20, 2018 @06:30AM (#17573832)
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.