1SSL_SESSION_get_ex_new_index(3)     OpenSSL    SSL_SESSION_get_ex_new_index(3)
2
3
4

NAME

6       SSL_SESSION_get_ex_new_index, SSL_SESSION_set_ex_data,
7       SSL_SESSION_get_ex_data - internal application specific data functions
8

SYNOPSIS

10        #include <openssl/ssl.h>
11
12        int SSL_SESSION_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_SESSION_set_ex_data(SSL_SESSION *session, int idx, void *arg);
18
19        void *SSL_SESSION_get_ex_data(const SSL_SESSION *session, 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

DESCRIPTION

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_SESSION_get_ex_new_index() is used to register a new index for
34       application specific data.
35
36       SSL_SESSION_set_ex_data() is used to store application data at arg for
37       idx into the session object.
38
39       SSL_SESSION_get_ex_data() is used to retrieve the information for idx
40       from session.
41
42       A detailed description for the *_get_ex_new_index() functionality can
43       be found in RSA_get_ex_new_index(3).  The *_get_ex_data() and
44       *_set_ex_data() functionality is described in CRYPTO_set_ex_data(3).
45

WARNINGS

47       The application data is only maintained for sessions held in memory.
48       The application data is not included when dumping the session with
49       i2d_SSL_SESSION() (and all functions indirectly calling the dump
50       functions like PEM_write_SSL_SESSION() and PEM_write_bio_SSL_SESSION())
51       and can therefore not be restored.
52

SEE ALSO

54       ssl(3), RSA_get_ex_new_index(3), CRYPTO_set_ex_data(3)
55
56
57
581.0.2o                            2018-03-27   SSL_SESSION_get_ex_new_index(3)
Impressum