Revision aa3b4b4d deps/openssl/openssl/doc/ssl/d2i_SSL_SESSION.pod

View differences:

deps/openssl/openssl/doc/ssl/d2i_SSL_SESSION.pod
48 48
amount of space should be obtained by first calling i2d_SSL_SESSION() with
49 49
B<pp=NULL>, and obtain the size needed, then allocate the memory and
50 50
call i2d_SSL_SESSION() again.
51
Note that this will advance the value contained in B<*pp> so it is necessary
52
to save a copy of the original allocation.
53
For example:
54
 int i,j;
55
 char *p, *temp;
56
 i = i2d_SSL_SESSION(sess, NULL);
57
 p = temp = malloc(i);
58
 j = i2d_SSL_SESSION(sess, &temp);
59
 assert(i == j);
60
 assert(p+i == temp);
51 61

  
52 62
=head1 RETURN VALUES
53 63

  

Also available in: Unified diff