summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorschwarze <schwarze@openbsd.org>2016-12-26 19:15:47 +0000
committerschwarze <schwarze@openbsd.org>2016-12-26 19:15:47 +0000
commitfba79222692a7b89538124ea00e09e3946eb8ef4 (patch)
tree2af91d2cf18ba2a12170c701be4d94c80b3f9ecc
parentWrite the missing d2i_PKCS7(3) manual page from scratch. (diff)
downloadwireguard-openbsd-fba79222692a7b89538124ea00e09e3946eb8ef4.tar.xz
wireguard-openbsd-fba79222692a7b89538124ea00e09e3946eb8ef4.zip
also document the weird i2d_PKCS7_NDEF(3)
listed in <openssl/pkcs7.h> and OpenSSL doc/man3/d2i_X509.pod
-rw-r--r--lib/libcrypto/man/d2i_PKCS7.315
1 files changed, 14 insertions, 1 deletions
diff --git a/lib/libcrypto/man/d2i_PKCS7.3 b/lib/libcrypto/man/d2i_PKCS7.3
index a9bc4ba3810..e366642ccaa 100644
--- a/lib/libcrypto/man/d2i_PKCS7.3
+++ b/lib/libcrypto/man/d2i_PKCS7.3
@@ -1,4 +1,4 @@
-.\" $OpenBSD: d2i_PKCS7.3,v 1.1 2016/12/26 18:52:51 schwarze Exp $
+.\" $OpenBSD: d2i_PKCS7.3,v 1.2 2016/12/26 19:15:47 schwarze Exp $
.\"
.\" Copyright (c) 2016 Ingo Schwarze <schwarze@openbsd.org>
.\"
@@ -24,6 +24,7 @@
.Nm i2d_PKCS7_bio ,
.Nm d2i_PKCS7_fp ,
.Nm i2d_PKCS7_fp ,
+.Nm i2d_PKCS7_NDEF ,
.Nm d2i_PKCS7_DIGEST ,
.Nm i2d_PKCS7_DIGEST ,
.Nm d2i_PKCS7_ENCRYPT ,
@@ -77,6 +78,11 @@
.Fa "FILE *out_fp"
.Fa "PKCS7 *val_in"
.Fc
+.Ft int
+.Fo i2d_PKCS7_NDEF
+.Fa "PKCS7 *val_in"
+.Fa "unsigned char **ber_out"
+.Fc
.Ft PKCS7_DIGEST *
.Fo d2i_PKCS7_DIGEST
.Fa "PKCS7_DIGEST **val_out"
@@ -198,6 +204,12 @@ or
.Vt FILE
pointer.
.Pp
+.Fn i2d_PKCS7_NDEF
+is similar to
+.Fn i2d_PKCS7
+except that it encodes using BER rather than DER, using the indefinite
+length form where appropriate.
+.Pp
.Fn d2i_PKCS7_DIGEST
and
.Fn i2d_PKCS7_DIGEST
@@ -286,6 +298,7 @@ return an object of the respective type or
if an error occurs.
.Pp
.Fn i2d_PKCS7 ,
+.Fn i2d_PKCS7_NDEF ,
.Fn i2d_PKCS7_DIGEST ,
.Fn i2d_PKCS7_ENCRYPT ,
.Fn i2d_PKCS7_ENC_CONTENT ,