1
Fork 0
mirror of https://git.savannah.gnu.org/git/guile.git synced 2025-04-30 03:40:34 +02:00
guile/module/web
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
..
server web: Export 'server-impl' procedures and the 'http' server implementation. 2016-05-22 19:11:32 +02:00
client.scm web: 'open-socket-for-uri' can verify the server's X.509 certificate. 2020-01-13 11:06:01 +01:00
http.scm Revert "web: Add support for HTTP header continuation lines." 2019-06-24 11:33:13 -04:00
request.scm web: add support for URI-reference 2017-05-21 13:42:29 +02:00
response.scm Web server and client use suspendable ports 2017-02-08 15:16:25 +01:00
server.scm web: Export 'server-impl' procedures and the 'http' server implementation. 2016-05-22 19:11:32 +02:00
uri.scm Merge from stable-2.2 2019-08-02 14:32:35 +02:00