1SSL_get_ex_new_index(3) OpenSSL SSL_get_ex_new_index(3)
2
3
4
6 SSL_get_ex_new_index, SSL_set_ex_data, SSL_get_ex_data - internal
7 application specific data functions
8
10 #include <openssl/ssl.h>
11
12 int SSL_get_ex_new_index(long argl, void *argp,
13 CRYPTO_EX_new *new_func,
14 CRYPTO_EX_dup *dup_func,
15 CRYPTO_EX_free *free_func);
16
17 int SSL_set_ex_data(SSL *ssl, int idx, void *arg);
18
19 void *SSL_get_ex_data(const SSL *ssl, int idx);
20
21 typedef int new_func(void *parent, void *ptr, CRYPTO_EX_DATA *ad,
22 int idx, long argl, void *argp);
23 typedef void free_func(void *parent, void *ptr, CRYPTO_EX_DATA *ad,
24 int idx, long argl, void *argp);
25 typedef int dup_func(CRYPTO_EX_DATA *to, CRYPTO_EX_DATA *from, void *from_d,
26 int idx, long argl, void *argp);
27
29 Several OpenSSL structures can have application specific data attached
30 to them. These functions are used internally by OpenSSL to manipulate
31 application specific data attached to a specific structure.
32
33 SSL_get_ex_new_index() is used to register a new index for application
34 specific data.
35
36 SSL_set_ex_data() is used to store application data at arg for idx into
37 the ssl object.
38
39 SSL_get_ex_data() is used to retrieve the information for idx from ssl.
40
41 A detailed description for the *_get_ex_new_index() functionality can
42 be found in RSA_get_ex_new_index(3). The *_get_ex_data() and
43 *_set_ex_data() functionality is described in CRYPTO_set_ex_data(3).
44
46 An example on how to use the functionality is included in the example
47 verify_callback() in SSL_CTX_set_verify(3).
48
50 ssl(3), RSA_get_ex_new_index(3), CRYPTO_set_ex_data(3),
51 SSL_CTX_set_verify(3)
52
53
54
550.9.8b 2005-03-30 SSL_get_ex_new_index(3)