The following functions map directly to the OpenSSL functions. Check the OpenSSL documentation for details.
Where an OpenSSL function takes an SSL* or SSL_CTX*, the Lisp function's argument must be a foreign pointer of type
. Where an OpenSSL function takes a
, the Lisp function's argument must be a string or integer. Where an OpenSSL function takes other kinds of pointers, the Lisp function's argument must be a foreign pointer. The return values are integers or foreign pointers.
If an error occurs in one of these functions, an error code is returned. They do not signal an Common Lisp conditions and so you should check the return value carefully.
If you need OpenSSL functionality that is not provided here, you can define your own foreign functions via the LispWorks Foreign Language Interface.
If you do this, an important point to note is that on Windows, the
(it defaults to
). If using OpenSSL suddenly causes mysterious crashes, the
in your foreign function definitions is the first thing to check.