LispWorks User Guide and Reference Manual > 26 The COMM Package

NextPrevUpTopContentsIndex

make-ssl-ctx

Function
Summary

Makes a SSL_CTX object.

Package

comm

Signature

make-ssl-ctx &key ssl-ctx ssl-side => ssl-ctx-ptr

Arguments

ssl-ctx

A symbol or a foreign pointer.

ssl-side

One of the keywords :client , :server or :both .

Values

ssl-ctx-ptr

A foreign pointer of type ssl-ctx-pointer.

Description

The function make-ssl-ctx first calls ensure-ssl, and returns a foreign pointer of type ssl-ctx-pointer.

If the value of ssl-ctx is t , :default , :v2 , :v3 , :v23 or :tls-v1 , make-ssl-ctx creates a SSL_CTX object and returns a pointer to it.

The value of ssl-ctx can also be a foreign pointer of type ssl-ctx-pointer, in which case it is simply returned. If ssl-ctx is a foreign pointer of type ssl-pointer, then make-ssl-ctx signals an error.

The meaning of the keyword arguments ssl-ctx and ssl-side is as described for socket-stream. The default value of ssl-ctx is t and the default value of ssl-side is :server .

See also

ensure-ssl
socket-stream
ssl-ctx-pointer


LispWorks User Guide and Reference Manual - 22 Dec 2009

NextPrevUpTopContentsIndex