diff options
author | Ludovic Courtès <ludo@gnu.org> | 2016-03-10 11:53:03 +0100 |
---|---|---|
committer | Ludovic Courtès <ludo@gnu.org> | 2016-03-10 13:55:30 +0100 |
commit | 9b7bd1b160be7c740a798c09e3b8986368b92036 (patch) | |
tree | 172e7cb6fc5a1d79c20ce043cdbd88e0c20b357c /tests | |
parent | 2f9862ffd0cdcfbd05bc5baaaae9bbd499b1d7d8 (diff) | |
download | guix-9b7bd1b160be7c740a798c09e3b8986368b92036.tar.gz guix-9b7bd1b160be7c740a798c09e3b8986368b92036.zip |
substitute: Add HTTPS support.
Fixes <http://bugs.gnu.org/22937>.
Reported by Chris Marusich <cmmarusich@gmail.com>.
* guix/scripts/substitute.scm (fetch): Add 'https' alongside 'http'.
Use 'open-connection-for-uri' instead of 'open-socket-for-uri'. Call
'setvbuf' only when PORT matches 'file-port?'.
(http-multiple-get): Likewise. Change 'base-url' parameter to
'base-uri'.
(fetch-narinfos)[do-fetch]: Add 'https' case alongside 'http'. Pass URI
instead of URL to 'http-multiple-get'.
* doc/guix.texi (Requirements): Move GnuTLS one level higher and mention
HTTPS substitutes.
(Substitutes): Mention HTTPS and recommend it. Explain why servers
are not authenticated. Add "On Trusting Binaries" subsection.
Diffstat (limited to 'tests')
0 files changed, 0 insertions, 0 deletions