Home | History | Annotate | Line # | Download | only in man3
      1      1.1  christos =pod
      2      1.1  christos 
      3      1.1  christos =head1 NAME
      4      1.1  christos 
      5      1.1  christos d2i_SSL_SESSION, i2d_SSL_SESSION - convert SSL_SESSION object from/to ASN1 representation
      6      1.1  christos 
      7      1.1  christos =head1 SYNOPSIS
      8      1.1  christos 
      9      1.1  christos  #include <openssl/ssl.h>
     10      1.1  christos 
     11      1.1  christos  SSL_SESSION *d2i_SSL_SESSION(SSL_SESSION **a, const unsigned char **pp,
     12      1.1  christos                               long length);
     13      1.1  christos  int i2d_SSL_SESSION(SSL_SESSION *in, unsigned char **pp);
     14      1.1  christos 
     15      1.1  christos =head1 DESCRIPTION
     16      1.1  christos 
     17      1.1  christos These functions decode and encode an SSL_SESSION object.
     18      1.1  christos For encoding details see L<d2i_X509(3)>.
     19      1.1  christos 
     20      1.1  christos SSL_SESSION objects keep internal link information about the session cache
     21      1.1  christos list, when being inserted into one SSL_CTX object's session cache.
     22      1.1  christos One SSL_SESSION object, regardless of its reference count, must therefore
     23      1.1  christos only be used with one SSL_CTX object (and the SSL objects created
     24      1.1  christos from this SSL_CTX object).
     25      1.1  christos 
     26      1.1  christos =head1 RETURN VALUES
     27      1.1  christos 
     28      1.1  christos d2i_SSL_SESSION() returns a pointer to the newly allocated SSL_SESSION
     29      1.1  christos object. In case of failure the NULL-pointer is returned and the error message
     30      1.1  christos can be retrieved from the error stack.
     31      1.1  christos 
     32      1.1  christos i2d_SSL_SESSION() returns the size of the ASN1 representation in bytes.
     33      1.1  christos When the session is not valid, B<0> is returned and no operation is performed.
     34      1.1  christos 
     35      1.1  christos =head1 SEE ALSO
     36      1.1  christos 
     37      1.1  christos L<ssl(7)>, L<SSL_SESSION_free(3)>,
     38      1.1  christos L<SSL_CTX_sess_set_get_cb(3)>,
     39      1.1  christos L<d2i_X509(3)>
     40      1.1  christos 
     41      1.1  christos =head1 COPYRIGHT
     42      1.1  christos 
     43      1.1  christos Copyright 2001-2016 The OpenSSL Project Authors. All Rights Reserved.
     44      1.1  christos 
     45  1.1.1.2  christos Licensed under the Apache License 2.0 (the "License").  You may not use
     46      1.1  christos this file except in compliance with the License.  You can obtain a copy
     47      1.1  christos in the file LICENSE in the source distribution or at
     48      1.1  christos L<https://www.openssl.org/source/license.html>.
     49      1.1  christos 
     50      1.1  christos =cut
     51