5 SSL_SESSION_set_ex_data,
6 SSL_SESSION_get_ex_data
7 - get and set application specific data on a session
11 #include <openssl/ssl.h>
13 int SSL_SESSION_set_ex_data(SSL_SESSION *ss, int idx, void *data);
14 void *SSL_SESSION_get_ex_data(const SSL_SESSION *s, int idx);
18 SSL_SESSION_set_ex_data() enables an application to store arbitrary application
19 specific data B<data> in an SSL_SESSION structure B<ss>. The index B<idx> should
20 be a value previously returned from a call to L<CRYPTO_get_ex_new_index(3)>.
22 SSL_SESSION_get_ex_data() retrieves application specific data previously stored
23 in an SSL_SESSION structure B<s>. The B<idx> value should be the same as that
24 used when originally storing the data.
28 SSL_SESSION_set_ex_data() returns 1 for success or 0 for failure.
30 SSL_SESSION_get_ex_data() returns the previously stored value or NULL on
31 failure. NULL may also be a valid value.
36 L<CRYPTO_get_ex_new_index(3)>
40 Copyright 2017 The OpenSSL Project Authors. All Rights Reserved.
42 Licensed under the OpenSSL license (the "License"). You may not use
43 this file except in compliance with the License. You can obtain a copy
44 in the file LICENSE in the source distribution or at
45 L<https://www.openssl.org/source/license.html>.