]> CyberLeo.Net >> Repos - FreeBSD/FreeBSD.git/blob - secure/lib/libcrypto/man/SSL_CTX_set_verify.3
MFC: r340703
[FreeBSD/FreeBSD.git] / secure / lib / libcrypto / man / SSL_CTX_set_verify.3
1 .\" Automatically generated by Pod::Man 4.09 (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_CTX_SET_VERIFY 3"
132 .TH SSL_CTX_SET_VERIFY 3 "2018-11-20" "1.1.1a" "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_get_ex_data_X509_STORE_CTX_idx, SSL_CTX_set_verify, SSL_set_verify, SSL_CTX_set_verify_depth, SSL_set_verify_depth, SSL_verify_cb, SSL_verify_client_post_handshake, SSL_set_post_handshake_auth, SSL_CTX_set_post_handshake_auth \&\- set peer certificate verification parameters
139 .SH "SYNOPSIS"
140 .IX Header "SYNOPSIS"
141 .Vb 1
142 \& #include <openssl/ssl.h>
143 \&
144 \& typedef int (*SSL_verify_cb)(int preverify_ok, X509_STORE_CTX *x509_ctx);
145 \&
146 \& void SSL_CTX_set_verify(SSL_CTX *ctx, int mode, SSL_verify_cb verify_callback);
147 \& void SSL_set_verify(SSL *ssl, int mode, SSL_verify_cb verify_callback);
148 \& SSL_get_ex_data_X509_STORE_CTX_idx(void);
149 \&
150 \& void SSL_CTX_set_verify_depth(SSL_CTX *ctx, int depth);
151 \& void SSL_set_verify_depth(SSL *ssl, int depth);
152 \&
153 \& int SSL_verify_client_post_handshake(SSL *ssl);
154 \& void SSL_CTX_set_post_handshake_auth(SSL_CTX *ctx, int val);
155 \& void SSL_set_post_handshake_auth(SSL *ssl, int val);
156 .Ve
157 .SH "DESCRIPTION"
158 .IX Header "DESCRIPTION"
159 \&\fISSL_CTX_set_verify()\fR sets the verification flags for \fBctx\fR to be \fBmode\fR and
160 specifies the \fBverify_callback\fR function to be used. If no callback function
161 shall be specified, the \s-1NULL\s0 pointer can be used for \fBverify_callback\fR.
162 .PP
163 \&\fISSL_set_verify()\fR sets the verification flags for \fBssl\fR to be \fBmode\fR and
164 specifies the \fBverify_callback\fR function to be used. If no callback function
165 shall be specified, the \s-1NULL\s0 pointer can be used for \fBverify_callback\fR. In
166 this case last \fBverify_callback\fR set specifically for this \fBssl\fR remains. If
167 no special \fBcallback\fR was set before, the default callback for the underlying
168 \&\fBctx\fR is used, that was valid at the time \fBssl\fR was created with
169 \&\fISSL_new\fR\|(3). Within the callback function,
170 \&\fBSSL_get_ex_data_X509_STORE_CTX_idx\fR can be called to get the data index
171 of the current \s-1SSL\s0 object that is doing the verification.
172 .PP
173 \&\fISSL_CTX_set_verify_depth()\fR sets the maximum \fBdepth\fR for the certificate chain
174 verification that shall be allowed for \fBctx\fR.
175 .PP
176 \&\fISSL_set_verify_depth()\fR sets the maximum \fBdepth\fR for the certificate chain
177 verification that shall be allowed for \fBssl\fR.
178 .PP
179 \&\fISSL_CTX_set_post_handshake_auth()\fR and \fISSL_set_post_handshake_auth()\fR enable the
180 Post-Handshake Authentication extension to be added to the ClientHello such that
181 post-handshake authentication can be requested by the server. If \fBval\fR is 0
182 then the extension is not sent, otherwise it is. By default the extension is not
183 sent. A certificate callback will need to be set via
184 \&\fISSL_CTX_set_client_cert_cb()\fR if no certificate is provided at initialization.
185 .PP
186 \&\fISSL_verify_client_post_handshake()\fR causes a CertificateRequest message to be
187 sent by a server on the given \fBssl\fR connection. The \s-1SSL_VERIFY_PEER\s0 flag must
188 be set; the \s-1SSL_VERIFY_POST_HANDSHAKE\s0 flag is optional.
189 .SH "NOTES"
190 .IX Header "NOTES"
191 The verification of certificates can be controlled by a set of logically
192 or'ed \fBmode\fR flags:
193 .IP "\s-1SSL_VERIFY_NONE\s0" 4
194 .IX Item "SSL_VERIFY_NONE"
195 \&\fBServer mode:\fR the server will not send a client certificate request to the
196 client, so the client will not send a certificate.
197 .Sp
198 \&\fBClient mode:\fR if not using an anonymous cipher (by default disabled), the
199 server will send a certificate which will be checked. The result of the
200 certificate verification process can be checked after the \s-1TLS/SSL\s0 handshake
201 using the \fISSL_get_verify_result\fR\|(3) function.
202 The handshake will be continued regardless of the verification result.
203 .IP "\s-1SSL_VERIFY_PEER\s0" 4
204 .IX Item "SSL_VERIFY_PEER"
205 \&\fBServer mode:\fR the server sends a client certificate request to the client.
206 The certificate returned (if any) is checked. If the verification process
207 fails, the \s-1TLS/SSL\s0 handshake is
208 immediately terminated with an alert message containing the reason for
209 the verification failure.
210 The behaviour can be controlled by the additional
211 \&\s-1SSL_VERIFY_FAIL_IF_NO_PEER_CERT, SSL_VERIFY_CLIENT_ONCE\s0 and
212 \&\s-1SSL_VERIFY_POST_HANDSHAKE\s0 flags.
213 .Sp
214 \&\fBClient mode:\fR the server certificate is verified. If the verification process
215 fails, the \s-1TLS/SSL\s0 handshake is
216 immediately terminated with an alert message containing the reason for
217 the verification failure. If no server certificate is sent, because an
218 anonymous cipher is used, \s-1SSL_VERIFY_PEER\s0 is ignored.
219 .IP "\s-1SSL_VERIFY_FAIL_IF_NO_PEER_CERT\s0" 4
220 .IX Item "SSL_VERIFY_FAIL_IF_NO_PEER_CERT"
221 \&\fBServer mode:\fR if the client did not return a certificate, the \s-1TLS/SSL\s0
222 handshake is immediately terminated with a \*(L"handshake failure\*(R" alert.
223 This flag must be used together with \s-1SSL_VERIFY_PEER.\s0
224 .Sp
225 \&\fBClient mode:\fR ignored
226 .IP "\s-1SSL_VERIFY_CLIENT_ONCE\s0" 4
227 .IX Item "SSL_VERIFY_CLIENT_ONCE"
228 \&\fBServer mode:\fR only request a client certificate once during the
229 connection. Do not ask for a client certificate again during
230 renegotiation or post-authentication if a certificate was requested
231 during the initial handshake. This flag must be used together with
232 \&\s-1SSL_VERIFY_PEER.\s0
233 .Sp
234 \&\fBClient mode:\fR ignored
235 .IP "\s-1SSL_VERIFY_POST_HANDSHAKE\s0" 4
236 .IX Item "SSL_VERIFY_POST_HANDSHAKE"
237 \&\fBServer mode:\fR the server will not send a client certificate request
238 during the initial handshake, but will send the request via
239 \&\fISSL_verify_client_post_handshake()\fR. This allows the \s-1SSL_CTX\s0 or \s-1SSL\s0
240 to be configured for post-handshake peer verification before the
241 handshake occurs. This flag must be used together with
242 \&\s-1SSL_VERIFY_PEER.\s0 TLSv1.3 only; no effect on pre\-TLSv1.3 connections.
243 .Sp
244 \&\fBClient mode:\fR ignored
245 .PP
246 If the \fBmode\fR is \s-1SSL_VERIFY_NONE\s0 none of the other flags may be set.
247 .PP
248 The actual verification procedure is performed either using the built-in
249 verification procedure or using another application provided verification
250 function set with
251 \&\fISSL_CTX_set_cert_verify_callback\fR\|(3).
252 The following descriptions apply in the case of the built-in procedure. An
253 application provided procedure also has access to the verify depth information
254 and the \fIverify_callback()\fR function, but the way this information is used
255 may be different.
256 .PP
257 \&\fISSL_CTX_set_verify_depth()\fR and \fISSL_set_verify_depth()\fR set a limit on the
258 number of certificates between the end-entity and trust-anchor certificates.
259 Neither the
260 end-entity nor the trust-anchor certificates count against \fBdepth\fR. If the
261 certificate chain needed to reach a trusted issuer is longer than \fBdepth+2\fR,
262 X509_V_ERR_CERT_CHAIN_TOO_LONG will be issued.
263 The depth count is \*(L"level 0:peer certificate\*(R", \*(L"level 1: \s-1CA\s0 certificate\*(R",
264 \&\*(L"level 2: higher level \s-1CA\s0 certificate\*(R", and so on. Setting the maximum
265 depth to 2 allows the levels 0, 1, 2 and 3 (0 being the end-entity and 3 the
266 trust-anchor).
267 The default depth limit is 100,
268 allowing for the peer certificate, at most 100 intermediate \s-1CA\s0 certificates and
269 a final trust anchor certificate.
270 .PP
271 The \fBverify_callback\fR function is used to control the behaviour when the
272 \&\s-1SSL_VERIFY_PEER\s0 flag is set. It must be supplied by the application and
273 receives two arguments: \fBpreverify_ok\fR indicates, whether the verification of
274 the certificate in question was passed (preverify_ok=1) or not
275 (preverify_ok=0). \fBx509_ctx\fR is a pointer to the complete context used
276 for the certificate chain verification.
277 .PP
278 The certificate chain is checked starting with the deepest nesting level
279 (the root \s-1CA\s0 certificate) and worked upward to the peer's certificate.
280 At each level signatures and issuer attributes are checked. Whenever
281 a verification error is found, the error number is stored in \fBx509_ctx\fR
282 and \fBverify_callback\fR is called with \fBpreverify_ok\fR=0. By applying
283 X509_CTX_store_* functions \fBverify_callback\fR can locate the certificate
284 in question and perform additional steps (see \s-1EXAMPLES\s0). If no error is
285 found for a certificate, \fBverify_callback\fR is called with \fBpreverify_ok\fR=1
286 before advancing to the next level.
287 .PP
288 The return value of \fBverify_callback\fR controls the strategy of the further
289 verification process. If \fBverify_callback\fR returns 0, the verification
290 process is immediately stopped with \*(L"verification failed\*(R" state. If
291 \&\s-1SSL_VERIFY_PEER\s0 is set, a verification failure alert is sent to the peer and
292 the \s-1TLS/SSL\s0 handshake is terminated. If \fBverify_callback\fR returns 1,
293 the verification process is continued. If \fBverify_callback\fR always returns
294 1, the \s-1TLS/SSL\s0 handshake will not be terminated with respect to verification
295 failures and the connection will be established. The calling process can
296 however retrieve the error code of the last verification error using
297 \&\fISSL_get_verify_result\fR\|(3) or by maintaining its
298 own error storage managed by \fBverify_callback\fR.
299 .PP
300 If no \fBverify_callback\fR is specified, the default callback will be used.
301 Its return value is identical to \fBpreverify_ok\fR, so that any verification
302 failure will lead to a termination of the \s-1TLS/SSL\s0 handshake with an
303 alert message, if \s-1SSL_VERIFY_PEER\s0 is set.
304 .PP
305 After calling \fISSL_set_post_handshake_auth()\fR, the client will need to add a
306 certificate or certificate callback to its configuration before it can
307 successfully authenticate. This must be called before \fISSL_connect()\fR.
308 .PP
309 \&\fISSL_verify_client_post_handshake()\fR requires that verify flags have been
310 previously set, and that a client sent the post-handshake authentication
311 extension. When the client returns a certificate the verify callback will be
312 invoked. A write operation must take place for the Certificate Request to be
313 sent to the client, this can be done with \fISSL_do_handshake()\fR or \fISSL_write_ex()\fR.
314 Only one certificate request may be outstanding at any time.
315 .PP
316 When post-handshake authentication occurs, a refreshed NewSessionTicket
317 message is sent to the client.
318 .SH "BUGS"
319 .IX Header "BUGS"
320 In client mode, it is not checked whether the \s-1SSL_VERIFY_PEER\s0 flag
321 is set, but whether any flags are set. This can lead to
322 unexpected behaviour if \s-1SSL_VERIFY_PEER\s0 and other flags are not used as
323 required.
324 .SH "RETURN VALUES"
325 .IX Header "RETURN VALUES"
326 The SSL*_set_verify*() functions do not provide diagnostic information.
327 .PP
328 The \fISSL_verify_client_post_handshake()\fR function returns 1 if the request
329 succeeded, and 0 if the request failed. The error stack can be examined
330 to determine the failure reason.
331 .SH "EXAMPLES"
332 .IX Header "EXAMPLES"
333 The following code sequence realizes an example \fBverify_callback\fR function
334 that will always continue the \s-1TLS/SSL\s0 handshake regardless of verification
335 failure, if wished. The callback realizes a verification depth limit with
336 more informational output.
337 .PP
338 All verification errors are printed; information about the certificate chain
339 is printed on request.
340 The example is realized for a server that does allow but not require client
341 certificates.
342 .PP
343 The example makes use of the ex_data technique to store application data
344 into/retrieve application data from the \s-1SSL\s0 structure
345 (see \fICRYPTO_get_ex_new_index\fR\|(3),
346 \&\fISSL_get_ex_data_X509_STORE_CTX_idx\fR\|(3)).
347 .PP
348 .Vb 7
349 \& ...
350 \& typedef struct {
351 \&   int verbose_mode;
352 \&   int verify_depth;
353 \&   int always_continue;
354 \& } mydata_t;
355 \& int mydata_index;
356 \&
357 \& ...
358 \& static int verify_callback(int preverify_ok, X509_STORE_CTX *ctx)
359 \& {
360 \&     char    buf[256];
361 \&     X509   *err_cert;
362 \&     int     err, depth;
363 \&     SSL    *ssl;
364 \&     mydata_t *mydata;
365 \&
366 \&     err_cert = X509_STORE_CTX_get_current_cert(ctx);
367 \&     err = X509_STORE_CTX_get_error(ctx);
368 \&     depth = X509_STORE_CTX_get_error_depth(ctx);
369 \&
370 \&     /*
371 \&      * Retrieve the pointer to the SSL of the connection currently treated
372 \&      * and the application specific data stored into the SSL object.
373 \&      */
374 \&     ssl = X509_STORE_CTX_get_ex_data(ctx, SSL_get_ex_data_X509_STORE_CTX_idx());
375 \&     mydata = SSL_get_ex_data(ssl, mydata_index);
376 \&
377 \&     X509_NAME_oneline(X509_get_subject_name(err_cert), buf, 256);
378 \&
379 \&     /*
380 \&      * Catch a too long certificate chain. The depth limit set using
381 \&      * SSL_CTX_set_verify_depth() is by purpose set to "limit+1" so
382 \&      * that whenever the "depth>verify_depth" condition is met, we
383 \&      * have violated the limit and want to log this error condition.
384 \&      * We must do it here, because the CHAIN_TOO_LONG error would not
385 \&      * be found explicitly; only errors introduced by cutting off the
386 \&      * additional certificates would be logged.
387 \&      */
388 \&     if (depth > mydata\->verify_depth) {
389 \&         preverify_ok = 0;
390 \&         err = X509_V_ERR_CERT_CHAIN_TOO_LONG;
391 \&         X509_STORE_CTX_set_error(ctx, err);
392 \&     }
393 \&     if (!preverify_ok) {
394 \&         printf("verify error:num=%d:%s:depth=%d:%s\en", err,
395 \&                X509_verify_cert_error_string(err), depth, buf);
396 \&     } else if (mydata\->verbose_mode) {
397 \&         printf("depth=%d:%s\en", depth, buf);
398 \&     }
399 \&
400 \&     /*
401 \&      * At this point, err contains the last verification error. We can use
402 \&      * it for something special
403 \&      */
404 \&     if (!preverify_ok && (err == X509_V_ERR_UNABLE_TO_GET_ISSUER_CERT)) {
405 \&         X509_NAME_oneline(X509_get_issuer_name(err_cert), buf, 256);
406 \&         printf("issuer= %s\en", buf);
407 \&     }
408 \&
409 \&     if (mydata\->always_continue)
410 \&         return 1;
411 \&     else
412 \&         return preverify_ok;
413 \& }
414 \& ...
415 \&
416 \& mydata_t mydata;
417 \&
418 \& ...
419 \& mydata_index = SSL_get_ex_new_index(0, "mydata index", NULL, NULL, NULL);
420 \&
421 \& ...
422 \& SSL_CTX_set_verify(ctx, SSL_VERIFY_PEER | SSL_VERIFY_CLIENT_ONCE,
423 \&                    verify_callback);
424 \&
425 \& /*
426 \&  * Let the verify_callback catch the verify_depth error so that we get
427 \&  * an appropriate error in the logfile.
428 \&  */
429 \& SSL_CTX_set_verify_depth(verify_depth + 1);
430 \&
431 \& /*
432 \&  * Set up the SSL specific data into "mydata" and store it into th SSL
433 \&  * structure.
434 \&  */
435 \& mydata.verify_depth = verify_depth; ...
436 \& SSL_set_ex_data(ssl, mydata_index, &mydata);
437 \&
438 \& ...
439 \& SSL_accept(ssl);       /* check of success left out for clarity */
440 \& if (peer = SSL_get_peer_certificate(ssl)) {
441 \&     if (SSL_get_verify_result(ssl) == X509_V_OK) {
442 \&         /* The client sent a certificate which verified OK */
443 \&     }
444 \& }
445 .Ve
446 .SH "SEE ALSO"
447 .IX Header "SEE ALSO"
448 \&\fIssl\fR\|(7), \fISSL_new\fR\|(3),
449 \&\fISSL_CTX_get_verify_mode\fR\|(3),
450 \&\fISSL_get_verify_result\fR\|(3),
451 \&\fISSL_CTX_load_verify_locations\fR\|(3),
452 \&\fISSL_get_peer_certificate\fR\|(3),
453 \&\fISSL_CTX_set_cert_verify_callback\fR\|(3),
454 \&\fISSL_get_ex_data_X509_STORE_CTX_idx\fR\|(3),
455 \&\fISSL_CTX_set_client_cert_cb\fR\|(3),
456 \&\fICRYPTO_get_ex_new_index\fR\|(3)
457 .SH "HISTORY"
458 .IX Header "HISTORY"
459 The \s-1SSL_VERIFY_POST_HANDSHAKE\s0 option, and the \fISSL_verify_client_post_handshake()\fR
460 and \fISSL_set_post_handshake_auth()\fR functions were added in OpenSSL 1.1.1.
461 .SH "COPYRIGHT"
462 .IX Header "COPYRIGHT"
463 Copyright 2000\-2018 The OpenSSL Project Authors. All Rights Reserved.
464 .PP
465 Licensed under the OpenSSL license (the \*(L"License\*(R").  You may not use
466 this file except in compliance with the License.  You can obtain a copy
467 in the file \s-1LICENSE\s0 in the source distribution or at
468 <https://www.openssl.org/source/license.html>.