summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--src/lib/libcrypto/man/SMIME_write_PKCS7.342
1 files changed, 39 insertions, 3 deletions
diff --git a/src/lib/libcrypto/man/SMIME_write_PKCS7.3 b/src/lib/libcrypto/man/SMIME_write_PKCS7.3
index 4257a89018..c1a9f051d0 100644
--- a/src/lib/libcrypto/man/SMIME_write_PKCS7.3
+++ b/src/lib/libcrypto/man/SMIME_write_PKCS7.3
@@ -1,7 +1,24 @@
1.\" $OpenBSD: SMIME_write_PKCS7.3,v 1.8 2021/12/13 17:24:39 schwarze Exp $ 1.\" $OpenBSD: SMIME_write_PKCS7.3,v 1.9 2021/12/14 15:46:48 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 is a derived work.
5.\" The changes are covered by the following Copyright and license:
6.\"
7.\" Copyright (c) 2021 Ingo Schwarze <schwarze@openbsd.org>
8.\"
9.\" Permission to use, copy, modify, and distribute this software for any
10.\" purpose with or without fee is hereby granted, provided that the above
11.\" copyright notice and this permission notice appear in all copies.
12.\"
13.\" THE SOFTWARE IS PROVIDED "AS IS" AND THE AUTHOR DISCLAIMS ALL WARRANTIES
14.\" WITH REGARD TO THIS SOFTWARE INCLUDING ALL IMPLIED WARRANTIES OF
15.\" MERCHANTABILITY AND FITNESS. IN NO EVENT SHALL THE AUTHOR BE LIABLE FOR
16.\" ANY SPECIAL, DIRECT, INDIRECT, OR CONSEQUENTIAL DAMAGES OR ANY DAMAGES
17.\" WHATSOEVER RESULTING FROM LOSS OF USE, DATA OR PROFITS, WHETHER IN AN
18.\" ACTION OF CONTRACT, NEGLIGENCE OR OTHER TORTIOUS ACTION, ARISING OUT OF
19.\" OR IN CONNECTION WITH THE USE OR PERFORMANCE OF THIS SOFTWARE.
20.\"
21.\" The original file was written by Dr. Stephen Henson <steve@openssl.org>.
5.\" Copyright (c) 2002, 2003, 2006, 2007, 2015 The OpenSSL Project. 22.\" Copyright (c) 2002, 2003, 2006, 2007, 2015 The OpenSSL Project.
6.\" All rights reserved. 23.\" All rights reserved.
7.\" 24.\"
@@ -49,7 +66,7 @@
49.\" ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED 66.\" ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED
50.\" OF THE POSSIBILITY OF SUCH DAMAGE. 67.\" OF THE POSSIBILITY OF SUCH DAMAGE.
51.\" 68.\"
52.Dd $Mdocdate: December 13 2021 $ 69.Dd $Mdocdate: December 14 2021 $
53.Dt SMIME_WRITE_PKCS7 3 70.Dt SMIME_WRITE_PKCS7 3
54.Os 71.Os
55.Sh NAME 72.Sh NAME
@@ -115,6 +132,25 @@ was also set in the previous call to
115or 132or
116.Xr PKCS7_encrypt 3 . 133.Xr PKCS7_encrypt 3 .
117.Pp 134.Pp
135The bit
136.Dv SMIME_OLDMIME
137is inverted before passing on the
138.Fa flags
139to
140.Xr SMIME_write_ASN1 3 .
141Consequently, if this bit is set in the
142.Fa flags
143argument,
144.Qq application/pkcs7-mime
145or
146.Qq application/pkcs7-signature
147is used in Content-Type headers.
148Otherwise,
149.Qq application/x-pkcs7-mime
150or
151.Qq application/x-pkcs7-signature
152is used.
153.Pp
118If cleartext signing is being used and 154If cleartext signing is being used and
119.Dv PKCS7_STREAM 155.Dv PKCS7_STREAM
120is not set, then the data must be read twice: once to compute the 156is not set, then the data must be read twice: once to compute the