1
Fork 0
mirror of https://git.savannah.gnu.org/git/guile.git synced 2025-04-30 03:40:34 +02:00
guile/module
Ludovic Courtès 38f14ce65d web: 'open-socket-for-uri' can verify the server's X.509 certificate.
This is largely based on Guix commit
bc3c41ce36349ed4ec758c70b48a7059e363043a and subsequent changes to that
code.

* module/web/client.scm (x509-certificate-directory): New variable.
(set-certificate-credentials-x509-trust-file!*)
(make-credendials-with-ca-trust-files, peer-certificate)
(assert-valid-server-certificate, print-tls-certificate-error): New
procedures.
<top level>: Add call to 'set-exception-printer!'.
(tls-wrap): Add #:verify-certificate? parameter.  When it is true, call
'make-credendials-with-ca-trust-files', pass it to
'set-session-credentials!', and call 'assert-valid-server-certificate'.
(open-socket-for-uri): Add #:verify-certificate? parameter and pass it
to 'tls-wrap'.
(http-request): Add #:verify-certificate? parameter and pass it to
'open-socket-for-uri'.
(define-http-verb): Add #:verify-certificate? parameter and pass it to
'http-request'.
* doc/ref/web.texi (Web Client): Update documentation of
'open-socket-for-uri' and 'http-request'.  Document
'x509-certificate-directory'.
2020-01-13 11:06:01 +01:00
..
ice-9 Bump user-visible copyright years to 2020 2020-01-13 08:36:23 +01:00
language Fix peval bug that ignored excess args 2020-01-12 21:11:09 +01:00
oop goops: Fix 'instance?' to work on objects that aren't structs. 2018-08-07 12:05:31 +02:00
rnrs Fix typos in previous commit. 2020-01-12 22:01:54 +01:00
scheme Support R7RS define-library 2020-01-12 20:31:47 +01:00
scripts Bump user-visible copyright years to 2020 2020-01-13 08:36:23 +01:00
srfi srfi-11: Do not expose variables to later clauses 2020-01-12 22:18:41 +01:00
sxml Remove duplicate definitions of call/ec' and let/ec'. 2013-04-06 15:40:19 +02:00
system Bump objcode minor version in preparation for new stable series 2020-01-13 08:01:40 +01:00
texinfo Merge from stable-2.2 2019-08-02 15:21:59 +02:00
web web: 'open-socket-for-uri' can verify the server's X.509 certificate. 2020-01-13 11:06:01 +01:00
Makefile.am Support R7RS define-library 2020-01-12 20:31:47 +01:00
rnrs.scm Define top-level bindings for aux syntax: else, =>, _, ... 2019-09-12 21:50:51 +02:00
statprof.scm VM manages hook sets itself 2018-09-14 08:52:24 +02:00
texinfo.scm texinfo: fix @url{@@} parsing 2014-11-09 15:56:33 +00:00