mirror of
https://git.in.rschanz.org/ryan77627/guix.git
synced 2024-11-07 07:26:13 -05:00
download: Enable TLS 1.3.
This reverts commit e4ee842026
.
* guix/build/download.scm (tls-wrap): Dot not disable TLS 1.3.
This commit is contained in:
parent
e7453b3cb5
commit
621fb83a1f
1 changed files with 2 additions and 13 deletions
|
@ -158,7 +158,7 @@ (define* (ftp-fetch uri file #:key timeout print-build-trace?)
|
|||
;; See <http://bugs.gnu.org/12202>.
|
||||
(module-autoload! (current-module)
|
||||
'(gnutls)
|
||||
'(gnutls-version make-session connection-end/client))
|
||||
'(make-session connection-end/client))
|
||||
|
||||
(define %tls-ports
|
||||
;; Mapping of session record ports to the underlying file port.
|
||||
|
@ -273,18 +273,7 @@ (define (log level str)
|
|||
;; "(gnutls) Priority Strings"); see <http://bugs.gnu.org/23311>.
|
||||
;; Explicitly disable SSLv3, which is insecure:
|
||||
;; <https://tools.ietf.org/html/rfc7568>.
|
||||
;;
|
||||
;; FIXME: Since we currently fail to handle TLS 1.3 (with GnuTLS 3.6.5),
|
||||
;; remove it; see <https://bugs.gnu.org/34102>.
|
||||
(set-session-priorities! session
|
||||
(string-append
|
||||
"NORMAL:%COMPAT:-VERS-SSL3.0"
|
||||
|
||||
;; The "VERS-TLS1.3" priority string is not
|
||||
;; supported by GnuTLS 3.5.
|
||||
(if (string-prefix? "3.5." (gnutls-version))
|
||||
""
|
||||
":-VERS-TLS1.3")))
|
||||
(set-session-priorities! session "NORMAL:%COMPAT:-VERS-SSL3.0")
|
||||
|
||||
(set-session-credentials! session
|
||||
(if (and verify-certificate? ca-certs)
|
||||
|
|
Loading…
Reference in a new issue