Skip to content

Instantly share code, notes, and snippets.

@suhailshergill
Created July 16, 2012 02:33
Show Gist options
  • Save suhailshergill/3120044 to your computer and use it in GitHub Desktop.
Save suhailshergill/3120044 to your computer and use it in GitHub Desktop.
gnutls voodoo for gist.el
(eval-after-load 'gist
'(progn
(defadvice gh-api-run-request (around
su/advice/gist/gh-api-run-request/around/set-tls-program a c pre)
"Set `tls-program' to favor openssl, otherwise url-retrieve-synchronously
hangs"
(let ((tls-program '(
"openssl s_client -connect %h:%p -no_ssl2 -ign_eof"
"gnutls-cli --insecure -p %p %h"
"gnutls-cli --insecure -p %p %h --protocols ssl3"
)))
ad-do-it))
))
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment