diff options
Diffstat (limited to 'src')
| -rw-r--r-- | src/lib/libcrypto/man/Makefile | 3 | ||||
| -rw-r--r-- | src/lib/libcrypto/man/SMIME_read_ASN1.3 | 123 | ||||
| -rw-r--r-- | src/lib/libcrypto/man/SMIME_read_CMS.3 | 7 | ||||
| -rw-r--r-- | src/lib/libcrypto/man/SMIME_read_PKCS7.3 | 9 |
4 files changed, 134 insertions, 8 deletions
diff --git a/src/lib/libcrypto/man/Makefile b/src/lib/libcrypto/man/Makefile index 131b8eea1d..98f2cb6b80 100644 --- a/src/lib/libcrypto/man/Makefile +++ b/src/lib/libcrypto/man/Makefile | |||
| @@ -1,4 +1,4 @@ | |||
| 1 | # $OpenBSD: Makefile,v 1.226 2021/12/13 18:55:22 schwarze Exp $ | 1 | # $OpenBSD: Makefile,v 1.227 2021/12/14 14:30:50 schwarze Exp $ |
| 2 | 2 | ||
| 3 | .include <bsd.own.mk> | 3 | .include <bsd.own.mk> |
| 4 | 4 | ||
| @@ -280,6 +280,7 @@ MAN= \ | |||
| 280 | RSA_size.3 \ | 280 | RSA_size.3 \ |
| 281 | SHA1.3 \ | 281 | SHA1.3 \ |
| 282 | SMIME_crlf_copy.3 \ | 282 | SMIME_crlf_copy.3 \ |
| 283 | SMIME_read_ASN1.3 \ | ||
| 283 | SMIME_read_CMS.3 \ | 284 | SMIME_read_CMS.3 \ |
| 284 | SMIME_read_PKCS7.3 \ | 285 | SMIME_read_PKCS7.3 \ |
| 285 | SMIME_write_ASN1.3 \ | 286 | SMIME_write_ASN1.3 \ |
diff --git a/src/lib/libcrypto/man/SMIME_read_ASN1.3 b/src/lib/libcrypto/man/SMIME_read_ASN1.3 new file mode 100644 index 0000000000..2a04ccb0d2 --- /dev/null +++ b/src/lib/libcrypto/man/SMIME_read_ASN1.3 | |||
| @@ -0,0 +1,123 @@ | |||
| 1 | .\" $OpenBSD: SMIME_read_ASN1.3,v 1.1 2021/12/14 14:30:50 schwarze Exp $ | ||
| 2 | .\" full merge up to: | ||
| 3 | .\" OpenSSL SMIME_read_PKCS7.pod 83cf7abf May 29 13:07:08 2018 +0100 | ||
| 4 | .\" OpenSSL SMIME_read_CMS.pod b97fdb57 Nov 11 09:33:09 2016 +0100 | ||
| 5 | .\" | ||
| 6 | .\" This file was written by Dr. Stephen Henson <steve@openssl.org>. | ||
| 7 | .\" Copyright (c) 2002, 2006, 2008 The OpenSSL Project. All rights reserved. | ||
| 8 | .\" | ||
| 9 | .\" Redistribution and use in source and binary forms, with or without | ||
| 10 | .\" modification, are permitted provided that the following conditions | ||
| 11 | .\" are met: | ||
| 12 | .\" | ||
| 13 | .\" 1. Redistributions of source code must retain the above copyright | ||
| 14 | .\" notice, this list of conditions and the following disclaimer. | ||
| 15 | .\" | ||
| 16 | .\" 2. Redistributions in binary form must reproduce the above copyright | ||
| 17 | .\" notice, this list of conditions and the following disclaimer in | ||
| 18 | .\" the documentation and/or other materials provided with the | ||
| 19 | .\" distribution. | ||
| 20 | .\" | ||
| 21 | .\" 3. All advertising materials mentioning features or use of this | ||
| 22 | .\" software must display the following acknowledgment: | ||
| 23 | .\" "This product includes software developed by the OpenSSL Project | ||
| 24 | .\" for use in the OpenSSL Toolkit. (http://www.openssl.org/)" | ||
| 25 | .\" | ||
| 26 | .\" 4. The names "OpenSSL Toolkit" and "OpenSSL Project" must not be used to | ||
| 27 | .\" endorse or promote products derived from this software without | ||
| 28 | .\" prior written permission. For written permission, please contact | ||
| 29 | .\" openssl-core@openssl.org. | ||
| 30 | .\" | ||
| 31 | .\" 5. Products derived from this software may not be called "OpenSSL" | ||
| 32 | .\" nor may "OpenSSL" appear in their names without prior written | ||
| 33 | .\" permission of the OpenSSL Project. | ||
| 34 | .\" | ||
| 35 | .\" 6. Redistributions of any form whatsoever must retain the following | ||
| 36 | .\" acknowledgment: | ||
| 37 | .\" "This product includes software developed by the OpenSSL Project | ||
| 38 | .\" for use in the OpenSSL Toolkit (http://www.openssl.org/)" | ||
| 39 | .\" | ||
| 40 | .\" THIS SOFTWARE IS PROVIDED BY THE OpenSSL PROJECT ``AS IS'' AND ANY | ||
| 41 | .\" EXPRESSED OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE | ||
| 42 | .\" IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR | ||
| 43 | .\" PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE OpenSSL PROJECT OR | ||
| 44 | .\" ITS CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, | ||
| 45 | .\" SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT | ||
| 46 | .\" NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; | ||
| 47 | .\" LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) | ||
| 48 | .\" HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, | ||
| 49 | .\" STRICT LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) | ||
| 50 | .\" ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED | ||
| 51 | .\" OF THE POSSIBILITY OF SUCH DAMAGE. | ||
| 52 | .\" | ||
| 53 | .Dd $Mdocdate: December 14 2021 $ | ||
| 54 | .Dt SMIME_READ_ASN1 3 | ||
| 55 | .Os | ||
| 56 | .Sh NAME | ||
| 57 | .Nm SMIME_read_ASN1 | ||
| 58 | .Nd generic S/MIME message parser | ||
| 59 | .Sh SYNOPSIS | ||
| 60 | .In openssl/asn1.h | ||
| 61 | .Ft ASN1_VALUE * | ||
| 62 | .Fo SMIME_read_ASN1 | ||
| 63 | .Fa "BIO *in_bio" | ||
| 64 | .Fa "BIO **out_bio" | ||
| 65 | .Fa "const ASN1_ITEM *it" | ||
| 66 | .Fc | ||
| 67 | .Sh DESCRIPTION | ||
| 68 | .Fn SMIME_read_ASN1 | ||
| 69 | reads a message in S/MIME format from | ||
| 70 | .Fa in_bio . | ||
| 71 | .Pp | ||
| 72 | If the message uses cleartext signing, the content is saved in a memory | ||
| 73 | .Vt BIO | ||
| 74 | which is written to | ||
| 75 | .Pf * Fa out_bio . | ||
| 76 | Otherwise, | ||
| 77 | .Pf * Fa out_bio | ||
| 78 | is set to | ||
| 79 | .Dv NULL . | ||
| 80 | .Pp | ||
| 81 | To support future functionality, if | ||
| 82 | .Fa out_bio | ||
| 83 | is not | ||
| 84 | .Dv NULL , | ||
| 85 | .Pf * Fa out_bio | ||
| 86 | should be initialized to | ||
| 87 | .Dv NULL | ||
| 88 | before calling | ||
| 89 | .Fn SMIME_read_ASN1 . | ||
| 90 | .Sh RETURN VALUES | ||
| 91 | .Fn SMIME_read_ASN1 | ||
| 92 | returns a newly allocated object of type | ||
| 93 | .Fa it | ||
| 94 | or | ||
| 95 | .Dv NULL | ||
| 96 | if an error occurred. | ||
| 97 | The error can be obtained from | ||
| 98 | .Xr ERR_get_error 3 . | ||
| 99 | .Sh SEE ALSO | ||
| 100 | .Xr ASN1_item_d2i_bio 3 , | ||
| 101 | .Xr BIO_f_base64 3 , | ||
| 102 | .Xr BIO_new 3 , | ||
| 103 | .Xr SMIME_read_CMS 3 , | ||
| 104 | .Xr SMIME_read_PKCS7 3 | ||
| 105 | .Sh HISTORY | ||
| 106 | .Fn SMIME_read_ASN1 | ||
| 107 | first appeared in OpenSSL 0.9.8h and has been available since | ||
| 108 | .Ox 4.5 . | ||
| 109 | .Sh BUGS | ||
| 110 | The MIME parser used by | ||
| 111 | .Fn SMIME_read_ASN1 | ||
| 112 | is somewhat primitive. | ||
| 113 | While it will handle most S/MIME messages, more complex compound | ||
| 114 | formats may not work. | ||
| 115 | .Pp | ||
| 116 | The parser assumes that the | ||
| 117 | structure is always base64 encoded, and it will not handle the case | ||
| 118 | where it is in binary format or uses quoted printable format. | ||
| 119 | .Pp | ||
| 120 | The use of a memory | ||
| 121 | to hold the signed content limits the size of the message which can | ||
| 122 | be processed due to memory restraints: a streaming single pass | ||
| 123 | option should be available. | ||
diff --git a/src/lib/libcrypto/man/SMIME_read_CMS.3 b/src/lib/libcrypto/man/SMIME_read_CMS.3 index bbfb1e5463..e1b1d07499 100644 --- a/src/lib/libcrypto/man/SMIME_read_CMS.3 +++ b/src/lib/libcrypto/man/SMIME_read_CMS.3 | |||
| @@ -1,4 +1,4 @@ | |||
| 1 | .\" $OpenBSD: SMIME_read_CMS.3,v 1.6 2019/11/02 15:39:46 schwarze Exp $ | 1 | .\" $OpenBSD: SMIME_read_CMS.3,v 1.7 2021/12/14 14:30:50 schwarze Exp $ |
| 2 | .\" full merge up to: OpenSSL b97fdb57 Nov 11 09:33:09 2016 +0100 | 2 | .\" full merge up to: OpenSSL b97fdb57 Nov 11 09:33:09 2016 +0100 |
| 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,12 +48,12 @@ | |||
| 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: November 2 2019 $ | 51 | .Dd $Mdocdate: December 14 2021 $ |
| 52 | .Dt SMIME_READ_CMS 3 | 52 | .Dt SMIME_READ_CMS 3 |
| 53 | .Os | 53 | .Os |
| 54 | .Sh NAME | 54 | .Sh NAME |
| 55 | .Nm SMIME_read_CMS | 55 | .Nm SMIME_read_CMS |
| 56 | .Nd parse S/MIME message | 56 | .Nd extract CMS ContentInfo from an S/MIME message |
| 57 | .Sh SYNOPSIS | 57 | .Sh SYNOPSIS |
| 58 | .In openssl/cms.h | 58 | .In openssl/cms.h |
| 59 | .Ft CMS_ContentInfo * | 59 | .Ft CMS_ContentInfo * |
| @@ -108,6 +108,7 @@ The error can be obtained from | |||
| 108 | .Xr CMS_get0_type 3 , | 108 | .Xr CMS_get0_type 3 , |
| 109 | .Xr CMS_verify 3 , | 109 | .Xr CMS_verify 3 , |
| 110 | .Xr d2i_CMS_ContentInfo 3 , | 110 | .Xr d2i_CMS_ContentInfo 3 , |
| 111 | .Xr SMIME_read_ASN1 3 , | ||
| 111 | .Xr SMIME_write_CMS 3 | 112 | .Xr SMIME_write_CMS 3 |
| 112 | .Sh HISTORY | 113 | .Sh HISTORY |
| 113 | .Fn SMIME_read_CMS | 114 | .Fn SMIME_read_CMS |
diff --git a/src/lib/libcrypto/man/SMIME_read_PKCS7.3 b/src/lib/libcrypto/man/SMIME_read_PKCS7.3 index 8ce739a7cb..dbe2765b8b 100644 --- a/src/lib/libcrypto/man/SMIME_read_PKCS7.3 +++ b/src/lib/libcrypto/man/SMIME_read_PKCS7.3 | |||
| @@ -1,5 +1,5 @@ | |||
| 1 | .\" $OpenBSD: SMIME_read_PKCS7.3,v 1.7 2019/06/10 14:58:48 schwarze Exp $ | 1 | .\" $OpenBSD: SMIME_read_PKCS7.3,v 1.8 2021/12/14 14:30:50 schwarze Exp $ |
| 2 | .\" OpenSSL 99d63d46 Oct 26 13:56:48 2016 -0400 | 2 | .\" full merge up to: OpenSSL 83cf7abf May 29 13:07:08 2018 +0100 |
| 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>. |
| 5 | .\" Copyright (c) 2002, 2006 The OpenSSL Project. All rights reserved. | 5 | .\" Copyright (c) 2002, 2006 The OpenSSL Project. All rights reserved. |
| @@ -48,12 +48,12 @@ | |||
| 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: June 10 2019 $ | 51 | .Dd $Mdocdate: December 14 2021 $ |
| 52 | .Dt SMIME_READ_PKCS7 3 | 52 | .Dt SMIME_READ_PKCS7 3 |
| 53 | .Os | 53 | .Os |
| 54 | .Sh NAME | 54 | .Sh NAME |
| 55 | .Nm SMIME_read_PKCS7 | 55 | .Nm SMIME_read_PKCS7 |
| 56 | .Nd parse S/MIME message | 56 | .Nd extract a PKCS#7 object from an S/MIME message |
| 57 | .Sh SYNOPSIS | 57 | .Sh SYNOPSIS |
| 58 | .In openssl/pkcs7.h | 58 | .In openssl/pkcs7.h |
| 59 | .Ft PKCS7 * | 59 | .Ft PKCS7 * |
| @@ -125,6 +125,7 @@ The error can be obtained from | |||
| 125 | .Xr ERR_get_error 3 . | 125 | .Xr ERR_get_error 3 . |
| 126 | .Sh SEE ALSO | 126 | .Sh SEE ALSO |
| 127 | .Xr PKCS7_new 3 , | 127 | .Xr PKCS7_new 3 , |
| 128 | .Xr SMIME_read_ASN1 3 , | ||
| 128 | .Xr SMIME_write_PKCS7 3 | 129 | .Xr SMIME_write_PKCS7 3 |
| 129 | .Sh HISTORY | 130 | .Sh HISTORY |
| 130 | .Fn SMIME_read_PKCS7 | 131 | .Fn SMIME_read_PKCS7 |
