diff options
Diffstat (limited to 'src/lib/libcrypto/man/d2i_X509.3')
-rw-r--r-- | src/lib/libcrypto/man/d2i_X509.3 | 18 |
1 files changed, 10 insertions, 8 deletions
diff --git a/src/lib/libcrypto/man/d2i_X509.3 b/src/lib/libcrypto/man/d2i_X509.3 index 916fdb8005..7ca3abf2d9 100644 --- a/src/lib/libcrypto/man/d2i_X509.3 +++ b/src/lib/libcrypto/man/d2i_X509.3 | |||
@@ -1,4 +1,4 @@ | |||
1 | .\" $OpenBSD: d2i_X509.3,v 1.3 2016/12/05 20:39:08 schwarze Exp $ | 1 | .\" $OpenBSD: d2i_X509.3,v 1.4 2016/12/08 20:22:08 jmc Exp $ |
2 | .\" OpenSSL 94480b57 Sep 12 23:34:41 2009 +0000 | 2 | .\" OpenSSL 94480b57 Sep 12 23:34:41 2009 +0000 |
3 | .\" | 3 | .\" |
4 | .\" This file was written by Dr. Stephen Henson <steve@openssl.org>. | 4 | .\" This file was written by Dr. Stephen Henson <steve@openssl.org>. |
@@ -49,12 +49,14 @@ | |||
49 | .\" ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED | 49 | .\" ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED |
50 | .\" OF THE POSSIBILITY OF SUCH DAMAGE. | 50 | .\" OF THE POSSIBILITY OF SUCH DAMAGE. |
51 | .\" | 51 | .\" |
52 | .Dd $Mdocdate: December 5 2016 $ | 52 | .Dd $Mdocdate: December 8 2016 $ |
53 | .Dt D2I_X509 3 | 53 | .Dt D2I_X509 3 |
54 | .Os | 54 | .Os |
55 | .Sh NAME | 55 | .Sh NAME |
56 | .Nm d2i_X509 , | 56 | .Nm d2i_X509 , |
57 | .Nm d2i_X509_AUX , | ||
57 | .Nm i2d_X509 , | 58 | .Nm i2d_X509 , |
59 | .Nm i2d_X509_AUX , | ||
58 | .Nm d2i_X509_bio , | 60 | .Nm d2i_X509_bio , |
59 | .Nm d2i_X509_fp , | 61 | .Nm d2i_X509_fp , |
60 | .Nm i2d_X509_bio , | 62 | .Nm i2d_X509_bio , |
@@ -136,7 +138,7 @@ contains a valid | |||
136 | .Vt X509 | 138 | .Vt X509 |
137 | structure and an attempt is made to reuse it. | 139 | structure and an attempt is made to reuse it. |
138 | This "reuse" capability is present for historical compatibility, | 140 | This "reuse" capability is present for historical compatibility, |
139 | but its use is strongly discouraged, see the | 141 | but its use is strongly discouraged; see the |
140 | .Sx BUGS | 142 | .Sx BUGS |
141 | and | 143 | and |
142 | .Sx RETURN VALUES | 144 | .Sx RETURN VALUES |
@@ -223,7 +225,7 @@ The letters | |||
223 | .Sy i | 225 | .Sy i |
224 | and | 226 | and |
225 | .Sy d | 227 | .Sy d |
226 | in for example | 228 | in, for example, |
227 | .Fn i2d_X509 | 229 | .Fn i2d_X509 |
228 | stand for "internal" (that is an internal C structure) and "DER", | 230 | stand for "internal" (that is an internal C structure) and "DER", |
229 | so that | 231 | so that |
@@ -264,8 +266,8 @@ See the | |||
264 | section for some common errors. | 266 | section for some common errors. |
265 | .Pp | 267 | .Pp |
266 | The reason for the auto increment behaviour is to reflect a typical | 268 | The reason for the auto increment behaviour is to reflect a typical |
267 | usage of ASN1 functions: after one structure is encoded or decoded, | 269 | usage of ASN.1 functions: after one structure is encoded or decoded, |
268 | another will processed after it. | 270 | another will be processed after it. |
269 | .Sh RETURN VALUES | 271 | .Sh RETURN VALUES |
270 | .Fn d2i_X509 , | 272 | .Fn d2i_X509 , |
271 | .Fn d2i_X509_bio , | 273 | .Fn d2i_X509_bio , |
@@ -308,7 +310,7 @@ p = buf; | |||
308 | i2d_X509(x, &p); | 310 | i2d_X509(x, &p); |
309 | .Ed | 311 | .Ed |
310 | .Pp | 312 | .Pp |
311 | If you are using OpenSSL 0.9.7 or later then this can be simplified to: | 313 | Using OpenSSL 0.9.7 or later this can be simplified to: |
312 | .Bd -literal -offset indent | 314 | .Bd -literal -offset indent |
313 | int len; | 315 | int len; |
314 | unsigned char *buf; | 316 | unsigned char *buf; |
@@ -386,7 +388,7 @@ may well crash. | |||
386 | The auto allocation feature (setting | 388 | The auto allocation feature (setting |
387 | .Fa buf | 389 | .Fa buf |
388 | to | 390 | to |
389 | .Dv NULL | 391 | .Dv NULL ) |
390 | only works on OpenSSL 0.9.7 and later. | 392 | only works on OpenSSL 0.9.7 and later. |
391 | Attempts to use it on earlier versions will typically cause a | 393 | Attempts to use it on earlier versions will typically cause a |
392 | segmentation violation. | 394 | segmentation violation. |