Created
July 16, 2012 02:33
-
-
Save suhailshergill/3120044 to your computer and use it in GitHub Desktop.
gnutls voodoo for gist.el
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
(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