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