6.2.1
Windows Native SSL: Secure Communication
(require net/win32-ssl) | package: base |
The net/win32-ssl module
offers a fraction of the functionality of openssl and
works only on Windows, but it has the advantage that it works before
OpenSSL libraries are installed.
procedure
(win32-ssl-connect hostname port-no [ client-protocol])
→
(and/c input-port? win32-ssl-port?) (and/c output-port? win32-ssl-port?) hostname : string? port-no : (integer-in 1 65535)
client-protocol :
(or/c 'sslv2-or-v3 'sslv2 'sslv3 'tls) = 'sslv2-or-v3
Like ssl-connect, but without support for client contexts
(which could enable certificate checking, for example).
procedure
(win32-ssl-abandon-port in) → void?
in : (and/c win32-ssl-port? output-port?)
Analogous to ssl-abandon-port.
procedure
(ports->win32-ssl-ports input-port output-port [ #:encrypt protocol])
→
(and/c input-port? win32-ssl-port?) (and/c output-port? win32-ssl-port?) input-port : input-port? output-port : output-port?
protocol : (or/c 'sslv2-or-v3 'sslv2 'sslv3 'tls) = 'sslv2-or-v3
Analogous to ports->ssl-ports.
procedure
(win32-ssl-port? v) → boolean?
v : any/c
value
A boolean value that reports whether the Windows native SSL library was
successfully loaded. Calling win32-ssl-connect, etc. when this
value is #f will raise an exception.