1SSL_SET_RETRY_VERIFY(3ossl)         OpenSSL        SSL_SET_RETRY_VERIFY(3ossl)
2
3
4

NAME

6       SSL_set_retry_verify - indicate that certificate verification should be
7       retried
8

SYNOPSIS

10        #include <openssl/ssl.h>
11
12        int SSL_set_retry_verify(SSL *ssl);
13

DESCRIPTION

15       SSL_set_retry_verify() should be called from the certificate
16       verification callback on a client when the application wants to
17       indicate that the handshake should be suspended and the control should
18       be returned to the application.  SSL_want_retry_verify(3) will return 1
19       as a consequence until the handshake is resumed again by the
20       application, retrying the verification step.
21
22       Please refer to SSL_CTX_set_cert_verify_callback(3) for further
23       details.
24

NOTES

26       The effect of calling SSL_set_retry_verify() outside of the certificate
27       verification callback on the client side is undefined.
28

RETURN VALUES

30       SSL_set_retry verify() returns 1 on success, 0 otherwise.
31

EXAMPLES

33       The following code snippet shows how to obtain the SSL object
34       associated with the X509_STORE_CTX to call the SSL_set_retry_verify()
35       function:
36
37           int idx = SSL_get_ex_data_X509_STORE_CTX_idx();
38           SSL *ssl;
39
40           /* this should not happen but check anyway */
41           if (idx < 0
42               || (ssl = X509_STORE_CTX_get_ex_data(ctx, idx)) == NULL)
43               return 0;
44
45           if (/* we need to retry verification callback */)
46               return SSL_set_retry_verify(ssl);
47
48           /* do normal processing of the verification callback */
49

SEE ALSO

51       ssl(7), SSL_connect(3), SSL_CTX_set_cert_verify_callback(3),
52       SSL_want_retry_verify(3)
53

HISTORY

55       SSL_set_retry_verify() was added in OpenSSL 3.0.2 to replace backwards
56       incompatible handling of a negative return value from the verification
57       callback.
58
60       Copyright 2022 The OpenSSL Project Authors. All Rights Reserved.
61
62       Licensed under the Apache License 2.0 (the "License").  You may not use
63       this file except in compliance with the License.  You can obtain a copy
64       in the file LICENSE in the source distribution or at
65       <https://www.openssl.org/source/license.html>.
66
67
68
693.0.5                             2022-11-01       SSL_SET_RETRY_VERIFY(3ossl)
Impressum