在本页中:
Mac OS Native SSL:   Secure Communication
osx-ssl-connect
osx-ssl-abandon-port
osx-ssl-output-port?
osx-old-openssl?
7.0.0.18

Mac OS Native SSL: Secure Communication

 (require net/osx-ssl) package: base
The net/osx-ssl module offers a fraction of the functionality of openssl and works only on Mac OS, but it has the advantage that it works before OpenSSL libraries are installed.

添加于package base的6.3.0.12版本。

函数

(osx-ssl-connect hostname 
  port-no 
  [client-protocol]) 
  
input-port?
(and/c output-port? osx-ssl-output-port?)
  hostname : string?
  port-no : (integer-in 1 65535)
  client-protocol : 
(or/c 'secure 'auto
      'sslv2-or-v3 'sslv2 'sslv3 'tls 'tls11 'tls12)
   = 'auto
Like ssl-connect, but without support for client contexts.

函数

(osx-ssl-abandon-port in)  void?

  in : osx-ssl-output-port?
Analogous to ssl-abandon-port.

函数

(osx-ssl-output-port? v)  boolean?

  v : any/c
Returns #t of v is an SSL output port produced by osx-ssl-connect.

Returns #t if the OpenSSL library currently accessed by openssl is too old, in which case osx-ssl-connect should be preferred.