Sortix main manual
This manual documents Sortix main. You can instead view this document in the latest official manual.
NAME
d2i_SSL_SESSION, i2d_SSL_SESSION — convert SSL_SESSION object from/to ASN1 representationSYNOPSIS
#include <openssl/ssl.h>d2i_SSL_SESSION(SSL_SESSION **a, const unsigned char **pp, long length);
i2d_SSL_SESSION(SSL_SESSION *in, unsigned char **pp);
DESCRIPTION
d2i_SSL_SESSION() transforms the external ASN1 representation of an SSL/TLS session, stored as binary data at location pp with length length, into an SSL_SESSION object.char *p, *pp; int elen, len; elen = i2d_SSL_SESSION(sess, NULL); p = pp = malloc(elen); if (p != NULL) { len = i2d_SSL_SESSION(sess, &pp); assert(elen == len); assert(p + len == pp); }