xref: /netbsd-src/crypto/external/bsd/openssl.old/dist/doc/man7/ssl.pod (revision 4724848cf0da353df257f730694b7882798e5daf)
1*4724848cSchristos=pod
2*4724848cSchristos
3*4724848cSchristos=head1 NAME
4*4724848cSchristos
5*4724848cSchristosssl - OpenSSL SSL/TLS library
6*4724848cSchristos
7*4724848cSchristos=head1 SYNOPSIS
8*4724848cSchristos
9*4724848cSchristosSee the individual manual pages for details.
10*4724848cSchristos
11*4724848cSchristos=head1 DESCRIPTION
12*4724848cSchristos
13*4724848cSchristosThe OpenSSL B<ssl> library implements the Secure Sockets Layer (SSL v2/v3) and
14*4724848cSchristosTransport Layer Security (TLS v1) protocols. It provides a rich API which is
15*4724848cSchristosdocumented here.
16*4724848cSchristos
17*4724848cSchristosAn B<SSL_CTX> object is created as a framework to establish
18*4724848cSchristosTLS/SSL enabled connections (see L<SSL_CTX_new(3)>).
19*4724848cSchristosVarious options regarding certificates, algorithms etc. can be set
20*4724848cSchristosin this object.
21*4724848cSchristos
22*4724848cSchristosWhen a network connection has been created, it can be assigned to an
23*4724848cSchristosB<SSL> object. After the B<SSL> object has been created using
24*4724848cSchristosL<SSL_new(3)>, L<SSL_set_fd(3)> or
25*4724848cSchristosL<SSL_set_bio(3)> can be used to associate the network
26*4724848cSchristosconnection with the object.
27*4724848cSchristos
28*4724848cSchristosWhen the TLS/SSL handshake is performed using
29*4724848cSchristosL<SSL_accept(3)> or L<SSL_connect(3)>
30*4724848cSchristosrespectively.
31*4724848cSchristosL<SSL_read_ex(3)>, L<SSL_read(3)>, L<SSL_write_ex(3)> and L<SSL_write(3)> are
32*4724848cSchristosused to read and write data on the TLS/SSL connection.
33*4724848cSchristosL<SSL_shutdown(3)> can be used to shut down the
34*4724848cSchristosTLS/SSL connection.
35*4724848cSchristos
36*4724848cSchristos=head1 DATA STRUCTURES
37*4724848cSchristos
38*4724848cSchristosCurrently the OpenSSL B<ssl> library functions deals with the following data
39*4724848cSchristosstructures:
40*4724848cSchristos
41*4724848cSchristos=over 4
42*4724848cSchristos
43*4724848cSchristos=item B<SSL_METHOD> (SSL Method)
44*4724848cSchristos
45*4724848cSchristosThis is a dispatch structure describing the internal B<ssl> library
46*4724848cSchristosmethods/functions which implement the various protocol versions (SSLv3
47*4724848cSchristosTLSv1, ...). It's needed to create an B<SSL_CTX>.
48*4724848cSchristos
49*4724848cSchristos=item B<SSL_CIPHER> (SSL Cipher)
50*4724848cSchristos
51*4724848cSchristosThis structure holds the algorithm information for a particular cipher which
52*4724848cSchristosare a core part of the SSL/TLS protocol. The available ciphers are configured
53*4724848cSchristoson a B<SSL_CTX> basis and the actual ones used are then part of the
54*4724848cSchristosB<SSL_SESSION>.
55*4724848cSchristos
56*4724848cSchristos=item B<SSL_CTX> (SSL Context)
57*4724848cSchristos
58*4724848cSchristosThis is the global context structure which is created by a server or client
59*4724848cSchristosonce per program life-time and which holds mainly default values for the
60*4724848cSchristosB<SSL> structures which are later created for the connections.
61*4724848cSchristos
62*4724848cSchristos=item B<SSL_SESSION> (SSL Session)
63*4724848cSchristos
64*4724848cSchristosThis is a structure containing the current TLS/SSL session details for a
65*4724848cSchristosconnection: B<SSL_CIPHER>s, client and server certificates, keys, etc.
66*4724848cSchristos
67*4724848cSchristos=item B<SSL> (SSL Connection)
68*4724848cSchristos
69*4724848cSchristosThis is the main SSL/TLS structure which is created by a server or client per
70*4724848cSchristosestablished connection. This actually is the core structure in the SSL API.
71*4724848cSchristosAt run-time the application usually deals with this structure which has
72*4724848cSchristoslinks to mostly all other structures.
73*4724848cSchristos
74*4724848cSchristos=back
75*4724848cSchristos
76*4724848cSchristos
77*4724848cSchristos=head1 HEADER FILES
78*4724848cSchristos
79*4724848cSchristosCurrently the OpenSSL B<ssl> library provides the following C header files
80*4724848cSchristoscontaining the prototypes for the data structures and functions:
81*4724848cSchristos
82*4724848cSchristos=over 4
83*4724848cSchristos
84*4724848cSchristos=item B<ssl.h>
85*4724848cSchristos
86*4724848cSchristosThis is the common header file for the SSL/TLS API.  Include it into your
87*4724848cSchristosprogram to make the API of the B<ssl> library available. It internally
88*4724848cSchristosincludes both more private SSL headers and headers from the B<crypto> library.
89*4724848cSchristosWhenever you need hard-core details on the internals of the SSL API, look
90*4724848cSchristosinside this header file.
91*4724848cSchristos
92*4724848cSchristos=item B<ssl2.h>
93*4724848cSchristos
94*4724848cSchristosUnused. Present for backwards compatibility only.
95*4724848cSchristos
96*4724848cSchristos=item B<ssl3.h>
97*4724848cSchristos
98*4724848cSchristosThis is the sub header file dealing with the SSLv3 protocol only.
99*4724848cSchristosI<Usually you don't have to include it explicitly because
100*4724848cSchristosit's already included by ssl.h>.
101*4724848cSchristos
102*4724848cSchristos=item B<tls1.h>
103*4724848cSchristos
104*4724848cSchristosThis is the sub header file dealing with the TLSv1 protocol only.
105*4724848cSchristosI<Usually you don't have to include it explicitly because
106*4724848cSchristosit's already included by ssl.h>.
107*4724848cSchristos
108*4724848cSchristos=back
109*4724848cSchristos
110*4724848cSchristos=head1 API FUNCTIONS
111*4724848cSchristos
112*4724848cSchristosCurrently the OpenSSL B<ssl> library exports 214 API functions.
113*4724848cSchristosThey are documented in the following:
114*4724848cSchristos
115*4724848cSchristos=head2 Dealing with Protocol Methods
116*4724848cSchristos
117*4724848cSchristosHere we document the various API functions which deal with the SSL/TLS
118*4724848cSchristosprotocol methods defined in B<SSL_METHOD> structures.
119*4724848cSchristos
120*4724848cSchristos=over 4
121*4724848cSchristos
122*4724848cSchristos=item const SSL_METHOD *B<TLS_method>(void);
123*4724848cSchristos
124*4724848cSchristosConstructor for the I<version-flexible> SSL_METHOD structure for clients,
125*4724848cSchristosservers or both.
126*4724848cSchristosSee L<SSL_CTX_new(3)> for details.
127*4724848cSchristos
128*4724848cSchristos=item const SSL_METHOD *B<TLS_client_method>(void);
129*4724848cSchristos
130*4724848cSchristosConstructor for the I<version-flexible> SSL_METHOD structure for clients.
131*4724848cSchristosMust be used to support the TLSv1.3 protocol.
132*4724848cSchristos
133*4724848cSchristos=item const SSL_METHOD *B<TLS_server_method>(void);
134*4724848cSchristos
135*4724848cSchristosConstructor for the I<version-flexible> SSL_METHOD structure for servers.
136*4724848cSchristosMust be used to support the TLSv1.3 protocol.
137*4724848cSchristos
138*4724848cSchristos=item const SSL_METHOD *B<TLSv1_2_method>(void);
139*4724848cSchristos
140*4724848cSchristosConstructor for the TLSv1.2 SSL_METHOD structure for clients, servers or both.
141*4724848cSchristos
142*4724848cSchristos=item const SSL_METHOD *B<TLSv1_2_client_method>(void);
143*4724848cSchristos
144*4724848cSchristosConstructor for the TLSv1.2 SSL_METHOD structure for clients.
145*4724848cSchristos
146*4724848cSchristos=item const SSL_METHOD *B<TLSv1_2_server_method>(void);
147*4724848cSchristos
148*4724848cSchristosConstructor for the TLSv1.2 SSL_METHOD structure for servers.
149*4724848cSchristos
150*4724848cSchristos=item const SSL_METHOD *B<TLSv1_1_method>(void);
151*4724848cSchristos
152*4724848cSchristosConstructor for the TLSv1.1 SSL_METHOD structure for clients, servers or both.
153*4724848cSchristos
154*4724848cSchristos=item const SSL_METHOD *B<TLSv1_1_client_method>(void);
155*4724848cSchristos
156*4724848cSchristosConstructor for the TLSv1.1 SSL_METHOD structure for clients.
157*4724848cSchristos
158*4724848cSchristos=item const SSL_METHOD *B<TLSv1_1_server_method>(void);
159*4724848cSchristos
160*4724848cSchristosConstructor for the TLSv1.1 SSL_METHOD structure for servers.
161*4724848cSchristos
162*4724848cSchristos=item const SSL_METHOD *B<TLSv1_method>(void);
163*4724848cSchristos
164*4724848cSchristosConstructor for the TLSv1 SSL_METHOD structure for clients, servers or both.
165*4724848cSchristos
166*4724848cSchristos=item const SSL_METHOD *B<TLSv1_client_method>(void);
167*4724848cSchristos
168*4724848cSchristosConstructor for the TLSv1 SSL_METHOD structure for clients.
169*4724848cSchristos
170*4724848cSchristos=item const SSL_METHOD *B<TLSv1_server_method>(void);
171*4724848cSchristos
172*4724848cSchristosConstructor for the TLSv1 SSL_METHOD structure for servers.
173*4724848cSchristos
174*4724848cSchristos=item const SSL_METHOD *B<SSLv3_method>(void);
175*4724848cSchristos
176*4724848cSchristosConstructor for the SSLv3 SSL_METHOD structure for clients, servers or both.
177*4724848cSchristos
178*4724848cSchristos=item const SSL_METHOD *B<SSLv3_client_method>(void);
179*4724848cSchristos
180*4724848cSchristosConstructor for the SSLv3 SSL_METHOD structure for clients.
181*4724848cSchristos
182*4724848cSchristos=item const SSL_METHOD *B<SSLv3_server_method>(void);
183*4724848cSchristos
184*4724848cSchristosConstructor for the SSLv3 SSL_METHOD structure for servers.
185*4724848cSchristos
186*4724848cSchristos=back
187*4724848cSchristos
188*4724848cSchristos=head2 Dealing with Ciphers
189*4724848cSchristos
190*4724848cSchristosHere we document the various API functions which deal with the SSL/TLS
191*4724848cSchristosciphers defined in B<SSL_CIPHER> structures.
192*4724848cSchristos
193*4724848cSchristos=over 4
194*4724848cSchristos
195*4724848cSchristos=item char *B<SSL_CIPHER_description>(SSL_CIPHER *cipher, char *buf, int len);
196*4724848cSchristos
197*4724848cSchristosWrite a string to I<buf> (with a maximum size of I<len>) containing a human
198*4724848cSchristosreadable description of I<cipher>. Returns I<buf>.
199*4724848cSchristos
200*4724848cSchristos=item int B<SSL_CIPHER_get_bits>(SSL_CIPHER *cipher, int *alg_bits);
201*4724848cSchristos
202*4724848cSchristosDetermine the number of bits in I<cipher>. Because of export crippled ciphers
203*4724848cSchristosthere are two bits: The bits the algorithm supports in general (stored to
204*4724848cSchristosI<alg_bits>) and the bits which are actually used (the return value).
205*4724848cSchristos
206*4724848cSchristos=item const char *B<SSL_CIPHER_get_name>(SSL_CIPHER *cipher);
207*4724848cSchristos
208*4724848cSchristosReturn the internal name of I<cipher> as a string. These are the various
209*4724848cSchristosstrings defined by the I<SSL3_TXT_xxx> and I<TLS1_TXT_xxx>
210*4724848cSchristosdefinitions in the header files.
211*4724848cSchristos
212*4724848cSchristos=item const char *B<SSL_CIPHER_get_version>(SSL_CIPHER *cipher);
213*4724848cSchristos
214*4724848cSchristosReturns a string like "C<SSLv3>" or "C<TLSv1.2>" which indicates the
215*4724848cSchristosSSL/TLS protocol version to which I<cipher> belongs (i.e. where it was defined
216*4724848cSchristosin the specification the first time).
217*4724848cSchristos
218*4724848cSchristos=back
219*4724848cSchristos
220*4724848cSchristos=head2 Dealing with Protocol Contexts
221*4724848cSchristos
222*4724848cSchristosHere we document the various API functions which deal with the SSL/TLS
223*4724848cSchristosprotocol context defined in the B<SSL_CTX> structure.
224*4724848cSchristos
225*4724848cSchristos=over 4
226*4724848cSchristos
227*4724848cSchristos=item int B<SSL_CTX_add_client_CA>(SSL_CTX *ctx, X509 *x);
228*4724848cSchristos
229*4724848cSchristos=item long B<SSL_CTX_add_extra_chain_cert>(SSL_CTX *ctx, X509 *x509);
230*4724848cSchristos
231*4724848cSchristos=item int B<SSL_CTX_add_session>(SSL_CTX *ctx, SSL_SESSION *c);
232*4724848cSchristos
233*4724848cSchristos=item int B<SSL_CTX_check_private_key>(const SSL_CTX *ctx);
234*4724848cSchristos
235*4724848cSchristos=item long B<SSL_CTX_ctrl>(SSL_CTX *ctx, int cmd, long larg, char *parg);
236*4724848cSchristos
237*4724848cSchristos=item void B<SSL_CTX_flush_sessions>(SSL_CTX *s, long t);
238*4724848cSchristos
239*4724848cSchristos=item void B<SSL_CTX_free>(SSL_CTX *a);
240*4724848cSchristos
241*4724848cSchristos=item char *B<SSL_CTX_get_app_data>(SSL_CTX *ctx);
242*4724848cSchristos
243*4724848cSchristos=item X509_STORE *B<SSL_CTX_get_cert_store>(SSL_CTX *ctx);
244*4724848cSchristos
245*4724848cSchristos=item STACK *B<SSL_CTX_get_ciphers>(const SSL_CTX *ctx);
246*4724848cSchristos
247*4724848cSchristos=item STACK *B<SSL_CTX_get_client_CA_list>(const SSL_CTX *ctx);
248*4724848cSchristos
249*4724848cSchristos=item int (*B<SSL_CTX_get_client_cert_cb>(SSL_CTX *ctx))(SSL *ssl, X509 **x509, EVP_PKEY **pkey);
250*4724848cSchristos
251*4724848cSchristos=item void B<SSL_CTX_get_default_read_ahead>(SSL_CTX *ctx);
252*4724848cSchristos
253*4724848cSchristos=item char *B<SSL_CTX_get_ex_data>(const SSL_CTX *s, int idx);
254*4724848cSchristos
255*4724848cSchristos=item int B<SSL_CTX_get_ex_new_index>(long argl, char *argp, int (*new_func);(void), int (*dup_func)(void), void (*free_func)(void))
256*4724848cSchristos
257*4724848cSchristos=item void (*B<SSL_CTX_get_info_callback>(SSL_CTX *ctx))(SSL *ssl, int cb, int ret);
258*4724848cSchristos
259*4724848cSchristos=item int B<SSL_CTX_get_quiet_shutdown>(const SSL_CTX *ctx);
260*4724848cSchristos
261*4724848cSchristos=item void B<SSL_CTX_get_read_ahead>(SSL_CTX *ctx);
262*4724848cSchristos
263*4724848cSchristos=item int B<SSL_CTX_get_session_cache_mode>(SSL_CTX *ctx);
264*4724848cSchristos
265*4724848cSchristos=item long B<SSL_CTX_get_timeout>(const SSL_CTX *ctx);
266*4724848cSchristos
267*4724848cSchristos=item int (*B<SSL_CTX_get_verify_callback>(const SSL_CTX *ctx))(int ok, X509_STORE_CTX *ctx);
268*4724848cSchristos
269*4724848cSchristos=item int B<SSL_CTX_get_verify_mode>(SSL_CTX *ctx);
270*4724848cSchristos
271*4724848cSchristos=item int B<SSL_CTX_load_verify_locations>(SSL_CTX *ctx, const char *CAfile, const char *CApath);
272*4724848cSchristos
273*4724848cSchristos=item SSL_CTX *B<SSL_CTX_new>(const SSL_METHOD *meth);
274*4724848cSchristos
275*4724848cSchristos=item int SSL_CTX_up_ref(SSL_CTX *ctx);
276*4724848cSchristos
277*4724848cSchristos=item int B<SSL_CTX_remove_session>(SSL_CTX *ctx, SSL_SESSION *c);
278*4724848cSchristos
279*4724848cSchristos=item int B<SSL_CTX_sess_accept>(SSL_CTX *ctx);
280*4724848cSchristos
281*4724848cSchristos=item int B<SSL_CTX_sess_accept_good>(SSL_CTX *ctx);
282*4724848cSchristos
283*4724848cSchristos=item int B<SSL_CTX_sess_accept_renegotiate>(SSL_CTX *ctx);
284*4724848cSchristos
285*4724848cSchristos=item int B<SSL_CTX_sess_cache_full>(SSL_CTX *ctx);
286*4724848cSchristos
287*4724848cSchristos=item int B<SSL_CTX_sess_cb_hits>(SSL_CTX *ctx);
288*4724848cSchristos
289*4724848cSchristos=item int B<SSL_CTX_sess_connect>(SSL_CTX *ctx);
290*4724848cSchristos
291*4724848cSchristos=item int B<SSL_CTX_sess_connect_good>(SSL_CTX *ctx);
292*4724848cSchristos
293*4724848cSchristos=item int B<SSL_CTX_sess_connect_renegotiate>(SSL_CTX *ctx);
294*4724848cSchristos
295*4724848cSchristos=item int B<SSL_CTX_sess_get_cache_size>(SSL_CTX *ctx);
296*4724848cSchristos
297*4724848cSchristos=item SSL_SESSION *(*B<SSL_CTX_sess_get_get_cb>(SSL_CTX *ctx))(SSL *ssl, unsigned char *data, int len, int *copy);
298*4724848cSchristos
299*4724848cSchristos=item int (*B<SSL_CTX_sess_get_new_cb>(SSL_CTX *ctx)(SSL *ssl, SSL_SESSION *sess);
300*4724848cSchristos
301*4724848cSchristos=item void (*B<SSL_CTX_sess_get_remove_cb>(SSL_CTX *ctx)(SSL_CTX *ctx, SSL_SESSION *sess);
302*4724848cSchristos
303*4724848cSchristos=item int B<SSL_CTX_sess_hits>(SSL_CTX *ctx);
304*4724848cSchristos
305*4724848cSchristos=item int B<SSL_CTX_sess_misses>(SSL_CTX *ctx);
306*4724848cSchristos
307*4724848cSchristos=item int B<SSL_CTX_sess_number>(SSL_CTX *ctx);
308*4724848cSchristos
309*4724848cSchristos=item void B<SSL_CTX_sess_set_cache_size>(SSL_CTX *ctx, t);
310*4724848cSchristos
311*4724848cSchristos=item void B<SSL_CTX_sess_set_get_cb>(SSL_CTX *ctx, SSL_SESSION *(*cb)(SSL *ssl, unsigned char *data, int len, int *copy));
312*4724848cSchristos
313*4724848cSchristos=item void B<SSL_CTX_sess_set_new_cb>(SSL_CTX *ctx, int (*cb)(SSL *ssl, SSL_SESSION *sess));
314*4724848cSchristos
315*4724848cSchristos=item void B<SSL_CTX_sess_set_remove_cb>(SSL_CTX *ctx, void (*cb)(SSL_CTX *ctx, SSL_SESSION *sess));
316*4724848cSchristos
317*4724848cSchristos=item int B<SSL_CTX_sess_timeouts>(SSL_CTX *ctx);
318*4724848cSchristos
319*4724848cSchristos=item LHASH *B<SSL_CTX_sessions>(SSL_CTX *ctx);
320*4724848cSchristos
321*4724848cSchristos=item int B<SSL_CTX_set_app_data>(SSL_CTX *ctx, void *arg);
322*4724848cSchristos
323*4724848cSchristos=item void B<SSL_CTX_set_cert_store>(SSL_CTX *ctx, X509_STORE *cs);
324*4724848cSchristos
325*4724848cSchristos=item void B<SSL_CTX_set1_cert_store>(SSL_CTX *ctx, X509_STORE *cs);
326*4724848cSchristos
327*4724848cSchristos=item void B<SSL_CTX_set_cert_verify_cb>(SSL_CTX *ctx, int (*cb)(), char *arg)
328*4724848cSchristos
329*4724848cSchristos=item int B<SSL_CTX_set_cipher_list>(SSL_CTX *ctx, char *str);
330*4724848cSchristos
331*4724848cSchristos=item void B<SSL_CTX_set_client_CA_list>(SSL_CTX *ctx, STACK *list);
332*4724848cSchristos
333*4724848cSchristos=item void B<SSL_CTX_set_client_cert_cb>(SSL_CTX *ctx, int (*cb)(SSL *ssl, X509 **x509, EVP_PKEY **pkey));
334*4724848cSchristos
335*4724848cSchristos=item int B<SSL_CTX_set_ct_validation_callback>(SSL_CTX *ctx, ssl_ct_validation_cb callback, void *arg);
336*4724848cSchristos
337*4724848cSchristos=item void B<SSL_CTX_set_default_passwd_cb>(SSL_CTX *ctx, int (*cb);(void))
338*4724848cSchristos
339*4724848cSchristos=item void B<SSL_CTX_set_default_read_ahead>(SSL_CTX *ctx, int m);
340*4724848cSchristos
341*4724848cSchristos=item int B<SSL_CTX_set_default_verify_paths>(SSL_CTX *ctx);
342*4724848cSchristos
343*4724848cSchristosUse the default paths to locate trusted CA certificates. There is one default
344*4724848cSchristosdirectory path and one default file path. Both are set via this call.
345*4724848cSchristos
346*4724848cSchristos=item int B<SSL_CTX_set_default_verify_dir>(SSL_CTX *ctx)
347*4724848cSchristos
348*4724848cSchristosUse the default directory path to locate trusted CA certificates.
349*4724848cSchristos
350*4724848cSchristos=item int B<SSL_CTX_set_default_verify_file>(SSL_CTX *ctx)
351*4724848cSchristos
352*4724848cSchristosUse the file path to locate trusted CA certificates.
353*4724848cSchristos
354*4724848cSchristos=item int B<SSL_CTX_set_ex_data>(SSL_CTX *s, int idx, char *arg);
355*4724848cSchristos
356*4724848cSchristos=item void B<SSL_CTX_set_info_callback>(SSL_CTX *ctx, void (*cb)(SSL *ssl, int cb, int ret));
357*4724848cSchristos
358*4724848cSchristos=item void B<SSL_CTX_set_msg_callback>(SSL_CTX *ctx, void (*cb)(int write_p, int version, int content_type, const void *buf, size_t len, SSL *ssl, void *arg));
359*4724848cSchristos
360*4724848cSchristos=item void B<SSL_CTX_set_msg_callback_arg>(SSL_CTX *ctx, void *arg);
361*4724848cSchristos
362*4724848cSchristos=item unsigned long B<SSL_CTX_clear_options>(SSL_CTX *ctx, unsigned long op);
363*4724848cSchristos
364*4724848cSchristos=item unsigned long B<SSL_CTX_get_options>(SSL_CTX *ctx);
365*4724848cSchristos
366*4724848cSchristos=item unsigned long B<SSL_CTX_set_options>(SSL_CTX *ctx, unsigned long op);
367*4724848cSchristos
368*4724848cSchristos=item void B<SSL_CTX_set_quiet_shutdown>(SSL_CTX *ctx, int mode);
369*4724848cSchristos
370*4724848cSchristos=item void B<SSL_CTX_set_read_ahead>(SSL_CTX *ctx, int m);
371*4724848cSchristos
372*4724848cSchristos=item void B<SSL_CTX_set_session_cache_mode>(SSL_CTX *ctx, int mode);
373*4724848cSchristos
374*4724848cSchristos=item int B<SSL_CTX_set_ssl_version>(SSL_CTX *ctx, const SSL_METHOD *meth);
375*4724848cSchristos
376*4724848cSchristos=item void B<SSL_CTX_set_timeout>(SSL_CTX *ctx, long t);
377*4724848cSchristos
378*4724848cSchristos=item long B<SSL_CTX_set_tmp_dh>(SSL_CTX* ctx, DH *dh);
379*4724848cSchristos
380*4724848cSchristos=item long B<SSL_CTX_set_tmp_dh_callback>(SSL_CTX *ctx, DH *(*cb)(void));
381*4724848cSchristos
382*4724848cSchristos=item void B<SSL_CTX_set_verify>(SSL_CTX *ctx, int mode, int (*cb);(void))
383*4724848cSchristos
384*4724848cSchristos=item int B<SSL_CTX_use_PrivateKey>(SSL_CTX *ctx, EVP_PKEY *pkey);
385*4724848cSchristos
386*4724848cSchristos=item int B<SSL_CTX_use_PrivateKey_ASN1>(int type, SSL_CTX *ctx, unsigned char *d, long len);
387*4724848cSchristos
388*4724848cSchristos=item int B<SSL_CTX_use_PrivateKey_file>(SSL_CTX *ctx, const char *file, int type);
389*4724848cSchristos
390*4724848cSchristos=item int B<SSL_CTX_use_RSAPrivateKey>(SSL_CTX *ctx, RSA *rsa);
391*4724848cSchristos
392*4724848cSchristos=item int B<SSL_CTX_use_RSAPrivateKey_ASN1>(SSL_CTX *ctx, unsigned char *d, long len);
393*4724848cSchristos
394*4724848cSchristos=item int B<SSL_CTX_use_RSAPrivateKey_file>(SSL_CTX *ctx, const char *file, int type);
395*4724848cSchristos
396*4724848cSchristos=item int B<SSL_CTX_use_certificate>(SSL_CTX *ctx, X509 *x);
397*4724848cSchristos
398*4724848cSchristos=item int B<SSL_CTX_use_certificate_ASN1>(SSL_CTX *ctx, int len, unsigned char *d);
399*4724848cSchristos
400*4724848cSchristos=item int B<SSL_CTX_use_certificate_file>(SSL_CTX *ctx, const char *file, int type);
401*4724848cSchristos
402*4724848cSchristos=item int B<SSL_CTX_use_cert_and_key>(SSL_CTX *ctx, X509 *x, EVP_PKEY *pkey, STACK_OF(X509) *chain, int override);
403*4724848cSchristos
404*4724848cSchristos=item X509 *B<SSL_CTX_get0_certificate>(const SSL_CTX *ctx);
405*4724848cSchristos
406*4724848cSchristos=item EVP_PKEY *B<SSL_CTX_get0_privatekey>(const SSL_CTX *ctx);
407*4724848cSchristos
408*4724848cSchristos=item void B<SSL_CTX_set_psk_client_callback>(SSL_CTX *ctx, unsigned int (*callback)(SSL *ssl, const char *hint, char *identity, unsigned int max_identity_len, unsigned char *psk, unsigned int max_psk_len));
409*4724848cSchristos
410*4724848cSchristos=item int B<SSL_CTX_use_psk_identity_hint>(SSL_CTX *ctx, const char *hint);
411*4724848cSchristos
412*4724848cSchristos=item void B<SSL_CTX_set_psk_server_callback>(SSL_CTX *ctx, unsigned int (*callback)(SSL *ssl, const char *identity, unsigned char *psk, int max_psk_len));
413*4724848cSchristos
414*4724848cSchristos
415*4724848cSchristos=back
416*4724848cSchristos
417*4724848cSchristos=head2 Dealing with Sessions
418*4724848cSchristos
419*4724848cSchristosHere we document the various API functions which deal with the SSL/TLS
420*4724848cSchristossessions defined in the B<SSL_SESSION> structures.
421*4724848cSchristos
422*4724848cSchristos=over 4
423*4724848cSchristos
424*4724848cSchristos=item int B<SSL_SESSION_cmp>(const SSL_SESSION *a, const SSL_SESSION *b);
425*4724848cSchristos
426*4724848cSchristos=item void B<SSL_SESSION_free>(SSL_SESSION *ss);
427*4724848cSchristos
428*4724848cSchristos=item char *B<SSL_SESSION_get_app_data>(SSL_SESSION *s);
429*4724848cSchristos
430*4724848cSchristos=item char *B<SSL_SESSION_get_ex_data>(const SSL_SESSION *s, int idx);
431*4724848cSchristos
432*4724848cSchristos=item int B<SSL_SESSION_get_ex_new_index>(long argl, char *argp, int (*new_func);(void), int (*dup_func)(void), void (*free_func)(void))
433*4724848cSchristos
434*4724848cSchristos=item long B<SSL_SESSION_get_time>(const SSL_SESSION *s);
435*4724848cSchristos
436*4724848cSchristos=item long B<SSL_SESSION_get_timeout>(const SSL_SESSION *s);
437*4724848cSchristos
438*4724848cSchristos=item unsigned long B<SSL_SESSION_hash>(const SSL_SESSION *a);
439*4724848cSchristos
440*4724848cSchristos=item SSL_SESSION *B<SSL_SESSION_new>(void);
441*4724848cSchristos
442*4724848cSchristos=item int B<SSL_SESSION_print>(BIO *bp, const SSL_SESSION *x);
443*4724848cSchristos
444*4724848cSchristos=item int B<SSL_SESSION_print_fp>(FILE *fp, const SSL_SESSION *x);
445*4724848cSchristos
446*4724848cSchristos=item int B<SSL_SESSION_set_app_data>(SSL_SESSION *s, char *a);
447*4724848cSchristos
448*4724848cSchristos=item int B<SSL_SESSION_set_ex_data>(SSL_SESSION *s, int idx, char *arg);
449*4724848cSchristos
450*4724848cSchristos=item long B<SSL_SESSION_set_time>(SSL_SESSION *s, long t);
451*4724848cSchristos
452*4724848cSchristos=item long B<SSL_SESSION_set_timeout>(SSL_SESSION *s, long t);
453*4724848cSchristos
454*4724848cSchristos=back
455*4724848cSchristos
456*4724848cSchristos=head2 Dealing with Connections
457*4724848cSchristos
458*4724848cSchristosHere we document the various API functions which deal with the SSL/TLS
459*4724848cSchristosconnection defined in the B<SSL> structure.
460*4724848cSchristos
461*4724848cSchristos=over 4
462*4724848cSchristos
463*4724848cSchristos=item int B<SSL_accept>(SSL *ssl);
464*4724848cSchristos
465*4724848cSchristos=item int B<SSL_add_dir_cert_subjects_to_stack>(STACK *stack, const char *dir);
466*4724848cSchristos
467*4724848cSchristos=item int B<SSL_add_file_cert_subjects_to_stack>(STACK *stack, const char *file);
468*4724848cSchristos
469*4724848cSchristos=item int B<SSL_add_client_CA>(SSL *ssl, X509 *x);
470*4724848cSchristos
471*4724848cSchristos=item char *B<SSL_alert_desc_string>(int value);
472*4724848cSchristos
473*4724848cSchristos=item char *B<SSL_alert_desc_string_long>(int value);
474*4724848cSchristos
475*4724848cSchristos=item char *B<SSL_alert_type_string>(int value);
476*4724848cSchristos
477*4724848cSchristos=item char *B<SSL_alert_type_string_long>(int value);
478*4724848cSchristos
479*4724848cSchristos=item int B<SSL_check_private_key>(const SSL *ssl);
480*4724848cSchristos
481*4724848cSchristos=item void B<SSL_clear>(SSL *ssl);
482*4724848cSchristos
483*4724848cSchristos=item long B<SSL_clear_num_renegotiations>(SSL *ssl);
484*4724848cSchristos
485*4724848cSchristos=item int B<SSL_connect>(SSL *ssl);
486*4724848cSchristos
487*4724848cSchristos=item int B<SSL_copy_session_id>(SSL *t, const SSL *f);
488*4724848cSchristos
489*4724848cSchristosSets the session details for B<t> to be the same as in B<f>. Returns 1 on
490*4724848cSchristossuccess or 0 on failure.
491*4724848cSchristos
492*4724848cSchristos=item long B<SSL_ctrl>(SSL *ssl, int cmd, long larg, char *parg);
493*4724848cSchristos
494*4724848cSchristos=item int B<SSL_do_handshake>(SSL *ssl);
495*4724848cSchristos
496*4724848cSchristos=item SSL *B<SSL_dup>(SSL *ssl);
497*4724848cSchristos
498*4724848cSchristosSSL_dup() allows applications to configure an SSL handle for use
499*4724848cSchristosin multiple SSL connections, and then duplicate it prior to initiating
500*4724848cSchristoseach connection with the duplicated handle.
501*4724848cSchristosUse of SSL_dup() avoids the need to repeat the configuration of the
502*4724848cSchristoshandles for each connection.
503*4724848cSchristos
504*4724848cSchristosFor SSL_dup() to work, the connection MUST be in its initial state
505*4724848cSchristosand MUST NOT have not yet have started the SSL handshake.
506*4724848cSchristosFor connections that are not in their initial state SSL_dup() just
507*4724848cSchristosincrements an internal reference count and returns the I<same>
508*4724848cSchristoshandle.
509*4724848cSchristosIt may be possible to use L<SSL_clear(3)> to recycle an SSL handle
510*4724848cSchristosthat is not in its initial state for re-use, but this is best
511*4724848cSchristosavoided.
512*4724848cSchristosInstead, save and restore the session, if desired, and construct a
513*4724848cSchristosfresh handle for each connection.
514*4724848cSchristos
515*4724848cSchristos=item STACK *B<SSL_dup_CA_list>(STACK *sk);
516*4724848cSchristos
517*4724848cSchristos=item void B<SSL_free>(SSL *ssl);
518*4724848cSchristos
519*4724848cSchristos=item SSL_CTX *B<SSL_get_SSL_CTX>(const SSL *ssl);
520*4724848cSchristos
521*4724848cSchristos=item char *B<SSL_get_app_data>(SSL *ssl);
522*4724848cSchristos
523*4724848cSchristos=item X509 *B<SSL_get_certificate>(const SSL *ssl);
524*4724848cSchristos
525*4724848cSchristos=item const char *B<SSL_get_cipher>(const SSL *ssl);
526*4724848cSchristos
527*4724848cSchristos=item int B<SSL_is_dtls>(const SSL *ssl);
528*4724848cSchristos
529*4724848cSchristos=item int B<SSL_get_cipher_bits>(const SSL *ssl, int *alg_bits);
530*4724848cSchristos
531*4724848cSchristos=item char *B<SSL_get_cipher_list>(const SSL *ssl, int n);
532*4724848cSchristos
533*4724848cSchristos=item char *B<SSL_get_cipher_name>(const SSL *ssl);
534*4724848cSchristos
535*4724848cSchristos=item char *B<SSL_get_cipher_version>(const SSL *ssl);
536*4724848cSchristos
537*4724848cSchristos=item STACK *B<SSL_get_ciphers>(const SSL *ssl);
538*4724848cSchristos
539*4724848cSchristos=item STACK *B<SSL_get_client_CA_list>(const SSL *ssl);
540*4724848cSchristos
541*4724848cSchristos=item SSL_CIPHER *B<SSL_get_current_cipher>(SSL *ssl);
542*4724848cSchristos
543*4724848cSchristos=item long B<SSL_get_default_timeout>(const SSL *ssl);
544*4724848cSchristos
545*4724848cSchristos=item int B<SSL_get_error>(const SSL *ssl, int i);
546*4724848cSchristos
547*4724848cSchristos=item char *B<SSL_get_ex_data>(const SSL *ssl, int idx);
548*4724848cSchristos
549*4724848cSchristos=item int B<SSL_get_ex_data_X509_STORE_CTX_idx>(void);
550*4724848cSchristos
551*4724848cSchristos=item int B<SSL_get_ex_new_index>(long argl, char *argp, int (*new_func);(void), int (*dup_func)(void), void (*free_func)(void))
552*4724848cSchristos
553*4724848cSchristos=item int B<SSL_get_fd>(const SSL *ssl);
554*4724848cSchristos
555*4724848cSchristos=item void (*B<SSL_get_info_callback>(const SSL *ssl);)()
556*4724848cSchristos
557*4724848cSchristos=item int B<SSL_get_key_update_type>(SSL *s);
558*4724848cSchristos
559*4724848cSchristos=item STACK *B<SSL_get_peer_cert_chain>(const SSL *ssl);
560*4724848cSchristos
561*4724848cSchristos=item X509 *B<SSL_get_peer_certificate>(const SSL *ssl);
562*4724848cSchristos
563*4724848cSchristos=item const STACK_OF(SCT) *B<SSL_get0_peer_scts>(SSL *s);
564*4724848cSchristos
565*4724848cSchristos=item EVP_PKEY *B<SSL_get_privatekey>(const SSL *ssl);
566*4724848cSchristos
567*4724848cSchristos=item int B<SSL_get_quiet_shutdown>(const SSL *ssl);
568*4724848cSchristos
569*4724848cSchristos=item BIO *B<SSL_get_rbio>(const SSL *ssl);
570*4724848cSchristos
571*4724848cSchristos=item int B<SSL_get_read_ahead>(const SSL *ssl);
572*4724848cSchristos
573*4724848cSchristos=item SSL_SESSION *B<SSL_get_session>(const SSL *ssl);
574*4724848cSchristos
575*4724848cSchristos=item char *B<SSL_get_shared_ciphers>(const SSL *ssl, char *buf, int size);
576*4724848cSchristos
577*4724848cSchristos=item int B<SSL_get_shutdown>(const SSL *ssl);
578*4724848cSchristos
579*4724848cSchristos=item const SSL_METHOD *B<SSL_get_ssl_method>(SSL *ssl);
580*4724848cSchristos
581*4724848cSchristos=item int B<SSL_get_state>(const SSL *ssl);
582*4724848cSchristos
583*4724848cSchristos=item long B<SSL_get_time>(const SSL *ssl);
584*4724848cSchristos
585*4724848cSchristos=item long B<SSL_get_timeout>(const SSL *ssl);
586*4724848cSchristos
587*4724848cSchristos=item int (*B<SSL_get_verify_callback>(const SSL *ssl))(int, X509_STORE_CTX *)
588*4724848cSchristos
589*4724848cSchristos=item int B<SSL_get_verify_mode>(const SSL *ssl);
590*4724848cSchristos
591*4724848cSchristos=item long B<SSL_get_verify_result>(const SSL *ssl);
592*4724848cSchristos
593*4724848cSchristos=item char *B<SSL_get_version>(const SSL *ssl);
594*4724848cSchristos
595*4724848cSchristos=item BIO *B<SSL_get_wbio>(const SSL *ssl);
596*4724848cSchristos
597*4724848cSchristos=item int B<SSL_in_accept_init>(SSL *ssl);
598*4724848cSchristos
599*4724848cSchristos=item int B<SSL_in_before>(SSL *ssl);
600*4724848cSchristos
601*4724848cSchristos=item int B<SSL_in_connect_init>(SSL *ssl);
602*4724848cSchristos
603*4724848cSchristos=item int B<SSL_in_init>(SSL *ssl);
604*4724848cSchristos
605*4724848cSchristos=item int B<SSL_is_init_finished>(SSL *ssl);
606*4724848cSchristos
607*4724848cSchristos=item int B<SSL_key_update>(SSL *s, int updatetype);
608*4724848cSchristos
609*4724848cSchristos=item STACK *B<SSL_load_client_CA_file>(const char *file);
610*4724848cSchristos
611*4724848cSchristos=item SSL *B<SSL_new>(SSL_CTX *ctx);
612*4724848cSchristos
613*4724848cSchristos=item int SSL_up_ref(SSL *s);
614*4724848cSchristos
615*4724848cSchristos=item long B<SSL_num_renegotiations>(SSL *ssl);
616*4724848cSchristos
617*4724848cSchristos=item int B<SSL_peek>(SSL *ssl, void *buf, int num);
618*4724848cSchristos
619*4724848cSchristos=item int B<SSL_pending>(const SSL *ssl);
620*4724848cSchristos
621*4724848cSchristos=item int B<SSL_read>(SSL *ssl, void *buf, int num);
622*4724848cSchristos
623*4724848cSchristos=item int B<SSL_renegotiate>(SSL *ssl);
624*4724848cSchristos
625*4724848cSchristos=item char *B<SSL_rstate_string>(SSL *ssl);
626*4724848cSchristos
627*4724848cSchristos=item char *B<SSL_rstate_string_long>(SSL *ssl);
628*4724848cSchristos
629*4724848cSchristos=item long B<SSL_session_reused>(SSL *ssl);
630*4724848cSchristos
631*4724848cSchristos=item void B<SSL_set_accept_state>(SSL *ssl);
632*4724848cSchristos
633*4724848cSchristos=item void B<SSL_set_app_data>(SSL *ssl, char *arg);
634*4724848cSchristos
635*4724848cSchristos=item void B<SSL_set_bio>(SSL *ssl, BIO *rbio, BIO *wbio);
636*4724848cSchristos
637*4724848cSchristos=item int B<SSL_set_cipher_list>(SSL *ssl, char *str);
638*4724848cSchristos
639*4724848cSchristos=item void B<SSL_set_client_CA_list>(SSL *ssl, STACK *list);
640*4724848cSchristos
641*4724848cSchristos=item void B<SSL_set_connect_state>(SSL *ssl);
642*4724848cSchristos
643*4724848cSchristos=item int B<SSL_set_ct_validation_callback>(SSL *ssl, ssl_ct_validation_cb callback, void *arg);
644*4724848cSchristos
645*4724848cSchristos=item int B<SSL_set_ex_data>(SSL *ssl, int idx, char *arg);
646*4724848cSchristos
647*4724848cSchristos=item int B<SSL_set_fd>(SSL *ssl, int fd);
648*4724848cSchristos
649*4724848cSchristos=item void B<SSL_set_info_callback>(SSL *ssl, void (*cb);(void))
650*4724848cSchristos
651*4724848cSchristos=item void B<SSL_set_msg_callback>(SSL *ctx, void (*cb)(int write_p, int version, int content_type, const void *buf, size_t len, SSL *ssl, void *arg));
652*4724848cSchristos
653*4724848cSchristos=item void B<SSL_set_msg_callback_arg>(SSL *ctx, void *arg);
654*4724848cSchristos
655*4724848cSchristos=item unsigned long B<SSL_clear_options>(SSL *ssl, unsigned long op);
656*4724848cSchristos
657*4724848cSchristos=item unsigned long B<SSL_get_options>(SSL *ssl);
658*4724848cSchristos
659*4724848cSchristos=item unsigned long B<SSL_set_options>(SSL *ssl, unsigned long op);
660*4724848cSchristos
661*4724848cSchristos=item void B<SSL_set_quiet_shutdown>(SSL *ssl, int mode);
662*4724848cSchristos
663*4724848cSchristos=item void B<SSL_set_read_ahead>(SSL *ssl, int yes);
664*4724848cSchristos
665*4724848cSchristos=item int B<SSL_set_rfd>(SSL *ssl, int fd);
666*4724848cSchristos
667*4724848cSchristos=item int B<SSL_set_session>(SSL *ssl, SSL_SESSION *session);
668*4724848cSchristos
669*4724848cSchristos=item void B<SSL_set_shutdown>(SSL *ssl, int mode);
670*4724848cSchristos
671*4724848cSchristos=item int B<SSL_set_ssl_method>(SSL *ssl, const SSL_METHOD *meth);
672*4724848cSchristos
673*4724848cSchristos=item void B<SSL_set_time>(SSL *ssl, long t);
674*4724848cSchristos
675*4724848cSchristos=item void B<SSL_set_timeout>(SSL *ssl, long t);
676*4724848cSchristos
677*4724848cSchristos=item void B<SSL_set_verify>(SSL *ssl, int mode, int (*callback);(void))
678*4724848cSchristos
679*4724848cSchristos=item void B<SSL_set_verify_result>(SSL *ssl, long arg);
680*4724848cSchristos
681*4724848cSchristos=item int B<SSL_set_wfd>(SSL *ssl, int fd);
682*4724848cSchristos
683*4724848cSchristos=item int B<SSL_shutdown>(SSL *ssl);
684*4724848cSchristos
685*4724848cSchristos=item OSSL_HANDSHAKE_STATE B<SSL_get_state>(const SSL *ssl);
686*4724848cSchristos
687*4724848cSchristosReturns the current handshake state.
688*4724848cSchristos
689*4724848cSchristos=item char *B<SSL_state_string>(const SSL *ssl);
690*4724848cSchristos
691*4724848cSchristos=item char *B<SSL_state_string_long>(const SSL *ssl);
692*4724848cSchristos
693*4724848cSchristos=item long B<SSL_total_renegotiations>(SSL *ssl);
694*4724848cSchristos
695*4724848cSchristos=item int B<SSL_use_PrivateKey>(SSL *ssl, EVP_PKEY *pkey);
696*4724848cSchristos
697*4724848cSchristos=item int B<SSL_use_PrivateKey_ASN1>(int type, SSL *ssl, unsigned char *d, long len);
698*4724848cSchristos
699*4724848cSchristos=item int B<SSL_use_PrivateKey_file>(SSL *ssl, const char *file, int type);
700*4724848cSchristos
701*4724848cSchristos=item int B<SSL_use_RSAPrivateKey>(SSL *ssl, RSA *rsa);
702*4724848cSchristos
703*4724848cSchristos=item int B<SSL_use_RSAPrivateKey_ASN1>(SSL *ssl, unsigned char *d, long len);
704*4724848cSchristos
705*4724848cSchristos=item int B<SSL_use_RSAPrivateKey_file>(SSL *ssl, const char *file, int type);
706*4724848cSchristos
707*4724848cSchristos=item int B<SSL_use_certificate>(SSL *ssl, X509 *x);
708*4724848cSchristos
709*4724848cSchristos=item int B<SSL_use_certificate_ASN1>(SSL *ssl, int len, unsigned char *d);
710*4724848cSchristos
711*4724848cSchristos=item int B<SSL_use_certificate_file>(SSL *ssl, const char *file, int type);
712*4724848cSchristos
713*4724848cSchristos=item int B<SSL_use_cert_and_key>(SSL *ssl, X509 *x, EVP_PKEY *pkey, STACK_OF(X509) *chain, int override);
714*4724848cSchristos
715*4724848cSchristos=item int B<SSL_version>(const SSL *ssl);
716*4724848cSchristos
717*4724848cSchristos=item int B<SSL_want>(const SSL *ssl);
718*4724848cSchristos
719*4724848cSchristos=item int B<SSL_want_nothing>(const SSL *ssl);
720*4724848cSchristos
721*4724848cSchristos=item int B<SSL_want_read>(const SSL *ssl);
722*4724848cSchristos
723*4724848cSchristos=item int B<SSL_want_write>(const SSL *ssl);
724*4724848cSchristos
725*4724848cSchristos=item int B<SSL_want_x509_lookup>(const SSL *ssl);
726*4724848cSchristos
727*4724848cSchristos=item int B<SSL_write>(SSL *ssl, const void *buf, int num);
728*4724848cSchristos
729*4724848cSchristos=item void B<SSL_set_psk_client_callback>(SSL *ssl, unsigned int (*callback)(SSL *ssl, const char *hint, char *identity, unsigned int max_identity_len, unsigned char *psk, unsigned int max_psk_len));
730*4724848cSchristos
731*4724848cSchristos=item int B<SSL_use_psk_identity_hint>(SSL *ssl, const char *hint);
732*4724848cSchristos
733*4724848cSchristos=item void B<SSL_set_psk_server_callback>(SSL *ssl, unsigned int (*callback)(SSL *ssl, const char *identity, unsigned char *psk, int max_psk_len));
734*4724848cSchristos
735*4724848cSchristos=item const char *B<SSL_get_psk_identity_hint>(SSL *ssl);
736*4724848cSchristos
737*4724848cSchristos=item const char *B<SSL_get_psk_identity>(SSL *ssl);
738*4724848cSchristos
739*4724848cSchristos=back
740*4724848cSchristos
741*4724848cSchristos=head1 RETURN VALUES
742*4724848cSchristos
743*4724848cSchristosSee the individual manual pages for details.
744*4724848cSchristos
745*4724848cSchristos=head1 SEE ALSO
746*4724848cSchristos
747*4724848cSchristosL<openssl(1)>, L<crypto(7)>,
748*4724848cSchristosL<CRYPTO_get_ex_new_index(3)>,
749*4724848cSchristosL<SSL_accept(3)>, L<SSL_clear(3)>,
750*4724848cSchristosL<SSL_connect(3)>,
751*4724848cSchristosL<SSL_CIPHER_get_name(3)>,
752*4724848cSchristosL<SSL_COMP_add_compression_method(3)>,
753*4724848cSchristosL<SSL_CTX_add_extra_chain_cert(3)>,
754*4724848cSchristosL<SSL_CTX_add_session(3)>,
755*4724848cSchristosL<SSL_CTX_ctrl(3)>,
756*4724848cSchristosL<SSL_CTX_flush_sessions(3)>,
757*4724848cSchristosL<SSL_CTX_get_verify_mode(3)>,
758*4724848cSchristosL<SSL_CTX_load_verify_locations(3)>
759*4724848cSchristosL<SSL_CTX_new(3)>,
760*4724848cSchristosL<SSL_CTX_sess_number(3)>,
761*4724848cSchristosL<SSL_CTX_sess_set_cache_size(3)>,
762*4724848cSchristosL<SSL_CTX_sess_set_get_cb(3)>,
763*4724848cSchristosL<SSL_CTX_sessions(3)>,
764*4724848cSchristosL<SSL_CTX_set_cert_store(3)>,
765*4724848cSchristosL<SSL_CTX_set_cert_verify_callback(3)>,
766*4724848cSchristosL<SSL_CTX_set_cipher_list(3)>,
767*4724848cSchristosL<SSL_CTX_set_client_CA_list(3)>,
768*4724848cSchristosL<SSL_CTX_set_client_cert_cb(3)>,
769*4724848cSchristosL<SSL_CTX_set_default_passwd_cb(3)>,
770*4724848cSchristosL<SSL_CTX_set_generate_session_id(3)>,
771*4724848cSchristosL<SSL_CTX_set_info_callback(3)>,
772*4724848cSchristosL<SSL_CTX_set_max_cert_list(3)>,
773*4724848cSchristosL<SSL_CTX_set_mode(3)>,
774*4724848cSchristosL<SSL_CTX_set_msg_callback(3)>,
775*4724848cSchristosL<SSL_CTX_set_options(3)>,
776*4724848cSchristosL<SSL_CTX_set_quiet_shutdown(3)>,
777*4724848cSchristosL<SSL_CTX_set_read_ahead(3)>,
778*4724848cSchristosL<SSL_CTX_set_security_level(3)>,
779*4724848cSchristosL<SSL_CTX_set_session_cache_mode(3)>,
780*4724848cSchristosL<SSL_CTX_set_session_id_context(3)>,
781*4724848cSchristosL<SSL_CTX_set_ssl_version(3)>,
782*4724848cSchristosL<SSL_CTX_set_timeout(3)>,
783*4724848cSchristosL<SSL_CTX_set_tmp_dh_callback(3)>,
784*4724848cSchristosL<SSL_CTX_set_verify(3)>,
785*4724848cSchristosL<SSL_CTX_use_certificate(3)>,
786*4724848cSchristosL<SSL_alert_type_string(3)>,
787*4724848cSchristosL<SSL_do_handshake(3)>,
788*4724848cSchristosL<SSL_enable_ct(3)>,
789*4724848cSchristosL<SSL_get_SSL_CTX(3)>,
790*4724848cSchristosL<SSL_get_ciphers(3)>,
791*4724848cSchristosL<SSL_get_client_CA_list(3)>,
792*4724848cSchristosL<SSL_get_default_timeout(3)>,
793*4724848cSchristosL<SSL_get_error(3)>,
794*4724848cSchristosL<SSL_get_ex_data_X509_STORE_CTX_idx(3)>,
795*4724848cSchristosL<SSL_get_fd(3)>,
796*4724848cSchristosL<SSL_get_peer_cert_chain(3)>,
797*4724848cSchristosL<SSL_get_rbio(3)>,
798*4724848cSchristosL<SSL_get_session(3)>,
799*4724848cSchristosL<SSL_get_verify_result(3)>,
800*4724848cSchristosL<SSL_get_version(3)>,
801*4724848cSchristosL<SSL_load_client_CA_file(3)>,
802*4724848cSchristosL<SSL_new(3)>,
803*4724848cSchristosL<SSL_pending(3)>,
804*4724848cSchristosL<SSL_read_ex(3)>,
805*4724848cSchristosL<SSL_read(3)>,
806*4724848cSchristosL<SSL_rstate_string(3)>,
807*4724848cSchristosL<SSL_session_reused(3)>,
808*4724848cSchristosL<SSL_set_bio(3)>,
809*4724848cSchristosL<SSL_set_connect_state(3)>,
810*4724848cSchristosL<SSL_set_fd(3)>,
811*4724848cSchristosL<SSL_set_session(3)>,
812*4724848cSchristosL<SSL_set_shutdown(3)>,
813*4724848cSchristosL<SSL_shutdown(3)>,
814*4724848cSchristosL<SSL_state_string(3)>,
815*4724848cSchristosL<SSL_want(3)>,
816*4724848cSchristosL<SSL_write_ex(3)>,
817*4724848cSchristosL<SSL_write(3)>,
818*4724848cSchristosL<SSL_SESSION_free(3)>,
819*4724848cSchristosL<SSL_SESSION_get_time(3)>,
820*4724848cSchristosL<d2i_SSL_SESSION(3)>,
821*4724848cSchristosL<SSL_CTX_set_psk_client_callback(3)>,
822*4724848cSchristosL<SSL_CTX_use_psk_identity_hint(3)>,
823*4724848cSchristosL<SSL_get_psk_identity(3)>,
824*4724848cSchristosL<DTLSv1_listen(3)>
825*4724848cSchristos
826*4724848cSchristos=head1 HISTORY
827*4724848cSchristos
828*4724848cSchristosB<SSLv2_client_method>, B<SSLv2_server_method> and B<SSLv2_method> were removed
829*4724848cSchristosin OpenSSL 1.1.0.
830*4724848cSchristos
831*4724848cSchristosThe return type of B<SSL_copy_session_id> was changed from void to int in
832*4724848cSchristosOpenSSL 1.1.0.
833*4724848cSchristos
834*4724848cSchristos=head1 COPYRIGHT
835*4724848cSchristos
836*4724848cSchristosCopyright 2000-2018 The OpenSSL Project Authors. All Rights Reserved.
837*4724848cSchristos
838*4724848cSchristosLicensed under the OpenSSL license (the "License").  You may not use
839*4724848cSchristosthis file except in compliance with the License.  You can obtain a copy
840*4724848cSchristosin the file LICENSE in the source distribution or at
841*4724848cSchristosL<https://www.openssl.org/source/license.html>.
842*4724848cSchristos
843*4724848cSchristos=cut
844