Sortix cross-volatile manual
This manual documents Sortix cross-volatile. You can instead view this document in the latest official manual.
NAME
ssl — OpenSSL TLS libraryDESCRIPTION
The ssl library implements the Transport Layer Security (TLS) protocol, the successor to the Secure Sockets Layer (SSL) protocol.DATA STRUCTURES
Currently the ssl library functions deal with the following data structures:-
SSL_METHOD
(SSL Method)
- That's a dispatch structure describing the internal ssl library methods/functions which implement the various protocol versions. It's needed to create an SSL_CTX. See TLS_method(3) for constructors.
-
SSL_CIPHER
(SSL Cipher)
- This structure holds the algorithm information for a particular cipher which is a core part of the SSL/TLS protocol. The available ciphers are configured on an SSL_CTX basis and the actually used ones are then part of the SSL_SESSION.
-
SSL_CTX
(SSL Context)
- That's the global context structure which is created by a server or client once per program lifetime and which holds mainly default values for the SSL structures which are later created for the connections.
-
SSL_SESSION
(SSL Session)
- This is a structure containing the current TLS/SSL session details for a connection: SSL_CIPHERs, client and server certificates, keys, etc.
-
SSL
(SSL Connection)
- That's the main SSL/TLS structure which is created by a server or client per established connection. This actually is the core structure in the SSL API. At run-time the application usually deals with this structure which has links to mostly all other structures.
HEADER FILES
Currently the ssl library provides the following C header files containing the prototypes for the data structures and functions:- ssl.h
- That's the common header file for the SSL/TLS API. Include it into your program to make the API of the ssl library available. It internally includes both more private SSL headers and headers from the crypto library. Whenever you need hardcore details on the internals of the SSL API, look inside this header file.
- ssl3.h
-
That's the sub header file dealing with the SSLv3 protocol only.Usually you don't have to include it explicitly because it's already included by ssl.h.
- tls1.h
-
That's the sub header file dealing with the TLSv1 protocol only.Usually you don't have to include it explicitly because it's already included by ssl.h.