summaryrefslogtreecommitdiff
path: root/src/lib/libcrypto/man/SMIME_write_CMS.3
diff options
context:
space:
mode:
Diffstat (limited to '')
-rw-r--r--src/lib/libcrypto/man/SMIME_write_CMS.350
1 files changed, 22 insertions, 28 deletions
diff --git a/src/lib/libcrypto/man/SMIME_write_CMS.3 b/src/lib/libcrypto/man/SMIME_write_CMS.3
index c516b79250..ddb71e98e2 100644
--- a/src/lib/libcrypto/man/SMIME_write_CMS.3
+++ b/src/lib/libcrypto/man/SMIME_write_CMS.3
@@ -1,4 +1,4 @@
1.\" $OpenBSD: SMIME_write_CMS.3,v 1.2 2019/08/11 12:46:38 schwarze Exp $ 1.\" $OpenBSD: SMIME_write_CMS.3,v 1.3 2019/08/18 13:02:37 schwarze Exp $
2.\" full merge up to: OpenSSL 99d63d46 Oct 26 13:56:48 2016 -0400 2.\" full merge up to: OpenSSL 99d63d46 Oct 26 13:56:48 2016 -0400
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>.
@@ -48,7 +48,7 @@
48.\" ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED 48.\" ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED
49.\" OF THE POSSIBILITY OF SUCH DAMAGE. 49.\" OF THE POSSIBILITY OF SUCH DAMAGE.
50.\" 50.\"
51.Dd $Mdocdate: August 11 2019 $ 51.Dd $Mdocdate: August 18 2019 $
52.Dt SMIME_WRITE_CMS 3 52.Dt SMIME_WRITE_CMS 3
53.Os 53.Os
54.Sh NAME 54.Sh NAME
@@ -65,38 +65,32 @@
65.Fc 65.Fc
66.Sh DESCRIPTION 66.Sh DESCRIPTION
67.Fn SMIME_write_CMS 67.Fn SMIME_write_CMS
68adds the appropriate MIME headers to a CMS structure to produce an 68adds the appropriate MIME headers to the
69S/MIME message.
70.Pp
71.Fa out
72is the
73.Vt BIO
74to write the data to.
75.Fa cms 69.Fa cms
76is the appropriate 70structure to produce an S/MIME message and writes it to
77.Vt CMS_ContentInfo 71.Fa out .
78structure. 72If streaming is enabled, the content must be supplied in the
79If streaming is enabled, then the content must be supplied in the
80.Fa data 73.Fa data
81argument. 74argument.
82.Fa flags
83is an optional set of flags.
84.Pp 75.Pp
85The following flags can be passed in the 76The following
86.Fa flags 77.Fa flags
87parameter: 78can be passed:
88.Bl -tag -width Ds 79.Bl -tag -width Ds
89.It Dv CMS_DETACHED 80.It Dv CMS_DETACHED
90Use cleartext signing. 81Use cleartext signing.
91This option only makes sense for SignedData where 82This option only makes sense if
83.Fa cms
84is of the type
85.Vt SignedData
86and
92.Dv CMS_DETACHED 87.Dv CMS_DETACHED
93is also set when 88was also set when it was created with
94.Xr CMS_sign 3 89.Xr CMS_sign 3 .
95is called.
96.Pp 90.Pp
97If cleartext signing is used and 91If
98.Dv CMS_STREAM 92.Dv CMS_STREAM
99is not set, then the data must be read twice: 93is not set, the data must be read twice:
100once to compute the signature in 94once to compute the signature in
101.Xr CMS_sign 3 95.Xr CMS_sign 3
102and once to output the S/MIME message. 96and once to output the S/MIME message.
@@ -109,12 +103,12 @@ is also set.
109Perform streaming. 103Perform streaming.
110This flag should only be set if 104This flag should only be set if
111.Dv CMS_STREAM 105.Dv CMS_STREAM
112was also set in the previous call to a 106was also passed to the function that created
113.Vt CMS_ContentInfo 107.Fa cms .
114creation function.
115.Pp 108.Pp
116If streaming is performed, the content is output in BER format using 109The content is output in BER format using indefinite length
117indefinite length constructed encoding except in the case of signed data 110constructed encoding except in the case of
111.Vt SignedData
118with detached content where the content is absent and DER format is 112with detached content where the content is absent and DER format is
119used. 113used.
120.El 114.El