Here's a patch for d2i_SSL_SESSION.pod, pointing out a pitfall when using 
i2d_SSL_SESSION
diff -U3 -r1.1.1.2 d2i_SSL_SESSION.pod
--- doc/ssl/d2i_SSL_SESSION.pod	2002/07/30 18:26:08	1.1.1.2
+++ doc/ssl/d2i_SSL_SESSION.pod	2004/05/05 22:06:44
@@ -20,7 +20,10 @@
 i2d_SSL_SESSION() transforms the SSL_SESSION object B<in> into the ASN1
 representation and stores it into the memory location pointed to by B<pp>.
 The length of the resulting ASN1 representation is returned. If B<pp> is
-the NULL pointer, only the length is calculated and returned.
+the NULL pointer, only the length is calculated and returned.  If B<pp> is
+not the NULL pointer, it is adjusted by the length of the ASN1
+representation that was written.  This means that B<pp> will be clobbered,
+so save a copy of it.
 
 =head1 NOTES
 

Reply via email to