1SSL_CTX_SET_EX_DATA(3) OpenSSL SSL_CTX_SET_EX_DATA(3)
2
3
4
6 SSL_CTX_get_ex_data, SSL_CTX_set_ex_data, SSL_get_ex_data,
7 SSL_set_ex_data - Store and retrieve extra data from the SSL_CTX, SSL
8 or SSL_SESSION
9
11 #include <openssl/ssl.h>
12
13 void *SSL_CTX_get_ex_data(const SSL_CTX *s, int idx);
14
15 int SSL_CTX_set_ex_data(SSL_CTX *s, int idx, void *arg);
16
17 void *SSL_get_ex_data(const SSL *s, int idx);
18
19 int SSL_set_ex_data(SSL *s, int idx, void *arg);
20
22 SSL*_set_ex_data() functions can be used to store arbitrary user data
23 into the SSL_CTX, or SSL object. The user must supply a unique index
24 which they can subsequently use to retrieve the data using
25 SSL*_get_ex_data().
26
27 For more detailed information see CRYPTO_get_ex_data(3) and
28 CRYPTO_set_ex_data(3) which implement these functions and
29 CRYPTO_get_ex_new_index(3) for generating a unique index.
30
32 The SSL*_set_ex_data() functions return 1 if the item is successfully
33 stored and 0 if it is not. The SSL*_get_ex_data() functions return the
34 ex_data pointer if successful, otherwise NULL.
35
37 CRYPTO_get_ex_data(3), CRYPTO_set_ex_data(3),
38 CRYPTO_get_ex_new_index(3)
39
41 Copyright 2017 The OpenSSL Project Authors. All Rights Reserved.
42
43 Licensed under the OpenSSL license (the "License"). You may not use
44 this file except in compliance with the License. You can obtain a copy
45 in the file LICENSE in the source distribution or at
46 <https://www.openssl.org/source/license.html>.
47
48
49
501.1.1g 2020-04-23 SSL_CTX_SET_EX_DATA(3)