1SSL_SESSION_GET_EX_DATA(3)          OpenSSL         SSL_SESSION_GET_EX_DATA(3)
2
3
4

NAME

6       SSL_SESSION_set_ex_data, SSL_SESSION_get_ex_data - get and set
7       application specific data on a session
8

SYNOPSIS

10        #include <openssl/ssl.h>
11
12        int SSL_SESSION_set_ex_data(SSL_SESSION *ss, int idx, void *data);
13        void *SSL_SESSION_get_ex_data(const SSL_SESSION *s, int idx);
14

DESCRIPTION

16       SSL_SESSION_set_ex_data() enables an application to store arbitrary
17       application specific data data in an SSL_SESSION structure ss. The
18       index idx should be a value previously returned from a call to
19       CRYPTO_get_ex_new_index(3).
20
21       SSL_SESSION_get_ex_data() retrieves application specific data
22       previously stored in an SSL_SESSION structure s. The idx value should
23       be the same as that used when originally storing the data.
24

RETURN VALUES

26       SSL_SESSION_set_ex_data() returns 1 for success or 0 for failure.
27
28       SSL_SESSION_get_ex_data() returns the previously stored value or NULL
29       on failure. NULL may also be a valid value.
30

SEE ALSO

32       ssl(7), CRYPTO_get_ex_new_index(3)
33
35       Copyright 2017 The OpenSSL Project Authors. All Rights Reserved.
36
37       Licensed under the OpenSSL license (the "License").  You may not use
38       this file except in compliance with the License.  You can obtain a copy
39       in the file LICENSE in the source distribution or at
40       <https://www.openssl.org/source/license.html>.
41
42
43
441.1.1                             2018-09-11        SSL_SESSION_GET_EX_DATA(3)
Impressum