diff options
author | schwarze <> | 2021-12-14 15:46:48 +0000 |
---|---|---|
committer | schwarze <> | 2021-12-14 15:46:48 +0000 |
commit | b0ded7e0f27d6bb0af75894e53b0045e7c362f7b (patch) | |
tree | 60dff2454d4b93098a7fe0e4d14f31a9a1278c5b /src/lib | |
parent | 6a3f8aa0e1091c2d05c01003b06d7048b1d53522 (diff) | |
download | openbsd-b0ded7e0f27d6bb0af75894e53b0045e7c362f7b.tar.gz openbsd-b0ded7e0f27d6bb0af75894e53b0045e7c362f7b.tar.bz2 openbsd-b0ded7e0f27d6bb0af75894e53b0045e7c362f7b.zip |
document the very quirky behaviour of the SMIME_OLDMIME flag
Diffstat (limited to 'src/lib')
-rw-r--r-- | src/lib/libcrypto/man/SMIME_write_PKCS7.3 | 42 |
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 | |||
115 | or | 132 | or |
116 | .Xr PKCS7_encrypt 3 . | 133 | .Xr PKCS7_encrypt 3 . |
117 | .Pp | 134 | .Pp |
135 | The bit | ||
136 | .Dv SMIME_OLDMIME | ||
137 | is inverted before passing on the | ||
138 | .Fa flags | ||
139 | to | ||
140 | .Xr SMIME_write_ASN1 3 . | ||
141 | Consequently, if this bit is set in the | ||
142 | .Fa flags | ||
143 | argument, | ||
144 | .Qq application/pkcs7-mime | ||
145 | or | ||
146 | .Qq application/pkcs7-signature | ||
147 | is used in Content-Type headers. | ||
148 | Otherwise, | ||
149 | .Qq application/x-pkcs7-mime | ||
150 | or | ||
151 | .Qq application/x-pkcs7-signature | ||
152 | is used. | ||
153 | .Pp | ||
118 | If cleartext signing is being used and | 154 | If cleartext signing is being used and |
119 | .Dv PKCS7_STREAM | 155 | .Dv PKCS7_STREAM |
120 | is not set, then the data must be read twice: once to compute the | 156 | is not set, then the data must be read twice: once to compute the |