1D2I_SSL_SESSION(3)                  OpenSSL                 D2I_SSL_SESSION(3)
2
3
4

NAME

6       d2i_SSL_SESSION, i2d_SSL_SESSION - convert SSL_SESSION object from/to
7       ASN1 representation
8

SYNOPSIS

10        #include <openssl/ssl.h>
11
12        SSL_SESSION *d2i_SSL_SESSION(SSL_SESSION **a, const unsigned char **pp,
13                                     long length);
14        int i2d_SSL_SESSION(SSL_SESSION *in, unsigned char **pp);
15

DESCRIPTION

17       These functions decode and encode an SSL_SESSION object.  For encoding
18       details see d2i_X509(3).
19
20       SSL_SESSION objects keep internal link information about the session
21       cache list, when being inserted into one SSL_CTX object's session
22       cache.  One SSL_SESSION object, regardless of its reference count, must
23       therefore only be used with one SSL_CTX object (and the SSL objects
24       created from this SSL_CTX object).
25

RETURN VALUES

27       d2i_SSL_SESSION() returns a pointer to the newly allocated SSL_SESSION
28       object. In case of failure the NULL-pointer is returned and the error
29       message can be retrieved from the error stack.
30
31       i2d_SSL_SESSION() returns the size of the ASN1 representation in bytes.
32       When the session is not valid, 0 is returned and no operation is
33       performed.
34

SEE ALSO

36       ssl(7), SSL_SESSION_free(3), SSL_CTX_sess_set_get_cb(3), d2i_X509(3)
37
39       Copyright 2001-2016 The OpenSSL Project Authors. All Rights Reserved.
40
41       Licensed under the OpenSSL license (the "License").  You may not use
42       this file except in compliance with the License.  You can obtain a copy
43       in the file LICENSE in the source distribution or at
44       <https://www.openssl.org/source/license.html>.
45
46
47
481.1.1q                            2022-07-21                D2I_SSL_SESSION(3)
Impressum