summaryrefslogtreecommitdiff
path: root/src/lib/libcrypto/man/d2i_X509.3
diff options
context:
space:
mode:
Diffstat (limited to 'src/lib/libcrypto/man/d2i_X509.3')
-rw-r--r--src/lib/libcrypto/man/d2i_X509.318
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
137structure and an attempt is made to reuse it. 139structure and an attempt is made to reuse it.
138This "reuse" capability is present for historical compatibility, 140This "reuse" capability is present for historical compatibility,
139but its use is strongly discouraged, see the 141but its use is strongly discouraged; see the
140.Sx BUGS 142.Sx BUGS
141and 143and
142.Sx RETURN VALUES 144.Sx RETURN VALUES
@@ -223,7 +225,7 @@ The letters
223.Sy i 225.Sy i
224and 226and
225.Sy d 227.Sy d
226in for example 228in, for example,
227.Fn i2d_X509 229.Fn i2d_X509
228stand for "internal" (that is an internal C structure) and "DER", 230stand for "internal" (that is an internal C structure) and "DER",
229so that 231so that
@@ -264,8 +266,8 @@ See the
264section for some common errors. 266section for some common errors.
265.Pp 267.Pp
266The reason for the auto increment behaviour is to reflect a typical 268The reason for the auto increment behaviour is to reflect a typical
267usage of ASN1 functions: after one structure is encoded or decoded, 269usage of ASN.1 functions: after one structure is encoded or decoded,
268another will processed after it. 270another 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;
308i2d_X509(x, &p); 310i2d_X509(x, &p);
309.Ed 311.Ed
310.Pp 312.Pp
311If you are using OpenSSL 0.9.7 or later then this can be simplified to: 313Using OpenSSL 0.9.7 or later this can be simplified to:
312.Bd -literal -offset indent 314.Bd -literal -offset indent
313int len; 315int len;
314unsigned char *buf; 316unsigned char *buf;
@@ -386,7 +388,7 @@ may well crash.
386The auto allocation feature (setting 388The auto allocation feature (setting
387.Fa buf 389.Fa buf
388to 390to
389.Dv NULL 391.Dv NULL )
390only works on OpenSSL 0.9.7 and later. 392only works on OpenSSL 0.9.7 and later.
391Attempts to use it on earlier versions will typically cause a 393Attempts to use it on earlier versions will typically cause a
392segmentation violation. 394segmentation violation.