]> CyberLeo.Net >> Repos - FreeBSD/FreeBSD.git/blob - secure/lib/libssl/man/ssl.3
MFC: r312825
[FreeBSD/FreeBSD.git] / secure / lib / libssl / man / ssl.3
1 .\" Automatically generated by Pod::Man 4.07 (Pod::Simple 3.35)
2 .\"
3 .\" Standard preamble:
4 .\" ========================================================================
5 .de Sp \" Vertical space (when we can't use .PP)
6 .if t .sp .5v
7 .if n .sp
8 ..
9 .de Vb \" Begin verbatim text
10 .ft CW
11 .nf
12 .ne \\$1
13 ..
14 .de Ve \" End verbatim text
15 .ft R
16 .fi
17 ..
18 .\" Set up some character translations and predefined strings.  \*(-- will
19 .\" give an unbreakable dash, \*(PI will give pi, \*(L" will give a left
20 .\" double quote, and \*(R" will give a right double quote.  \*(C+ will
21 .\" give a nicer C++.  Capital omega is used to do unbreakable dashes and
22 .\" therefore won't be available.  \*(C` and \*(C' expand to `' in nroff,
23 .\" nothing in troff, for use with C<>.
24 .tr \(*W-
25 .ds C+ C\v'-.1v'\h'-1p'\s-2+\h'-1p'+\s0\v'.1v'\h'-1p'
26 .ie n \{\
27 .    ds -- \(*W-
28 .    ds PI pi
29 .    if (\n(.H=4u)&(1m=24u) .ds -- \(*W\h'-12u'\(*W\h'-12u'-\" diablo 10 pitch
30 .    if (\n(.H=4u)&(1m=20u) .ds -- \(*W\h'-12u'\(*W\h'-8u'-\"  diablo 12 pitch
31 .    ds L" ""
32 .    ds R" ""
33 .    ds C` ""
34 .    ds C' ""
35 'br\}
36 .el\{\
37 .    ds -- \|\(em\|
38 .    ds PI \(*p
39 .    ds L" ``
40 .    ds R" ''
41 .    ds C`
42 .    ds C'
43 'br\}
44 .\"
45 .\" Escape single quotes in literal strings from groff's Unicode transform.
46 .ie \n(.g .ds Aq \(aq
47 .el       .ds Aq '
48 .\"
49 .\" If the F register is >0, we'll generate index entries on stderr for
50 .\" titles (.TH), headers (.SH), subsections (.SS), items (.Ip), and index
51 .\" entries marked with X<> in POD.  Of course, you'll have to process the
52 .\" output yourself in some meaningful fashion.
53 .\"
54 .\" Avoid warning from groff about undefined register 'F'.
55 .de IX
56 ..
57 .if !\nF .nr F 0
58 .if \nF>0 \{\
59 .    de IX
60 .    tm Index:\\$1\t\\n%\t"\\$2"
61 ..
62 .    if !\nF==2 \{\
63 .        nr % 0
64 .        nr F 2
65 .    \}
66 .\}
67 .\"
68 .\" Accent mark definitions (@(#)ms.acc 1.5 88/02/08 SMI; from UCB 4.2).
69 .\" Fear.  Run.  Save yourself.  No user-serviceable parts.
70 .    \" fudge factors for nroff and troff
71 .if n \{\
72 .    ds #H 0
73 .    ds #V .8m
74 .    ds #F .3m
75 .    ds #[ \f1
76 .    ds #] \fP
77 .\}
78 .if t \{\
79 .    ds #H ((1u-(\\\\n(.fu%2u))*.13m)
80 .    ds #V .6m
81 .    ds #F 0
82 .    ds #[ \&
83 .    ds #] \&
84 .\}
85 .    \" simple accents for nroff and troff
86 .if n \{\
87 .    ds ' \&
88 .    ds ` \&
89 .    ds ^ \&
90 .    ds , \&
91 .    ds ~ ~
92 .    ds /
93 .\}
94 .if t \{\
95 .    ds ' \\k:\h'-(\\n(.wu*8/10-\*(#H)'\'\h"|\\n:u"
96 .    ds ` \\k:\h'-(\\n(.wu*8/10-\*(#H)'\`\h'|\\n:u'
97 .    ds ^ \\k:\h'-(\\n(.wu*10/11-\*(#H)'^\h'|\\n:u'
98 .    ds , \\k:\h'-(\\n(.wu*8/10)',\h'|\\n:u'
99 .    ds ~ \\k:\h'-(\\n(.wu-\*(#H-.1m)'~\h'|\\n:u'
100 .    ds / \\k:\h'-(\\n(.wu*8/10-\*(#H)'\z\(sl\h'|\\n:u'
101 .\}
102 .    \" troff and (daisy-wheel) nroff accents
103 .ds : \\k:\h'-(\\n(.wu*8/10-\*(#H+.1m+\*(#F)'\v'-\*(#V'\z.\h'.2m+\*(#F'.\h'|\\n:u'\v'\*(#V'
104 .ds 8 \h'\*(#H'\(*b\h'-\*(#H'
105 .ds o \\k:\h'-(\\n(.wu+\w'\(de'u-\*(#H)/2u'\v'-.3n'\*(#[\z\(de\v'.3n'\h'|\\n:u'\*(#]
106 .ds d- \h'\*(#H'\(pd\h'-\w'~'u'\v'-.25m'\f2\(hy\fP\v'.25m'\h'-\*(#H'
107 .ds D- D\\k:\h'-\w'D'u'\v'-.11m'\z\(hy\v'.11m'\h'|\\n:u'
108 .ds th \*(#[\v'.3m'\s+1I\s-1\v'-.3m'\h'-(\w'I'u*2/3)'\s-1o\s+1\*(#]
109 .ds Th \*(#[\s+2I\s-2\h'-\w'I'u*3/5'\v'-.3m'o\v'.3m'\*(#]
110 .ds ae a\h'-(\w'a'u*4/10)'e
111 .ds Ae A\h'-(\w'A'u*4/10)'E
112 .    \" corrections for vroff
113 .if v .ds ~ \\k:\h'-(\\n(.wu*9/10-\*(#H)'\s-2\u~\d\s+2\h'|\\n:u'
114 .if v .ds ^ \\k:\h'-(\\n(.wu*10/11-\*(#H)'\v'-.4m'^\v'.4m'\h'|\\n:u'
115 .    \" for low resolution devices (crt and lpr)
116 .if \n(.H>23 .if \n(.V>19 \
117 \{\
118 .    ds : e
119 .    ds 8 ss
120 .    ds o a
121 .    ds d- d\h'-1'\(ga
122 .    ds D- D\h'-1'\(hy
123 .    ds th \o'bp'
124 .    ds Th \o'LP'
125 .    ds ae ae
126 .    ds Ae AE
127 .\}
128 .rm #[ #] #H #V #F C
129 .\" ========================================================================
130 .\"
131 .IX Title "ssl 3"
132 .TH ssl 3 "2017-01-26" "1.0.2k" "OpenSSL"
133 .\" For nroff, turn off justification.  Always turn off hyphenation; it makes
134 .\" way too many mistakes in technical documents.
135 .if n .ad l
136 .nh
137 .SH "NAME"
138 SSL \- OpenSSL SSL/TLS library
139 .SH "SYNOPSIS"
140 .IX Header "SYNOPSIS"
141 .SH "DESCRIPTION"
142 .IX Header "DESCRIPTION"
143 The OpenSSL \fBssl\fR library implements the Secure Sockets Layer (\s-1SSL\s0 v2/v3) and
144 Transport Layer Security (\s-1TLS\s0 v1) protocols. It provides a rich \s-1API\s0 which is
145 documented here.
146 .PP
147 At first the library must be initialized; see
148 \&\fISSL_library_init\fR\|(3).
149 .PP
150 Then an \fB\s-1SSL_CTX\s0\fR object is created as a framework to establish
151 \&\s-1TLS/SSL\s0 enabled connections (see \fISSL_CTX_new\fR\|(3)).
152 Various options regarding certificates, algorithms etc. can be set
153 in this object.
154 .PP
155 When a network connection has been created, it can be assigned to an
156 \&\fB\s-1SSL\s0\fR object. After the \fB\s-1SSL\s0\fR object has been created using
157 \&\fISSL_new\fR\|(3), \fISSL_set_fd\fR\|(3) or
158 \&\fISSL_set_bio\fR\|(3) can be used to associate the network
159 connection with the object.
160 .PP
161 Then the \s-1TLS/SSL\s0 handshake is performed using
162 \&\fISSL_accept\fR\|(3) or \fISSL_connect\fR\|(3)
163 respectively.
164 \&\fISSL_read\fR\|(3) and \fISSL_write\fR\|(3) are used
165 to read and write data on the \s-1TLS/SSL\s0 connection.
166 \&\fISSL_shutdown\fR\|(3) can be used to shut down the
167 \&\s-1TLS/SSL\s0 connection.
168 .SH "DATA STRUCTURES"
169 .IX Header "DATA STRUCTURES"
170 Currently the OpenSSL \fBssl\fR library functions deals with the following data
171 structures:
172 .IP "\fB\s-1SSL_METHOD\s0\fR (\s-1SSL\s0 Method)" 4
173 .IX Item "SSL_METHOD (SSL Method)"
174 That's a dispatch structure describing the internal \fBssl\fR library
175 methods/functions which implement the various protocol versions (SSLv1, SSLv2
176 and TLSv1). It's needed to create an \fB\s-1SSL_CTX\s0\fR.
177 .IP "\fB\s-1SSL_CIPHER\s0\fR (\s-1SSL\s0 Cipher)" 4
178 .IX Item "SSL_CIPHER (SSL Cipher)"
179 This structure holds the algorithm information for a particular cipher which
180 are a core part of the \s-1SSL/TLS\s0 protocol. The available ciphers are configured
181 on a \fB\s-1SSL_CTX\s0\fR basis and the actually used ones are then part of the
182 \&\fB\s-1SSL_SESSION\s0\fR.
183 .IP "\fB\s-1SSL_CTX\s0\fR (\s-1SSL\s0 Context)" 4
184 .IX Item "SSL_CTX (SSL Context)"
185 That's the global context structure which is created by a server or client
186 once per program life-time and which holds mainly default values for the
187 \&\fB\s-1SSL\s0\fR structures which are later created for the connections.
188 .IP "\fB\s-1SSL_SESSION\s0\fR (\s-1SSL\s0 Session)" 4
189 .IX Item "SSL_SESSION (SSL Session)"
190 This is a structure containing the current \s-1TLS/SSL\s0 session details for a
191 connection: \fB\s-1SSL_CIPHER\s0\fRs, client and server certificates, keys, etc.
192 .IP "\fB\s-1SSL\s0\fR (\s-1SSL\s0 Connection)" 4
193 .IX Item "SSL (SSL Connection)"
194 That's the main \s-1SSL/TLS\s0 structure which is created by a server or client per
195 established connection. This actually is the core structure in the \s-1SSL API.\s0
196 Under run-time the application usually deals with this structure which has
197 links to mostly all other structures.
198 .SH "HEADER FILES"
199 .IX Header "HEADER FILES"
200 Currently the OpenSSL \fBssl\fR library provides the following C header files
201 containing the prototypes for the data structures and and functions:
202 .IP "\fBssl.h\fR" 4
203 .IX Item "ssl.h"
204 That's the common header file for the \s-1SSL/TLS API. \s0 Include it into your
205 program to make the \s-1API\s0 of the \fBssl\fR library available. It internally
206 includes both more private \s-1SSL\s0 headers and headers from the \fBcrypto\fR library.
207 Whenever you need hard-core details on the internals of the \s-1SSL API,\s0 look
208 inside this header file.
209 .IP "\fBssl2.h\fR" 4
210 .IX Item "ssl2.h"
211 That's the sub header file dealing with the SSLv2 protocol only.
212 \&\fIUsually you don't have to include it explicitly because
213 it's already included by ssl.h\fR.
214 .IP "\fBssl3.h\fR" 4
215 .IX Item "ssl3.h"
216 That's the sub header file dealing with the SSLv3 protocol only.
217 \&\fIUsually you don't have to include it explicitly because
218 it's already included by ssl.h\fR.
219 .IP "\fBssl23.h\fR" 4
220 .IX Item "ssl23.h"
221 That's the sub header file dealing with the combined use of the SSLv2 and
222 SSLv3 protocols.
223 \&\fIUsually you don't have to include it explicitly because
224 it's already included by ssl.h\fR.
225 .IP "\fBtls1.h\fR" 4
226 .IX Item "tls1.h"
227 That's the sub header file dealing with the TLSv1 protocol only.
228 \&\fIUsually you don't have to include it explicitly because
229 it's already included by ssl.h\fR.
230 .SH "API FUNCTIONS"
231 .IX Header "API FUNCTIONS"
232 Currently the OpenSSL \fBssl\fR library exports 214 \s-1API\s0 functions.
233 They are documented in the following:
234 .SS "\s-1DEALING WITH PROTOCOL METHODS\s0"
235 .IX Subsection "DEALING WITH PROTOCOL METHODS"
236 Here we document the various \s-1API\s0 functions which deal with the \s-1SSL/TLS\s0
237 protocol methods defined in \fB\s-1SSL_METHOD\s0\fR structures.
238 .IP "const \s-1SSL_METHOD\s0 *\fBSSLv23_method\fR(void);" 4
239 .IX Item "const SSL_METHOD *SSLv23_method(void);"
240 Constructor for the \fIversion-flexible\fR \s-1SSL_METHOD\s0 structure for
241 clients, servers or both.
242 See \fISSL_CTX_new\fR\|(3) for details.
243 .IP "const \s-1SSL_METHOD\s0 *\fBSSLv23_client_method\fR(void);" 4
244 .IX Item "const SSL_METHOD *SSLv23_client_method(void);"
245 Constructor for the \fIversion-flexible\fR \s-1SSL_METHOD\s0 structure for
246 clients.
247 .IP "const \s-1SSL_METHOD\s0 *\fBSSLv23_client_method\fR(void);" 4
248 .IX Item "const SSL_METHOD *SSLv23_client_method(void);"
249 Constructor for the \fIversion-flexible\fR \s-1SSL_METHOD\s0 structure for
250 servers.
251 .IP "const \s-1SSL_METHOD\s0 *\fBTLSv1_2_method\fR(void);" 4
252 .IX Item "const SSL_METHOD *TLSv1_2_method(void);"
253 Constructor for the TLSv1.2 \s-1SSL_METHOD\s0 structure for clients, servers
254 or both.
255 .IP "const \s-1SSL_METHOD\s0 *\fBTLSv1_2_client_method\fR(void);" 4
256 .IX Item "const SSL_METHOD *TLSv1_2_client_method(void);"
257 Constructor for the TLSv1.2 \s-1SSL_METHOD\s0 structure for clients.
258 .IP "const \s-1SSL_METHOD\s0 *\fBTLSv1_2_server_method\fR(void);" 4
259 .IX Item "const SSL_METHOD *TLSv1_2_server_method(void);"
260 Constructor for the TLSv1.2 \s-1SSL_METHOD\s0 structure for servers.
261 .IP "const \s-1SSL_METHOD\s0 *\fBTLSv1_1_method\fR(void);" 4
262 .IX Item "const SSL_METHOD *TLSv1_1_method(void);"
263 Constructor for the TLSv1.1 \s-1SSL_METHOD\s0 structure for clients, servers
264 or both.
265 .IP "const \s-1SSL_METHOD\s0 *\fBTLSv1_1_client_method\fR(void);" 4
266 .IX Item "const SSL_METHOD *TLSv1_1_client_method(void);"
267 Constructor for the TLSv1.1 \s-1SSL_METHOD\s0 structure for clients.
268 .IP "const \s-1SSL_METHOD\s0 *\fBTLSv1_1_server_method\fR(void);" 4
269 .IX Item "const SSL_METHOD *TLSv1_1_server_method(void);"
270 Constructor for the TLSv1.1 \s-1SSL_METHOD\s0 structure for servers.
271 .IP "const \s-1SSL_METHOD\s0 *\fBTLSv1_method\fR(void);" 4
272 .IX Item "const SSL_METHOD *TLSv1_method(void);"
273 Constructor for the TLSv1 \s-1SSL_METHOD\s0 structure for clients, servers
274 or both.
275 .IP "const \s-1SSL_METHOD\s0 *\fBTLSv1_client_method\fR(void);" 4
276 .IX Item "const SSL_METHOD *TLSv1_client_method(void);"
277 Constructor for the TLSv1 \s-1SSL_METHOD\s0 structure for clients.
278 .IP "const \s-1SSL_METHOD\s0 *\fBTLSv1_server_method\fR(void);" 4
279 .IX Item "const SSL_METHOD *TLSv1_server_method(void);"
280 Constructor for the TLSv1 \s-1SSL_METHOD\s0 structure for servers.
281 .IP "const \s-1SSL_METHOD\s0 *\fBSSLv3_method\fR(void);" 4
282 .IX Item "const SSL_METHOD *SSLv3_method(void);"
283 Constructor for the SSLv3 \s-1SSL_METHOD\s0 structure for clients, servers
284 or both.
285 .IP "const \s-1SSL_METHOD\s0 *\fBSSLv3_client_method\fR(void);" 4
286 .IX Item "const SSL_METHOD *SSLv3_client_method(void);"
287 Constructor for the SSLv3 \s-1SSL_METHOD\s0 structure for clients.
288 .IP "const \s-1SSL_METHOD\s0 *\fBSSLv3_server_method\fR(void);" 4
289 .IX Item "const SSL_METHOD *SSLv3_server_method(void);"
290 Constructor for the SSLv3 \s-1SSL_METHOD\s0 structure for servers.
291 .IP "const \s-1SSL_METHOD\s0 *\fBSSLv2_method\fR(void);" 4
292 .IX Item "const SSL_METHOD *SSLv2_method(void);"
293 Constructor for the SSLv2 \s-1SSL_METHOD\s0 structure for clients, servers
294 or both.
295 .IP "const \s-1SSL_METHOD\s0 *\fBSSLv2_client_method\fR(void);" 4
296 .IX Item "const SSL_METHOD *SSLv2_client_method(void);"
297 Constructor for the SSLv2 \s-1SSL_METHOD\s0 structure for clients.
298 .IP "const \s-1SSL_METHOD\s0 *\fBSSLv2_server_method\fR(void);" 4
299 .IX Item "const SSL_METHOD *SSLv2_server_method(void);"
300 Constructor for the SSLv2 \s-1SSL_METHOD\s0 structure for servers.
301 .SS "\s-1DEALING WITH CIPHERS\s0"
302 .IX Subsection "DEALING WITH CIPHERS"
303 Here we document the various \s-1API\s0 functions which deal with the \s-1SSL/TLS\s0
304 ciphers defined in \fB\s-1SSL_CIPHER\s0\fR structures.
305 .IP "char *\fBSSL_CIPHER_description\fR(\s-1SSL_CIPHER\s0 *cipher, char *buf, int len);" 4
306 .IX Item "char *SSL_CIPHER_description(SSL_CIPHER *cipher, char *buf, int len);"
307 Write a string to \fIbuf\fR (with a maximum size of \fIlen\fR) containing a human
308 readable description of \fIcipher\fR. Returns \fIbuf\fR.
309 .IP "int \fBSSL_CIPHER_get_bits\fR(\s-1SSL_CIPHER\s0 *cipher, int *alg_bits);" 4
310 .IX Item "int SSL_CIPHER_get_bits(SSL_CIPHER *cipher, int *alg_bits);"
311 Determine the number of bits in \fIcipher\fR. Because of export crippled ciphers
312 there are two bits: The bits the algorithm supports in general (stored to
313 \&\fIalg_bits\fR) and the bits which are actually used (the return value).
314 .IP "const char *\fBSSL_CIPHER_get_name\fR(\s-1SSL_CIPHER\s0 *cipher);" 4
315 .IX Item "const char *SSL_CIPHER_get_name(SSL_CIPHER *cipher);"
316 Return the internal name of \fIcipher\fR as a string. These are the various
317 strings defined by the \fISSL2_TXT_xxx\fR, \fISSL3_TXT_xxx\fR and \fITLS1_TXT_xxx\fR
318 definitions in the header files.
319 .IP "char *\fBSSL_CIPHER_get_version\fR(\s-1SSL_CIPHER\s0 *cipher);" 4
320 .IX Item "char *SSL_CIPHER_get_version(SSL_CIPHER *cipher);"
321 Returns a string like "\f(CW\*(C`TLSv1/SSLv3\*(C'\fR\*(L" or \*(R"\f(CW\*(C`SSLv2\*(C'\fR" which indicates the
322 \&\s-1SSL/TLS\s0 protocol version to which \fIcipher\fR belongs (i.e. where it was defined
323 in the specification the first time).
324 .SS "\s-1DEALING WITH PROTOCOL CONTEXTS\s0"
325 .IX Subsection "DEALING WITH PROTOCOL CONTEXTS"
326 Here we document the various \s-1API\s0 functions which deal with the \s-1SSL/TLS\s0
327 protocol context defined in the \fB\s-1SSL_CTX\s0\fR structure.
328 .IP "int \fBSSL_CTX_add_client_CA\fR(\s-1SSL_CTX\s0 *ctx, X509 *x);" 4
329 .IX Item "int SSL_CTX_add_client_CA(SSL_CTX *ctx, X509 *x);"
330 .PD 0
331 .IP "long \fBSSL_CTX_add_extra_chain_cert\fR(\s-1SSL_CTX\s0 *ctx, X509 *x509);" 4
332 .IX Item "long SSL_CTX_add_extra_chain_cert(SSL_CTX *ctx, X509 *x509);"
333 .IP "int \fBSSL_CTX_add_session\fR(\s-1SSL_CTX\s0 *ctx, \s-1SSL_SESSION\s0 *c);" 4
334 .IX Item "int SSL_CTX_add_session(SSL_CTX *ctx, SSL_SESSION *c);"
335 .IP "int \fBSSL_CTX_check_private_key\fR(const \s-1SSL_CTX\s0 *ctx);" 4
336 .IX Item "int SSL_CTX_check_private_key(const SSL_CTX *ctx);"
337 .IP "long \fBSSL_CTX_ctrl\fR(\s-1SSL_CTX\s0 *ctx, int cmd, long larg, char *parg);" 4
338 .IX Item "long SSL_CTX_ctrl(SSL_CTX *ctx, int cmd, long larg, char *parg);"
339 .IP "void \fBSSL_CTX_flush_sessions\fR(\s-1SSL_CTX\s0 *s, long t);" 4
340 .IX Item "void SSL_CTX_flush_sessions(SSL_CTX *s, long t);"
341 .IP "void \fBSSL_CTX_free\fR(\s-1SSL_CTX\s0 *a);" 4
342 .IX Item "void SSL_CTX_free(SSL_CTX *a);"
343 .IP "char *\fBSSL_CTX_get_app_data\fR(\s-1SSL_CTX\s0 *ctx);" 4
344 .IX Item "char *SSL_CTX_get_app_data(SSL_CTX *ctx);"
345 .IP "X509_STORE *\fBSSL_CTX_get_cert_store\fR(\s-1SSL_CTX\s0 *ctx);" 4
346 .IX Item "X509_STORE *SSL_CTX_get_cert_store(SSL_CTX *ctx);"
347 .IP "\s-1STACK\s0 *\fBSSL_CTX_get_client_CA_list\fR(const \s-1SSL_CTX\s0 *ctx);" 4
348 .IX Item "STACK *SSL_CTX_get_client_CA_list(const SSL_CTX *ctx);"
349 .IP "int (*\fBSSL_CTX_get_client_cert_cb\fR(\s-1SSL_CTX\s0 *ctx))(\s-1SSL\s0 *ssl, X509 **x509, \s-1EVP_PKEY\s0 **pkey);" 4
350 .IX Item "int (*SSL_CTX_get_client_cert_cb(SSL_CTX *ctx))(SSL *ssl, X509 **x509, EVP_PKEY **pkey);"
351 .IP "void \fBSSL_CTX_get_default_read_ahead\fR(\s-1SSL_CTX\s0 *ctx);" 4
352 .IX Item "void SSL_CTX_get_default_read_ahead(SSL_CTX *ctx);"
353 .IP "char *\fBSSL_CTX_get_ex_data\fR(const \s-1SSL_CTX\s0 *s, int idx);" 4
354 .IX Item "char *SSL_CTX_get_ex_data(const SSL_CTX *s, int idx);"
355 .IP "int \fBSSL_CTX_get_ex_new_index\fR(long argl, char *argp, int (*new_func);(void), int (*dup_func)(void), void (*free_func)(void))" 4
356 .IX Item "int SSL_CTX_get_ex_new_index(long argl, char *argp, int (*new_func);(void), int (*dup_func)(void), void (*free_func)(void))"
357 .IP "void (*\fBSSL_CTX_get_info_callback\fR(\s-1SSL_CTX\s0 *ctx))(\s-1SSL\s0 *ssl, int cb, int ret);" 4
358 .IX Item "void (*SSL_CTX_get_info_callback(SSL_CTX *ctx))(SSL *ssl, int cb, int ret);"
359 .IP "int \fBSSL_CTX_get_quiet_shutdown\fR(const \s-1SSL_CTX\s0 *ctx);" 4
360 .IX Item "int SSL_CTX_get_quiet_shutdown(const SSL_CTX *ctx);"
361 .IP "void \fBSSL_CTX_get_read_ahead\fR(\s-1SSL_CTX\s0 *ctx);" 4
362 .IX Item "void SSL_CTX_get_read_ahead(SSL_CTX *ctx);"
363 .IP "int \fBSSL_CTX_get_session_cache_mode\fR(\s-1SSL_CTX\s0 *ctx);" 4
364 .IX Item "int SSL_CTX_get_session_cache_mode(SSL_CTX *ctx);"
365 .IP "long \fBSSL_CTX_get_timeout\fR(const \s-1SSL_CTX\s0 *ctx);" 4
366 .IX Item "long SSL_CTX_get_timeout(const SSL_CTX *ctx);"
367 .IP "int (*\fBSSL_CTX_get_verify_callback\fR(const \s-1SSL_CTX\s0 *ctx))(int ok, X509_STORE_CTX *ctx);" 4
368 .IX Item "int (*SSL_CTX_get_verify_callback(const SSL_CTX *ctx))(int ok, X509_STORE_CTX *ctx);"
369 .IP "int \fBSSL_CTX_get_verify_mode\fR(\s-1SSL_CTX\s0 *ctx);" 4
370 .IX Item "int SSL_CTX_get_verify_mode(SSL_CTX *ctx);"
371 .IP "int \fBSSL_CTX_load_verify_locations\fR(\s-1SSL_CTX\s0 *ctx, char *CAfile, char *CApath);" 4
372 .IX Item "int SSL_CTX_load_verify_locations(SSL_CTX *ctx, char *CAfile, char *CApath);"
373 .IP "long \fBSSL_CTX_need_tmp_RSA\fR(\s-1SSL_CTX\s0 *ctx);" 4
374 .IX Item "long SSL_CTX_need_tmp_RSA(SSL_CTX *ctx);"
375 .IP "\s-1SSL_CTX\s0 *\fBSSL_CTX_new\fR(const \s-1SSL_METHOD\s0 *meth);" 4
376 .IX Item "SSL_CTX *SSL_CTX_new(const SSL_METHOD *meth);"
377 .IP "int \fBSSL_CTX_remove_session\fR(\s-1SSL_CTX\s0 *ctx, \s-1SSL_SESSION\s0 *c);" 4
378 .IX Item "int SSL_CTX_remove_session(SSL_CTX *ctx, SSL_SESSION *c);"
379 .IP "int \fBSSL_CTX_sess_accept\fR(\s-1SSL_CTX\s0 *ctx);" 4
380 .IX Item "int SSL_CTX_sess_accept(SSL_CTX *ctx);"
381 .IP "int \fBSSL_CTX_sess_accept_good\fR(\s-1SSL_CTX\s0 *ctx);" 4
382 .IX Item "int SSL_CTX_sess_accept_good(SSL_CTX *ctx);"
383 .IP "int \fBSSL_CTX_sess_accept_renegotiate\fR(\s-1SSL_CTX\s0 *ctx);" 4
384 .IX Item "int SSL_CTX_sess_accept_renegotiate(SSL_CTX *ctx);"
385 .IP "int \fBSSL_CTX_sess_cache_full\fR(\s-1SSL_CTX\s0 *ctx);" 4
386 .IX Item "int SSL_CTX_sess_cache_full(SSL_CTX *ctx);"
387 .IP "int \fBSSL_CTX_sess_cb_hits\fR(\s-1SSL_CTX\s0 *ctx);" 4
388 .IX Item "int SSL_CTX_sess_cb_hits(SSL_CTX *ctx);"
389 .IP "int \fBSSL_CTX_sess_connect\fR(\s-1SSL_CTX\s0 *ctx);" 4
390 .IX Item "int SSL_CTX_sess_connect(SSL_CTX *ctx);"
391 .IP "int \fBSSL_CTX_sess_connect_good\fR(\s-1SSL_CTX\s0 *ctx);" 4
392 .IX Item "int SSL_CTX_sess_connect_good(SSL_CTX *ctx);"
393 .IP "int \fBSSL_CTX_sess_connect_renegotiate\fR(\s-1SSL_CTX\s0 *ctx);" 4
394 .IX Item "int SSL_CTX_sess_connect_renegotiate(SSL_CTX *ctx);"
395 .IP "int \fBSSL_CTX_sess_get_cache_size\fR(\s-1SSL_CTX\s0 *ctx);" 4
396 .IX Item "int SSL_CTX_sess_get_cache_size(SSL_CTX *ctx);"
397 .IP "\s-1SSL_SESSION\s0 *(*\fBSSL_CTX_sess_get_get_cb\fR(\s-1SSL_CTX\s0 *ctx))(\s-1SSL\s0 *ssl, unsigned char *data, int len, int *copy);" 4
398 .IX Item "SSL_SESSION *(*SSL_CTX_sess_get_get_cb(SSL_CTX *ctx))(SSL *ssl, unsigned char *data, int len, int *copy);"
399 .IP "int (*\fBSSL_CTX_sess_get_new_cb\fR(\s-1SSL_CTX\s0 *ctx)(\s-1SSL\s0 *ssl, \s-1SSL_SESSION\s0 *sess);" 4
400 .IX Item "int (*SSL_CTX_sess_get_new_cb(SSL_CTX *ctx)(SSL *ssl, SSL_SESSION *sess);"
401 .IP "void (*\fBSSL_CTX_sess_get_remove_cb\fR(\s-1SSL_CTX\s0 *ctx)(\s-1SSL_CTX\s0 *ctx, \s-1SSL_SESSION\s0 *sess);" 4
402 .IX Item "void (*SSL_CTX_sess_get_remove_cb(SSL_CTX *ctx)(SSL_CTX *ctx, SSL_SESSION *sess);"
403 .IP "int \fBSSL_CTX_sess_hits\fR(\s-1SSL_CTX\s0 *ctx);" 4
404 .IX Item "int SSL_CTX_sess_hits(SSL_CTX *ctx);"
405 .IP "int \fBSSL_CTX_sess_misses\fR(\s-1SSL_CTX\s0 *ctx);" 4
406 .IX Item "int SSL_CTX_sess_misses(SSL_CTX *ctx);"
407 .IP "int \fBSSL_CTX_sess_number\fR(\s-1SSL_CTX\s0 *ctx);" 4
408 .IX Item "int SSL_CTX_sess_number(SSL_CTX *ctx);"
409 .IP "void \fBSSL_CTX_sess_set_cache_size\fR(\s-1SSL_CTX\s0 *ctx,t);" 4
410 .IX Item "void SSL_CTX_sess_set_cache_size(SSL_CTX *ctx,t);"
411 .IP "void \fBSSL_CTX_sess_set_get_cb\fR(\s-1SSL_CTX\s0 *ctx, \s-1SSL_SESSION\s0 *(*cb)(\s-1SSL\s0 *ssl, unsigned char *data, int len, int *copy));" 4
412 .IX Item "void SSL_CTX_sess_set_get_cb(SSL_CTX *ctx, SSL_SESSION *(*cb)(SSL *ssl, unsigned char *data, int len, int *copy));"
413 .IP "void \fBSSL_CTX_sess_set_new_cb\fR(\s-1SSL_CTX\s0 *ctx, int (*cb)(\s-1SSL\s0 *ssl, \s-1SSL_SESSION\s0 *sess));" 4
414 .IX Item "void SSL_CTX_sess_set_new_cb(SSL_CTX *ctx, int (*cb)(SSL *ssl, SSL_SESSION *sess));"
415 .IP "void \fBSSL_CTX_sess_set_remove_cb\fR(\s-1SSL_CTX\s0 *ctx, void (*cb)(\s-1SSL_CTX\s0 *ctx, \s-1SSL_SESSION\s0 *sess));" 4
416 .IX Item "void SSL_CTX_sess_set_remove_cb(SSL_CTX *ctx, void (*cb)(SSL_CTX *ctx, SSL_SESSION *sess));"
417 .IP "int \fBSSL_CTX_sess_timeouts\fR(\s-1SSL_CTX\s0 *ctx);" 4
418 .IX Item "int SSL_CTX_sess_timeouts(SSL_CTX *ctx);"
419 .IP "\s-1LHASH\s0 *\fBSSL_CTX_sessions\fR(\s-1SSL_CTX\s0 *ctx);" 4
420 .IX Item "LHASH *SSL_CTX_sessions(SSL_CTX *ctx);"
421 .IP "void \fBSSL_CTX_set_app_data\fR(\s-1SSL_CTX\s0 *ctx, void *arg);" 4
422 .IX Item "void SSL_CTX_set_app_data(SSL_CTX *ctx, void *arg);"
423 .IP "void \fBSSL_CTX_set_cert_store\fR(\s-1SSL_CTX\s0 *ctx, X509_STORE *cs);" 4
424 .IX Item "void SSL_CTX_set_cert_store(SSL_CTX *ctx, X509_STORE *cs);"
425 .IP "void \fBSSL_CTX_set_cert_verify_cb\fR(\s-1SSL_CTX\s0 *ctx, int (*cb)(), char *arg)" 4
426 .IX Item "void SSL_CTX_set_cert_verify_cb(SSL_CTX *ctx, int (*cb)(), char *arg)"
427 .IP "int \fBSSL_CTX_set_cipher_list\fR(\s-1SSL_CTX\s0 *ctx, char *str);" 4
428 .IX Item "int SSL_CTX_set_cipher_list(SSL_CTX *ctx, char *str);"
429 .IP "void \fBSSL_CTX_set_client_CA_list\fR(\s-1SSL_CTX\s0 *ctx, \s-1STACK\s0 *list);" 4
430 .IX Item "void SSL_CTX_set_client_CA_list(SSL_CTX *ctx, STACK *list);"
431 .IP "void \fBSSL_CTX_set_client_cert_cb\fR(\s-1SSL_CTX\s0 *ctx, int (*cb)(\s-1SSL\s0 *ssl, X509 **x509, \s-1EVP_PKEY\s0 **pkey));" 4
432 .IX Item "void SSL_CTX_set_client_cert_cb(SSL_CTX *ctx, int (*cb)(SSL *ssl, X509 **x509, EVP_PKEY **pkey));"
433 .IP "void \fBSSL_CTX_set_default_passwd_cb\fR(\s-1SSL_CTX\s0 *ctx, int (*cb);(void))" 4
434 .IX Item "void SSL_CTX_set_default_passwd_cb(SSL_CTX *ctx, int (*cb);(void))"
435 .IP "void \fBSSL_CTX_set_default_read_ahead\fR(\s-1SSL_CTX\s0 *ctx, int m);" 4
436 .IX Item "void SSL_CTX_set_default_read_ahead(SSL_CTX *ctx, int m);"
437 .IP "int \fBSSL_CTX_set_default_verify_paths\fR(\s-1SSL_CTX\s0 *ctx);" 4
438 .IX Item "int SSL_CTX_set_default_verify_paths(SSL_CTX *ctx);"
439 .IP "int \fBSSL_CTX_set_ex_data\fR(\s-1SSL_CTX\s0 *s, int idx, char *arg);" 4
440 .IX Item "int SSL_CTX_set_ex_data(SSL_CTX *s, int idx, char *arg);"
441 .IP "void \fBSSL_CTX_set_info_callback\fR(\s-1SSL_CTX\s0 *ctx, void (*cb)(\s-1SSL\s0 *ssl, int cb, int ret));" 4
442 .IX Item "void SSL_CTX_set_info_callback(SSL_CTX *ctx, void (*cb)(SSL *ssl, int cb, int ret));"
443 .IP "void \fBSSL_CTX_set_msg_callback\fR(\s-1SSL_CTX\s0 *ctx, void (*cb)(int write_p, int version, int content_type, const void *buf, size_t len, \s-1SSL\s0 *ssl, void *arg));" 4
444 .IX Item "void 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));"
445 .IP "void \fBSSL_CTX_set_msg_callback_arg\fR(\s-1SSL_CTX\s0 *ctx, void *arg);" 4
446 .IX Item "void SSL_CTX_set_msg_callback_arg(SSL_CTX *ctx, void *arg);"
447 .IP "void \fBSSL_CTX_set_options\fR(\s-1SSL_CTX\s0 *ctx, unsigned long op);" 4
448 .IX Item "void SSL_CTX_set_options(SSL_CTX *ctx, unsigned long op);"
449 .IP "void \fBSSL_CTX_set_quiet_shutdown\fR(\s-1SSL_CTX\s0 *ctx, int mode);" 4
450 .IX Item "void SSL_CTX_set_quiet_shutdown(SSL_CTX *ctx, int mode);"
451 .IP "void \fBSSL_CTX_set_read_ahead\fR(\s-1SSL_CTX\s0 *ctx, int m);" 4
452 .IX Item "void SSL_CTX_set_read_ahead(SSL_CTX *ctx, int m);"
453 .IP "void \fBSSL_CTX_set_session_cache_mode\fR(\s-1SSL_CTX\s0 *ctx, int mode);" 4
454 .IX Item "void SSL_CTX_set_session_cache_mode(SSL_CTX *ctx, int mode);"
455 .IP "int \fBSSL_CTX_set_ssl_version\fR(\s-1SSL_CTX\s0 *ctx, const \s-1SSL_METHOD\s0 *meth);" 4
456 .IX Item "int SSL_CTX_set_ssl_version(SSL_CTX *ctx, const SSL_METHOD *meth);"
457 .IP "void \fBSSL_CTX_set_timeout\fR(\s-1SSL_CTX\s0 *ctx, long t);" 4
458 .IX Item "void SSL_CTX_set_timeout(SSL_CTX *ctx, long t);"
459 .IP "long \fBSSL_CTX_set_tmp_dh\fR(SSL_CTX* ctx, \s-1DH\s0 *dh);" 4
460 .IX Item "long SSL_CTX_set_tmp_dh(SSL_CTX* ctx, DH *dh);"
461 .IP "long \fBSSL_CTX_set_tmp_dh_callback\fR(\s-1SSL_CTX\s0 *ctx, \s-1DH\s0 *(*cb)(void));" 4
462 .IX Item "long SSL_CTX_set_tmp_dh_callback(SSL_CTX *ctx, DH *(*cb)(void));"
463 .IP "long \fBSSL_CTX_set_tmp_rsa\fR(\s-1SSL_CTX\s0 *ctx, \s-1RSA\s0 *rsa);" 4
464 .IX Item "long SSL_CTX_set_tmp_rsa(SSL_CTX *ctx, RSA *rsa);"
465 .IP "SSL_CTX_set_tmp_rsa_callback" 4
466 .IX Item "SSL_CTX_set_tmp_rsa_callback"
467 .PD
468 \&\f(CW\*(C`long \f(CBSSL_CTX_set_tmp_rsa_callback\f(CW(SSL_CTX *\f(CBctx\f(CW, RSA *(*\f(CBcb\f(CW)(SSL *\f(CBssl\f(CW, int \f(CBexport\f(CW, int \f(CBkeylength\f(CW));\*(C'\fR
469 .Sp
470 Sets the callback which will be called when a temporary private key is
471 required. The \fB\f(CB\*(C`export\*(C'\fB\fR flag will be set if the reason for needing
472 a temp key is that an export ciphersuite is in use, in which case,
473 \&\fB\f(CB\*(C`keylength\*(C'\fB\fR will contain the required keylength in bits. Generate a key of
474 appropriate size (using ???) and return it.
475 .IP "SSL_set_tmp_rsa_callback" 4
476 .IX Item "SSL_set_tmp_rsa_callback"
477 long \fBSSL_set_tmp_rsa_callback\fR(\s-1SSL\s0 *ssl, \s-1RSA\s0 *(*cb)(\s-1SSL\s0 *ssl, int export, int keylength));
478 .Sp
479 The same as \fBSSL_CTX_set_tmp_rsa_callback\fR, except it operates on an \s-1SSL\s0
480 session instead of a context.
481 .IP "void \fBSSL_CTX_set_verify\fR(\s-1SSL_CTX\s0 *ctx, int mode, int (*cb);(void))" 4
482 .IX Item "void SSL_CTX_set_verify(SSL_CTX *ctx, int mode, int (*cb);(void))"
483 .PD 0
484 .IP "int \fBSSL_CTX_use_PrivateKey\fR(\s-1SSL_CTX\s0 *ctx, \s-1EVP_PKEY\s0 *pkey);" 4
485 .IX Item "int SSL_CTX_use_PrivateKey(SSL_CTX *ctx, EVP_PKEY *pkey);"
486 .IP "int \fBSSL_CTX_use_PrivateKey_ASN1\fR(int type, \s-1SSL_CTX\s0 *ctx, unsigned char *d, long len);" 4
487 .IX Item "int SSL_CTX_use_PrivateKey_ASN1(int type, SSL_CTX *ctx, unsigned char *d, long len);"
488 .IP "int \fBSSL_CTX_use_PrivateKey_file\fR(\s-1SSL_CTX\s0 *ctx, char *file, int type);" 4
489 .IX Item "int SSL_CTX_use_PrivateKey_file(SSL_CTX *ctx, char *file, int type);"
490 .IP "int \fBSSL_CTX_use_RSAPrivateKey\fR(\s-1SSL_CTX\s0 *ctx, \s-1RSA\s0 *rsa);" 4
491 .IX Item "int SSL_CTX_use_RSAPrivateKey(SSL_CTX *ctx, RSA *rsa);"
492 .IP "int \fBSSL_CTX_use_RSAPrivateKey_ASN1\fR(\s-1SSL_CTX\s0 *ctx, unsigned char *d, long len);" 4
493 .IX Item "int SSL_CTX_use_RSAPrivateKey_ASN1(SSL_CTX *ctx, unsigned char *d, long len);"
494 .IP "int \fBSSL_CTX_use_RSAPrivateKey_file\fR(\s-1SSL_CTX\s0 *ctx, char *file, int type);" 4
495 .IX Item "int SSL_CTX_use_RSAPrivateKey_file(SSL_CTX *ctx, char *file, int type);"
496 .IP "int \fBSSL_CTX_use_certificate\fR(\s-1SSL_CTX\s0 *ctx, X509 *x);" 4
497 .IX Item "int SSL_CTX_use_certificate(SSL_CTX *ctx, X509 *x);"
498 .IP "int \fBSSL_CTX_use_certificate_ASN1\fR(\s-1SSL_CTX\s0 *ctx, int len, unsigned char *d);" 4
499 .IX Item "int SSL_CTX_use_certificate_ASN1(SSL_CTX *ctx, int len, unsigned char *d);"
500 .IP "int \fBSSL_CTX_use_certificate_file\fR(\s-1SSL_CTX\s0 *ctx, char *file, int type);" 4
501 .IX Item "int SSL_CTX_use_certificate_file(SSL_CTX *ctx, char *file, int type);"
502 .IP "X509 *\fBSSL_CTX_get0_certificate\fR(const \s-1SSL_CTX\s0 *ctx);" 4
503 .IX Item "X509 *SSL_CTX_get0_certificate(const SSL_CTX *ctx);"
504 .IP "\s-1EVP_PKEY\s0 *\fBSSL_CTX_get0_privatekey\fR(const \s-1SSL_CTX\s0 *ctx);" 4
505 .IX Item "EVP_PKEY *SSL_CTX_get0_privatekey(const SSL_CTX *ctx);"
506 .IP "void \fBSSL_CTX_set_psk_client_callback\fR(\s-1SSL_CTX\s0 *ctx, unsigned int (*callback)(\s-1SSL\s0 *ssl, const char *hint, char *identity, unsigned int max_identity_len, unsigned char *psk, unsigned int max_psk_len));" 4
507 .IX Item "void 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));"
508 .IP "int \fBSSL_CTX_use_psk_identity_hint\fR(\s-1SSL_CTX\s0 *ctx, const char *hint);" 4
509 .IX Item "int SSL_CTX_use_psk_identity_hint(SSL_CTX *ctx, const char *hint);"
510 .IP "void \fBSSL_CTX_set_psk_server_callback\fR(\s-1SSL_CTX\s0 *ctx, unsigned int (*callback)(\s-1SSL\s0 *ssl, const char *identity, unsigned char *psk, int max_psk_len));" 4
511 .IX Item "void SSL_CTX_set_psk_server_callback(SSL_CTX *ctx, unsigned int (*callback)(SSL *ssl, const char *identity, unsigned char *psk, int max_psk_len));"
512 .PD
513 .SS "\s-1DEALING WITH SESSIONS\s0"
514 .IX Subsection "DEALING WITH SESSIONS"
515 Here we document the various \s-1API\s0 functions which deal with the \s-1SSL/TLS\s0
516 sessions defined in the \fB\s-1SSL_SESSION\s0\fR structures.
517 .IP "int \fBSSL_SESSION_cmp\fR(const \s-1SSL_SESSION\s0 *a, const \s-1SSL_SESSION\s0 *b);" 4
518 .IX Item "int SSL_SESSION_cmp(const SSL_SESSION *a, const SSL_SESSION *b);"
519 .PD 0
520 .IP "void \fBSSL_SESSION_free\fR(\s-1SSL_SESSION\s0 *ss);" 4
521 .IX Item "void SSL_SESSION_free(SSL_SESSION *ss);"
522 .IP "char *\fBSSL_SESSION_get_app_data\fR(\s-1SSL_SESSION\s0 *s);" 4
523 .IX Item "char *SSL_SESSION_get_app_data(SSL_SESSION *s);"
524 .IP "char *\fBSSL_SESSION_get_ex_data\fR(const \s-1SSL_SESSION\s0 *s, int idx);" 4
525 .IX Item "char *SSL_SESSION_get_ex_data(const SSL_SESSION *s, int idx);"
526 .IP "int \fBSSL_SESSION_get_ex_new_index\fR(long argl, char *argp, int (*new_func);(void), int (*dup_func)(void), void (*free_func)(void))" 4
527 .IX Item "int SSL_SESSION_get_ex_new_index(long argl, char *argp, int (*new_func);(void), int (*dup_func)(void), void (*free_func)(void))"
528 .IP "long \fBSSL_SESSION_get_time\fR(const \s-1SSL_SESSION\s0 *s);" 4
529 .IX Item "long SSL_SESSION_get_time(const SSL_SESSION *s);"
530 .IP "long \fBSSL_SESSION_get_timeout\fR(const \s-1SSL_SESSION\s0 *s);" 4
531 .IX Item "long SSL_SESSION_get_timeout(const SSL_SESSION *s);"
532 .IP "unsigned long \fBSSL_SESSION_hash\fR(const \s-1SSL_SESSION\s0 *a);" 4
533 .IX Item "unsigned long SSL_SESSION_hash(const SSL_SESSION *a);"
534 .IP "\s-1SSL_SESSION\s0 *\fBSSL_SESSION_new\fR(void);" 4
535 .IX Item "SSL_SESSION *SSL_SESSION_new(void);"
536 .IP "int \fBSSL_SESSION_print\fR(\s-1BIO\s0 *bp, const \s-1SSL_SESSION\s0 *x);" 4
537 .IX Item "int SSL_SESSION_print(BIO *bp, const SSL_SESSION *x);"
538 .IP "int \fBSSL_SESSION_print_fp\fR(\s-1FILE\s0 *fp, const \s-1SSL_SESSION\s0 *x);" 4
539 .IX Item "int SSL_SESSION_print_fp(FILE *fp, const SSL_SESSION *x);"
540 .IP "void \fBSSL_SESSION_set_app_data\fR(\s-1SSL_SESSION\s0 *s, char *a);" 4
541 .IX Item "void SSL_SESSION_set_app_data(SSL_SESSION *s, char *a);"
542 .IP "int \fBSSL_SESSION_set_ex_data\fR(\s-1SSL_SESSION\s0 *s, int idx, char *arg);" 4
543 .IX Item "int SSL_SESSION_set_ex_data(SSL_SESSION *s, int idx, char *arg);"
544 .IP "long \fBSSL_SESSION_set_time\fR(\s-1SSL_SESSION\s0 *s, long t);" 4
545 .IX Item "long SSL_SESSION_set_time(SSL_SESSION *s, long t);"
546 .IP "long \fBSSL_SESSION_set_timeout\fR(\s-1SSL_SESSION\s0 *s, long t);" 4
547 .IX Item "long SSL_SESSION_set_timeout(SSL_SESSION *s, long t);"
548 .PD
549 .SS "\s-1DEALING WITH CONNECTIONS\s0"
550 .IX Subsection "DEALING WITH CONNECTIONS"
551 Here we document the various \s-1API\s0 functions which deal with the \s-1SSL/TLS\s0
552 connection defined in the \fB\s-1SSL\s0\fR structure.
553 .IP "int \fBSSL_accept\fR(\s-1SSL\s0 *ssl);" 4
554 .IX Item "int SSL_accept(SSL *ssl);"
555 .PD 0
556 .IP "int \fBSSL_add_dir_cert_subjects_to_stack\fR(\s-1STACK\s0 *stack, const char *dir);" 4
557 .IX Item "int SSL_add_dir_cert_subjects_to_stack(STACK *stack, const char *dir);"
558 .IP "int \fBSSL_add_file_cert_subjects_to_stack\fR(\s-1STACK\s0 *stack, const char *file);" 4
559 .IX Item "int SSL_add_file_cert_subjects_to_stack(STACK *stack, const char *file);"
560 .IP "int \fBSSL_add_client_CA\fR(\s-1SSL\s0 *ssl, X509 *x);" 4
561 .IX Item "int SSL_add_client_CA(SSL *ssl, X509 *x);"
562 .IP "char *\fBSSL_alert_desc_string\fR(int value);" 4
563 .IX Item "char *SSL_alert_desc_string(int value);"
564 .IP "char *\fBSSL_alert_desc_string_long\fR(int value);" 4
565 .IX Item "char *SSL_alert_desc_string_long(int value);"
566 .IP "char *\fBSSL_alert_type_string\fR(int value);" 4
567 .IX Item "char *SSL_alert_type_string(int value);"
568 .IP "char *\fBSSL_alert_type_string_long\fR(int value);" 4
569 .IX Item "char *SSL_alert_type_string_long(int value);"
570 .IP "int \fBSSL_check_private_key\fR(const \s-1SSL\s0 *ssl);" 4
571 .IX Item "int SSL_check_private_key(const SSL *ssl);"
572 .IP "void \fBSSL_clear\fR(\s-1SSL\s0 *ssl);" 4
573 .IX Item "void SSL_clear(SSL *ssl);"
574 .IP "long \fBSSL_clear_num_renegotiations\fR(\s-1SSL\s0 *ssl);" 4
575 .IX Item "long SSL_clear_num_renegotiations(SSL *ssl);"
576 .IP "int \fBSSL_connect\fR(\s-1SSL\s0 *ssl);" 4
577 .IX Item "int SSL_connect(SSL *ssl);"
578 .IP "void \fBSSL_copy_session_id\fR(\s-1SSL\s0 *t, const \s-1SSL\s0 *f);" 4
579 .IX Item "void SSL_copy_session_id(SSL *t, const SSL *f);"
580 .IP "long \fBSSL_ctrl\fR(\s-1SSL\s0 *ssl, int cmd, long larg, char *parg);" 4
581 .IX Item "long SSL_ctrl(SSL *ssl, int cmd, long larg, char *parg);"
582 .IP "int \fBSSL_do_handshake\fR(\s-1SSL\s0 *ssl);" 4
583 .IX Item "int SSL_do_handshake(SSL *ssl);"
584 .IP "\s-1SSL\s0 *\fBSSL_dup\fR(\s-1SSL\s0 *ssl);" 4
585 .IX Item "SSL *SSL_dup(SSL *ssl);"
586 .IP "\s-1STACK\s0 *\fBSSL_dup_CA_list\fR(\s-1STACK\s0 *sk);" 4
587 .IX Item "STACK *SSL_dup_CA_list(STACK *sk);"
588 .IP "void \fBSSL_free\fR(\s-1SSL\s0 *ssl);" 4
589 .IX Item "void SSL_free(SSL *ssl);"
590 .IP "\s-1SSL_CTX\s0 *\fBSSL_get_SSL_CTX\fR(const \s-1SSL\s0 *ssl);" 4
591 .IX Item "SSL_CTX *SSL_get_SSL_CTX(const SSL *ssl);"
592 .IP "char *\fBSSL_get_app_data\fR(\s-1SSL\s0 *ssl);" 4
593 .IX Item "char *SSL_get_app_data(SSL *ssl);"
594 .IP "X509 *\fBSSL_get_certificate\fR(const \s-1SSL\s0 *ssl);" 4
595 .IX Item "X509 *SSL_get_certificate(const SSL *ssl);"
596 .IP "const char *\fBSSL_get_cipher\fR(const \s-1SSL\s0 *ssl);" 4
597 .IX Item "const char *SSL_get_cipher(const SSL *ssl);"
598 .IP "int \fBSSL_get_cipher_bits\fR(const \s-1SSL\s0 *ssl, int *alg_bits);" 4
599 .IX Item "int SSL_get_cipher_bits(const SSL *ssl, int *alg_bits);"
600 .IP "char *\fBSSL_get_cipher_list\fR(const \s-1SSL\s0 *ssl, int n);" 4
601 .IX Item "char *SSL_get_cipher_list(const SSL *ssl, int n);"
602 .IP "char *\fBSSL_get_cipher_name\fR(const \s-1SSL\s0 *ssl);" 4
603 .IX Item "char *SSL_get_cipher_name(const SSL *ssl);"
604 .IP "char *\fBSSL_get_cipher_version\fR(const \s-1SSL\s0 *ssl);" 4
605 .IX Item "char *SSL_get_cipher_version(const SSL *ssl);"
606 .IP "\s-1STACK\s0 *\fBSSL_get_ciphers\fR(const \s-1SSL\s0 *ssl);" 4
607 .IX Item "STACK *SSL_get_ciphers(const SSL *ssl);"
608 .IP "\s-1STACK\s0 *\fBSSL_get_client_CA_list\fR(const \s-1SSL\s0 *ssl);" 4
609 .IX Item "STACK *SSL_get_client_CA_list(const SSL *ssl);"
610 .IP "\s-1SSL_CIPHER\s0 *\fBSSL_get_current_cipher\fR(\s-1SSL\s0 *ssl);" 4
611 .IX Item "SSL_CIPHER *SSL_get_current_cipher(SSL *ssl);"
612 .IP "long \fBSSL_get_default_timeout\fR(const \s-1SSL\s0 *ssl);" 4
613 .IX Item "long SSL_get_default_timeout(const SSL *ssl);"
614 .IP "int \fBSSL_get_error\fR(const \s-1SSL\s0 *ssl, int i);" 4
615 .IX Item "int SSL_get_error(const SSL *ssl, int i);"
616 .IP "char *\fBSSL_get_ex_data\fR(const \s-1SSL\s0 *ssl, int idx);" 4
617 .IX Item "char *SSL_get_ex_data(const SSL *ssl, int idx);"
618 .IP "int \fBSSL_get_ex_data_X509_STORE_CTX_idx\fR(void);" 4
619 .IX Item "int SSL_get_ex_data_X509_STORE_CTX_idx(void);"
620 .IP "int \fBSSL_get_ex_new_index\fR(long argl, char *argp, int (*new_func);(void), int (*dup_func)(void), void (*free_func)(void))" 4
621 .IX Item "int SSL_get_ex_new_index(long argl, char *argp, int (*new_func);(void), int (*dup_func)(void), void (*free_func)(void))"
622 .IP "int \fBSSL_get_fd\fR(const \s-1SSL\s0 *ssl);" 4
623 .IX Item "int SSL_get_fd(const SSL *ssl);"
624 .IP "void (*\fBSSL_get_info_callback\fR(const \s-1SSL\s0 *ssl);)()" 4
625 .IX Item "void (*SSL_get_info_callback(const SSL *ssl);)()"
626 .IP "\s-1STACK\s0 *\fBSSL_get_peer_cert_chain\fR(const \s-1SSL\s0 *ssl);" 4
627 .IX Item "STACK *SSL_get_peer_cert_chain(const SSL *ssl);"
628 .IP "X509 *\fBSSL_get_peer_certificate\fR(const \s-1SSL\s0 *ssl);" 4
629 .IX Item "X509 *SSL_get_peer_certificate(const SSL *ssl);"
630 .IP "\s-1EVP_PKEY\s0 *\fBSSL_get_privatekey\fR(const \s-1SSL\s0 *ssl);" 4
631 .IX Item "EVP_PKEY *SSL_get_privatekey(const SSL *ssl);"
632 .IP "int \fBSSL_get_quiet_shutdown\fR(const \s-1SSL\s0 *ssl);" 4
633 .IX Item "int SSL_get_quiet_shutdown(const SSL *ssl);"
634 .IP "\s-1BIO\s0 *\fBSSL_get_rbio\fR(const \s-1SSL\s0 *ssl);" 4
635 .IX Item "BIO *SSL_get_rbio(const SSL *ssl);"
636 .IP "int \fBSSL_get_read_ahead\fR(const \s-1SSL\s0 *ssl);" 4
637 .IX Item "int SSL_get_read_ahead(const SSL *ssl);"
638 .IP "\s-1SSL_SESSION\s0 *\fBSSL_get_session\fR(const \s-1SSL\s0 *ssl);" 4
639 .IX Item "SSL_SESSION *SSL_get_session(const SSL *ssl);"
640 .IP "char *\fBSSL_get_shared_ciphers\fR(const \s-1SSL\s0 *ssl, char *buf, int len);" 4
641 .IX Item "char *SSL_get_shared_ciphers(const SSL *ssl, char *buf, int len);"
642 .IP "int \fBSSL_get_shutdown\fR(const \s-1SSL\s0 *ssl);" 4
643 .IX Item "int SSL_get_shutdown(const SSL *ssl);"
644 .IP "const \s-1SSL_METHOD\s0 *\fBSSL_get_ssl_method\fR(\s-1SSL\s0 *ssl);" 4
645 .IX Item "const SSL_METHOD *SSL_get_ssl_method(SSL *ssl);"
646 .IP "int \fBSSL_get_state\fR(const \s-1SSL\s0 *ssl);" 4
647 .IX Item "int SSL_get_state(const SSL *ssl);"
648 .IP "long \fBSSL_get_time\fR(const \s-1SSL\s0 *ssl);" 4
649 .IX Item "long SSL_get_time(const SSL *ssl);"
650 .IP "long \fBSSL_get_timeout\fR(const \s-1SSL\s0 *ssl);" 4
651 .IX Item "long SSL_get_timeout(const SSL *ssl);"
652 .IP "int (*\fBSSL_get_verify_callback\fR(const \s-1SSL\s0 *ssl))(int,X509_STORE_CTX *)" 4
653 .IX Item "int (*SSL_get_verify_callback(const SSL *ssl))(int,X509_STORE_CTX *)"
654 .IP "int \fBSSL_get_verify_mode\fR(const \s-1SSL\s0 *ssl);" 4
655 .IX Item "int SSL_get_verify_mode(const SSL *ssl);"
656 .IP "long \fBSSL_get_verify_result\fR(const \s-1SSL\s0 *ssl);" 4
657 .IX Item "long SSL_get_verify_result(const SSL *ssl);"
658 .IP "char *\fBSSL_get_version\fR(const \s-1SSL\s0 *ssl);" 4
659 .IX Item "char *SSL_get_version(const SSL *ssl);"
660 .IP "\s-1BIO\s0 *\fBSSL_get_wbio\fR(const \s-1SSL\s0 *ssl);" 4
661 .IX Item "BIO *SSL_get_wbio(const SSL *ssl);"
662 .IP "int \fBSSL_in_accept_init\fR(\s-1SSL\s0 *ssl);" 4
663 .IX Item "int SSL_in_accept_init(SSL *ssl);"
664 .IP "int \fBSSL_in_before\fR(\s-1SSL\s0 *ssl);" 4
665 .IX Item "int SSL_in_before(SSL *ssl);"
666 .IP "int \fBSSL_in_connect_init\fR(\s-1SSL\s0 *ssl);" 4
667 .IX Item "int SSL_in_connect_init(SSL *ssl);"
668 .IP "int \fBSSL_in_init\fR(\s-1SSL\s0 *ssl);" 4
669 .IX Item "int SSL_in_init(SSL *ssl);"
670 .IP "int \fBSSL_is_init_finished\fR(\s-1SSL\s0 *ssl);" 4
671 .IX Item "int SSL_is_init_finished(SSL *ssl);"
672 .IP "\s-1STACK\s0 *\fBSSL_load_client_CA_file\fR(char *file);" 4
673 .IX Item "STACK *SSL_load_client_CA_file(char *file);"
674 .IP "void \fBSSL_load_error_strings\fR(void);" 4
675 .IX Item "void SSL_load_error_strings(void);"
676 .IP "\s-1SSL\s0 *\fBSSL_new\fR(\s-1SSL_CTX\s0 *ctx);" 4
677 .IX Item "SSL *SSL_new(SSL_CTX *ctx);"
678 .IP "long \fBSSL_num_renegotiations\fR(\s-1SSL\s0 *ssl);" 4
679 .IX Item "long SSL_num_renegotiations(SSL *ssl);"
680 .IP "int \fBSSL_peek\fR(\s-1SSL\s0 *ssl, void *buf, int num);" 4
681 .IX Item "int SSL_peek(SSL *ssl, void *buf, int num);"
682 .IP "int \fBSSL_pending\fR(const \s-1SSL\s0 *ssl);" 4
683 .IX Item "int SSL_pending(const SSL *ssl);"
684 .IP "int \fBSSL_read\fR(\s-1SSL\s0 *ssl, void *buf, int num);" 4
685 .IX Item "int SSL_read(SSL *ssl, void *buf, int num);"
686 .IP "int \fBSSL_renegotiate\fR(\s-1SSL\s0 *ssl);" 4
687 .IX Item "int SSL_renegotiate(SSL *ssl);"
688 .IP "char *\fBSSL_rstate_string\fR(\s-1SSL\s0 *ssl);" 4
689 .IX Item "char *SSL_rstate_string(SSL *ssl);"
690 .IP "char *\fBSSL_rstate_string_long\fR(\s-1SSL\s0 *ssl);" 4
691 .IX Item "char *SSL_rstate_string_long(SSL *ssl);"
692 .IP "long \fBSSL_session_reused\fR(\s-1SSL\s0 *ssl);" 4
693 .IX Item "long SSL_session_reused(SSL *ssl);"
694 .IP "void \fBSSL_set_accept_state\fR(\s-1SSL\s0 *ssl);" 4
695 .IX Item "void SSL_set_accept_state(SSL *ssl);"
696 .IP "void \fBSSL_set_app_data\fR(\s-1SSL\s0 *ssl, char *arg);" 4
697 .IX Item "void SSL_set_app_data(SSL *ssl, char *arg);"
698 .IP "void \fBSSL_set_bio\fR(\s-1SSL\s0 *ssl, \s-1BIO\s0 *rbio, \s-1BIO\s0 *wbio);" 4
699 .IX Item "void SSL_set_bio(SSL *ssl, BIO *rbio, BIO *wbio);"
700 .IP "int \fBSSL_set_cipher_list\fR(\s-1SSL\s0 *ssl, char *str);" 4
701 .IX Item "int SSL_set_cipher_list(SSL *ssl, char *str);"
702 .IP "void \fBSSL_set_client_CA_list\fR(\s-1SSL\s0 *ssl, \s-1STACK\s0 *list);" 4
703 .IX Item "void SSL_set_client_CA_list(SSL *ssl, STACK *list);"
704 .IP "void \fBSSL_set_connect_state\fR(\s-1SSL\s0 *ssl);" 4
705 .IX Item "void SSL_set_connect_state(SSL *ssl);"
706 .IP "int \fBSSL_set_ex_data\fR(\s-1SSL\s0 *ssl, int idx, char *arg);" 4
707 .IX Item "int SSL_set_ex_data(SSL *ssl, int idx, char *arg);"
708 .IP "int \fBSSL_set_fd\fR(\s-1SSL\s0 *ssl, int fd);" 4
709 .IX Item "int SSL_set_fd(SSL *ssl, int fd);"
710 .IP "void \fBSSL_set_info_callback\fR(\s-1SSL\s0 *ssl, void (*cb);(void))" 4
711 .IX Item "void SSL_set_info_callback(SSL *ssl, void (*cb);(void))"
712 .IP "void \fBSSL_set_msg_callback\fR(\s-1SSL\s0 *ctx, void (*cb)(int write_p, int version, int content_type, const void *buf, size_t len, \s-1SSL\s0 *ssl, void *arg));" 4
713 .IX Item "void 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));"
714 .IP "void \fBSSL_set_msg_callback_arg\fR(\s-1SSL\s0 *ctx, void *arg);" 4
715 .IX Item "void SSL_set_msg_callback_arg(SSL *ctx, void *arg);"
716 .IP "void \fBSSL_set_options\fR(\s-1SSL\s0 *ssl, unsigned long op);" 4
717 .IX Item "void SSL_set_options(SSL *ssl, unsigned long op);"
718 .IP "void \fBSSL_set_quiet_shutdown\fR(\s-1SSL\s0 *ssl, int mode);" 4
719 .IX Item "void SSL_set_quiet_shutdown(SSL *ssl, int mode);"
720 .IP "void \fBSSL_set_read_ahead\fR(\s-1SSL\s0 *ssl, int yes);" 4
721 .IX Item "void SSL_set_read_ahead(SSL *ssl, int yes);"
722 .IP "int \fBSSL_set_rfd\fR(\s-1SSL\s0 *ssl, int fd);" 4
723 .IX Item "int SSL_set_rfd(SSL *ssl, int fd);"
724 .IP "int \fBSSL_set_session\fR(\s-1SSL\s0 *ssl, \s-1SSL_SESSION\s0 *session);" 4
725 .IX Item "int SSL_set_session(SSL *ssl, SSL_SESSION *session);"
726 .IP "void \fBSSL_set_shutdown\fR(\s-1SSL\s0 *ssl, int mode);" 4
727 .IX Item "void SSL_set_shutdown(SSL *ssl, int mode);"
728 .IP "int \fBSSL_set_ssl_method\fR(\s-1SSL\s0 *ssl, const \s-1SSL_METHOD\s0 *meth);" 4
729 .IX Item "int SSL_set_ssl_method(SSL *ssl, const SSL_METHOD *meth);"
730 .IP "void \fBSSL_set_time\fR(\s-1SSL\s0 *ssl, long t);" 4
731 .IX Item "void SSL_set_time(SSL *ssl, long t);"
732 .IP "void \fBSSL_set_timeout\fR(\s-1SSL\s0 *ssl, long t);" 4
733 .IX Item "void SSL_set_timeout(SSL *ssl, long t);"
734 .IP "void \fBSSL_set_verify\fR(\s-1SSL\s0 *ssl, int mode, int (*callback);(void))" 4
735 .IX Item "void SSL_set_verify(SSL *ssl, int mode, int (*callback);(void))"
736 .IP "void \fBSSL_set_verify_result\fR(\s-1SSL\s0 *ssl, long arg);" 4
737 .IX Item "void SSL_set_verify_result(SSL *ssl, long arg);"
738 .IP "int \fBSSL_set_wfd\fR(\s-1SSL\s0 *ssl, int fd);" 4
739 .IX Item "int SSL_set_wfd(SSL *ssl, int fd);"
740 .IP "int \fBSSL_shutdown\fR(\s-1SSL\s0 *ssl);" 4
741 .IX Item "int SSL_shutdown(SSL *ssl);"
742 .IP "int \fBSSL_state\fR(const \s-1SSL\s0 *ssl);" 4
743 .IX Item "int SSL_state(const SSL *ssl);"
744 .IP "char *\fBSSL_state_string\fR(const \s-1SSL\s0 *ssl);" 4
745 .IX Item "char *SSL_state_string(const SSL *ssl);"
746 .IP "char *\fBSSL_state_string_long\fR(const \s-1SSL\s0 *ssl);" 4
747 .IX Item "char *SSL_state_string_long(const SSL *ssl);"
748 .IP "long \fBSSL_total_renegotiations\fR(\s-1SSL\s0 *ssl);" 4
749 .IX Item "long SSL_total_renegotiations(SSL *ssl);"
750 .IP "int \fBSSL_use_PrivateKey\fR(\s-1SSL\s0 *ssl, \s-1EVP_PKEY\s0 *pkey);" 4
751 .IX Item "int SSL_use_PrivateKey(SSL *ssl, EVP_PKEY *pkey);"
752 .IP "int \fBSSL_use_PrivateKey_ASN1\fR(int type, \s-1SSL\s0 *ssl, unsigned char *d, long len);" 4
753 .IX Item "int SSL_use_PrivateKey_ASN1(int type, SSL *ssl, unsigned char *d, long len);"
754 .IP "int \fBSSL_use_PrivateKey_file\fR(\s-1SSL\s0 *ssl, char *file, int type);" 4
755 .IX Item "int SSL_use_PrivateKey_file(SSL *ssl, char *file, int type);"
756 .IP "int \fBSSL_use_RSAPrivateKey\fR(\s-1SSL\s0 *ssl, \s-1RSA\s0 *rsa);" 4
757 .IX Item "int SSL_use_RSAPrivateKey(SSL *ssl, RSA *rsa);"
758 .IP "int \fBSSL_use_RSAPrivateKey_ASN1\fR(\s-1SSL\s0 *ssl, unsigned char *d, long len);" 4
759 .IX Item "int SSL_use_RSAPrivateKey_ASN1(SSL *ssl, unsigned char *d, long len);"
760 .IP "int \fBSSL_use_RSAPrivateKey_file\fR(\s-1SSL\s0 *ssl, char *file, int type);" 4
761 .IX Item "int SSL_use_RSAPrivateKey_file(SSL *ssl, char *file, int type);"
762 .IP "int \fBSSL_use_certificate\fR(\s-1SSL\s0 *ssl, X509 *x);" 4
763 .IX Item "int SSL_use_certificate(SSL *ssl, X509 *x);"
764 .IP "int \fBSSL_use_certificate_ASN1\fR(\s-1SSL\s0 *ssl, int len, unsigned char *d);" 4
765 .IX Item "int SSL_use_certificate_ASN1(SSL *ssl, int len, unsigned char *d);"
766 .IP "int \fBSSL_use_certificate_file\fR(\s-1SSL\s0 *ssl, char *file, int type);" 4
767 .IX Item "int SSL_use_certificate_file(SSL *ssl, char *file, int type);"
768 .IP "int \fBSSL_version\fR(const \s-1SSL\s0 *ssl);" 4
769 .IX Item "int SSL_version(const SSL *ssl);"
770 .IP "int \fBSSL_want\fR(const \s-1SSL\s0 *ssl);" 4
771 .IX Item "int SSL_want(const SSL *ssl);"
772 .IP "int \fBSSL_want_nothing\fR(const \s-1SSL\s0 *ssl);" 4
773 .IX Item "int SSL_want_nothing(const SSL *ssl);"
774 .IP "int \fBSSL_want_read\fR(const \s-1SSL\s0 *ssl);" 4
775 .IX Item "int SSL_want_read(const SSL *ssl);"
776 .IP "int \fBSSL_want_write\fR(const \s-1SSL\s0 *ssl);" 4
777 .IX Item "int SSL_want_write(const SSL *ssl);"
778 .IP "int \fBSSL_want_x509_lookup\fR(const \s-1SSL\s0 *ssl);" 4
779 .IX Item "int SSL_want_x509_lookup(const SSL *ssl);"
780 .IP "int \fBSSL_write\fR(\s-1SSL\s0 *ssl, const void *buf, int num);" 4
781 .IX Item "int SSL_write(SSL *ssl, const void *buf, int num);"
782 .IP "void \fBSSL_set_psk_client_callback\fR(\s-1SSL\s0 *ssl, unsigned int (*callback)(\s-1SSL\s0 *ssl, const char *hint, char *identity, unsigned int max_identity_len, unsigned char *psk, unsigned int max_psk_len));" 4
783 .IX Item "void 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));"
784 .IP "int \fBSSL_use_psk_identity_hint\fR(\s-1SSL\s0 *ssl, const char *hint);" 4
785 .IX Item "int SSL_use_psk_identity_hint(SSL *ssl, const char *hint);"
786 .IP "void \fBSSL_set_psk_server_callback\fR(\s-1SSL\s0 *ssl, unsigned int (*callback)(\s-1SSL\s0 *ssl, const char *identity, unsigned char *psk, int max_psk_len));" 4
787 .IX Item "void SSL_set_psk_server_callback(SSL *ssl, unsigned int (*callback)(SSL *ssl, const char *identity, unsigned char *psk, int max_psk_len));"
788 .IP "const char *\fBSSL_get_psk_identity_hint\fR(\s-1SSL\s0 *ssl);" 4
789 .IX Item "const char *SSL_get_psk_identity_hint(SSL *ssl);"
790 .IP "const char *\fBSSL_get_psk_identity\fR(\s-1SSL\s0 *ssl);" 4
791 .IX Item "const char *SSL_get_psk_identity(SSL *ssl);"
792 .PD
793 .SH "SEE ALSO"
794 .IX Header "SEE ALSO"
795 \&\fIopenssl\fR\|(1), \fIcrypto\fR\|(3),
796 \&\fISSL_accept\fR\|(3), \fISSL_clear\fR\|(3),
797 \&\fISSL_connect\fR\|(3),
798 \&\fISSL_CIPHER_get_name\fR\|(3),
799 \&\fISSL_COMP_add_compression_method\fR\|(3),
800 \&\fISSL_CTX_add_extra_chain_cert\fR\|(3),
801 \&\fISSL_CTX_add_session\fR\|(3),
802 \&\fISSL_CTX_ctrl\fR\|(3),
803 \&\fISSL_CTX_flush_sessions\fR\|(3),
804 \&\fISSL_CTX_get_ex_new_index\fR\|(3),
805 \&\fISSL_CTX_get_verify_mode\fR\|(3),
806 \&\fISSL_CTX_load_verify_locations\fR\|(3)
807 \&\fISSL_CTX_new\fR\|(3),
808 \&\fISSL_CTX_sess_number\fR\|(3),
809 \&\fISSL_CTX_sess_set_cache_size\fR\|(3),
810 \&\fISSL_CTX_sess_set_get_cb\fR\|(3),
811 \&\fISSL_CTX_sessions\fR\|(3),
812 \&\fISSL_CTX_set_cert_store\fR\|(3),
813 \&\fISSL_CTX_set_cert_verify_callback\fR\|(3),
814 \&\fISSL_CTX_set_cipher_list\fR\|(3),
815 \&\fISSL_CTX_set_client_CA_list\fR\|(3),
816 \&\fISSL_CTX_set_client_cert_cb\fR\|(3),
817 \&\fISSL_CTX_set_default_passwd_cb\fR\|(3),
818 \&\fISSL_CTX_set_generate_session_id\fR\|(3),
819 \&\fISSL_CTX_set_info_callback\fR\|(3),
820 \&\fISSL_CTX_set_max_cert_list\fR\|(3),
821 \&\fISSL_CTX_set_mode\fR\|(3),
822 \&\fISSL_CTX_set_msg_callback\fR\|(3),
823 \&\fISSL_CTX_set_options\fR\|(3),
824 \&\fISSL_CTX_set_quiet_shutdown\fR\|(3),
825 \&\fISSL_CTX_set_read_ahead\fR\|(3),
826 \&\fISSL_CTX_set_session_cache_mode\fR\|(3),
827 \&\fISSL_CTX_set_session_id_context\fR\|(3),
828 \&\fISSL_CTX_set_ssl_version\fR\|(3),
829 \&\fISSL_CTX_set_timeout\fR\|(3),
830 \&\fISSL_CTX_set_tmp_rsa_callback\fR\|(3),
831 \&\fISSL_CTX_set_tmp_dh_callback\fR\|(3),
832 \&\fISSL_CTX_set_verify\fR\|(3),
833 \&\fISSL_CTX_use_certificate\fR\|(3),
834 \&\fISSL_alert_type_string\fR\|(3),
835 \&\fISSL_do_handshake\fR\|(3),
836 \&\fISSL_get_SSL_CTX\fR\|(3),
837 \&\fISSL_get_ciphers\fR\|(3),
838 \&\fISSL_get_client_CA_list\fR\|(3),
839 \&\fISSL_get_default_timeout\fR\|(3),
840 \&\fISSL_get_error\fR\|(3),
841 \&\fISSL_get_ex_data_X509_STORE_CTX_idx\fR\|(3),
842 \&\fISSL_get_ex_new_index\fR\|(3),
843 \&\fISSL_get_fd\fR\|(3),
844 \&\fISSL_get_peer_cert_chain\fR\|(3),
845 \&\fISSL_get_rbio\fR\|(3),
846 \&\fISSL_get_session\fR\|(3),
847 \&\fISSL_get_verify_result\fR\|(3),
848 \&\fISSL_get_version\fR\|(3),
849 \&\fISSL_library_init\fR\|(3),
850 \&\fISSL_load_client_CA_file\fR\|(3),
851 \&\fISSL_new\fR\|(3),
852 \&\fISSL_pending\fR\|(3),
853 \&\fISSL_read\fR\|(3),
854 \&\fISSL_rstate_string\fR\|(3),
855 \&\fISSL_session_reused\fR\|(3),
856 \&\fISSL_set_bio\fR\|(3),
857 \&\fISSL_set_connect_state\fR\|(3),
858 \&\fISSL_set_fd\fR\|(3),
859 \&\fISSL_set_session\fR\|(3),
860 \&\fISSL_set_shutdown\fR\|(3),
861 \&\fISSL_shutdown\fR\|(3),
862 \&\fISSL_state_string\fR\|(3),
863 \&\fISSL_want\fR\|(3),
864 \&\fISSL_write\fR\|(3),
865 \&\fISSL_SESSION_free\fR\|(3),
866 \&\fISSL_SESSION_get_ex_new_index\fR\|(3),
867 \&\fISSL_SESSION_get_time\fR\|(3),
868 \&\fId2i_SSL_SESSION\fR\|(3),
869 \&\fISSL_CTX_set_psk_client_callback\fR\|(3),
870 \&\fISSL_CTX_use_psk_identity_hint\fR\|(3),
871 \&\fISSL_get_psk_identity\fR\|(3)
872 .SH "HISTORY"
873 .IX Header "HISTORY"
874 The \fIssl\fR\|(3) document appeared in OpenSSL 0.9.2