swh: Allow callers to disable X.509 certificate verification.
authorLudovic Courtès <ludo@gnu.org>
Thu, 9 Jul 2020 15:19:52 +0000 (17:19 +0200)
committerLudovic Courtès <ludo@gnu.org>
Thu, 9 Jul 2020 22:11:00 +0000 (00:11 +0200)
commit722ad41c44a499d2250c79527ef7d069ca728de0
tree080ca3342804089890362b7fdf771c3b21f82513
parentd283bb960f927dd5f7bb8b96bc697221e4e8ad39
swh: Allow callers to disable X.509 certificate verification.

* guix/swh.scm (%verify-swh-certificate?): New parameter.
(http-get*, http-post*): New procedures.
(request-rate-limit-reached?): Use 'http-post*' instead of 'http-post'.
(update-rate-limit-reset-time!): Likewise.
(request-cooking): Likewise.
(call): Method defaults to 'http-get*' instead of 'http-get'.  Pass
 #:verify-certificate? to METHOD.
(vault-fetch): Likewise.
guix/swh.scm