On this page:
Windows Native SSL:   Secure Communication
win32-ssl-connect
win32-ssl-abandon-port
ports->win32-ssl-ports
win32-ssl-port?
win32-ssl-available?
6.0

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).

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
Returns #t of v is an SSL port produced by win32-ssl-connect or ports->win32-ssl-ports.

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.