summaryrefslogtreecommitdiff
path: root/src/lib/libcrypto/doc/d2i_X509.pod
diff options
context:
space:
mode:
Diffstat (limited to 'src/lib/libcrypto/doc/d2i_X509.pod')
-rw-r--r--src/lib/libcrypto/doc/d2i_X509.pod14
1 files changed, 7 insertions, 7 deletions
diff --git a/src/lib/libcrypto/doc/d2i_X509.pod b/src/lib/libcrypto/doc/d2i_X509.pod
index 298ec54a4c..e212014ac8 100644
--- a/src/lib/libcrypto/doc/d2i_X509.pod
+++ b/src/lib/libcrypto/doc/d2i_X509.pod
@@ -23,7 +23,7 @@ i2d_X509_fp - X509 encode and decode functions
23The X509 encode and decode routines encode and parse an 23The X509 encode and decode routines encode and parse an
24B<X509> structure, which represents an X509 certificate. 24B<X509> structure, which represents an X509 certificate.
25 25
26d2i_X509() attempts to decode B<len> bytes at B<*in>. If 26d2i_X509() attempts to decode B<len> bytes at B<*in>. If
27successful a pointer to the B<X509> structure is returned. If an error 27successful a pointer to the B<X509> structure is returned. If an error
28occurred then B<NULL> is returned. If B<px> is not B<NULL> then the 28occurred then B<NULL> is returned. If B<px> is not B<NULL> then the
29returned structure is written to B<*px>. If B<*px> is not B<NULL> 29returned structure is written to B<*px>. If B<*px> is not B<NULL>
@@ -36,7 +36,7 @@ i2d_X509() encodes the structure pointed to by B<x> into DER format.
36If B<out> is not B<NULL> is writes the DER encoded data to the buffer 36If B<out> is not B<NULL> is writes the DER encoded data to the buffer
37at B<*out>, and increments it to point after the data just written. 37at B<*out>, and increments it to point after the data just written.
38If the return value is negative an error occurred, otherwise it 38If the return value is negative an error occurred, otherwise it
39returns the length of the encoded data. 39returns the length of the encoded data.
40 40
41For OpenSSL 0.9.7 and later if B<*out> is B<NULL> memory will be 41For OpenSSL 0.9.7 and later if B<*out> is B<NULL> memory will be
42allocated for a buffer and the encoded data written to it. In this 42allocated for a buffer and the encoded data written to it. In this
@@ -194,7 +194,7 @@ happen.
194 194
195=head1 BUGS 195=head1 BUGS
196 196
197In some versions of OpenSSL the "reuse" behaviour of d2i_X509() when 197In some versions of OpenSSL the "reuse" behaviour of d2i_X509() when
198B<*px> is valid is broken and some parts of the reused structure may 198B<*px> is valid is broken and some parts of the reused structure may
199persist if they are not present in the new one. As a result the use 199persist if they are not present in the new one. As a result the use
200of this "reuse" behaviour is strongly discouraged. 200of this "reuse" behaviour is strongly discouraged.
@@ -210,14 +210,14 @@ always succeed.
210 210
211d2i_X509(), d2i_X509_bio() and d2i_X509_fp() return a valid B<X509> structure 211d2i_X509(), d2i_X509_bio() and d2i_X509_fp() return a valid B<X509> structure
212or B<NULL> if an error occurs. The error code that can be obtained by 212or B<NULL> if an error occurs. The error code that can be obtained by
213L<ERR_get_error(3)|ERR_get_error(3)>. 213L<ERR_get_error(3)|ERR_get_error(3)>.
214 214
215i2d_X509() returns the number of bytes successfully encoded or a negative 215i2d_X509() returns the number of bytes successfully encoded or a negative
216value if an error occurs. The error code can be obtained by 216value if an error occurs. The error code can be obtained by
217L<ERR_get_error(3)|ERR_get_error(3)>. 217L<ERR_get_error(3)|ERR_get_error(3)>.
218 218
219i2d_X509_bio() and i2d_X509_fp() return 1 for success and 0 if an error 219i2d_X509_bio() and i2d_X509_fp() return 1 for success and 0 if an error
220occurs The error code can be obtained by L<ERR_get_error(3)|ERR_get_error(3)>. 220occurs The error code can be obtained by L<ERR_get_error(3)|ERR_get_error(3)>.
221 221
222=head1 SEE ALSO 222=head1 SEE ALSO
223 223