diff options
| author | schwarze <> | 2021-12-14 15:22:49 +0000 |
|---|---|---|
| committer | schwarze <> | 2021-12-14 15:22:49 +0000 |
| commit | 150919f956c6c0b2b1bf05efeeb4bde13482d832 (patch) | |
| tree | c529aa9bc35aba2d8394c77d33dfd0ed59c86dc7 /src | |
| parent | fa731c25706389caa09bdb42a5927a379e1a40ad (diff) | |
| download | openbsd-150919f956c6c0b2b1bf05efeeb4bde13482d832.tar.gz openbsd-150919f956c6c0b2b1bf05efeeb4bde13482d832.tar.bz2 openbsd-150919f956c6c0b2b1bf05efeeb4bde13482d832.zip | |
new manual page SMIME_text(3)
Diffstat (limited to 'src')
| -rw-r--r-- | src/lib/libcrypto/man/Makefile | 3 | ||||
| -rw-r--r-- | src/lib/libcrypto/man/SMIME_crlf_copy.3 | 5 | ||||
| -rw-r--r-- | src/lib/libcrypto/man/SMIME_read_ASN1.3 | 5 | ||||
| -rw-r--r-- | src/lib/libcrypto/man/SMIME_text.3 | 57 |
4 files changed, 65 insertions, 5 deletions
diff --git a/src/lib/libcrypto/man/Makefile b/src/lib/libcrypto/man/Makefile index 98f2cb6b80..2986652b79 100644 --- a/src/lib/libcrypto/man/Makefile +++ b/src/lib/libcrypto/man/Makefile | |||
| @@ -1,4 +1,4 @@ | |||
| 1 | # $OpenBSD: Makefile,v 1.227 2021/12/14 14:30:50 schwarze Exp $ | 1 | # $OpenBSD: Makefile,v 1.228 2021/12/14 15:22:49 schwarze Exp $ |
| 2 | 2 | ||
| 3 | .include <bsd.own.mk> | 3 | .include <bsd.own.mk> |
| 4 | 4 | ||
| @@ -283,6 +283,7 @@ MAN= \ | |||
| 283 | SMIME_read_ASN1.3 \ | 283 | SMIME_read_ASN1.3 \ |
| 284 | SMIME_read_CMS.3 \ | 284 | SMIME_read_CMS.3 \ |
| 285 | SMIME_read_PKCS7.3 \ | 285 | SMIME_read_PKCS7.3 \ |
| 286 | SMIME_text.3 \ | ||
| 286 | SMIME_write_ASN1.3 \ | 287 | SMIME_write_ASN1.3 \ |
| 287 | SMIME_write_CMS.3 \ | 288 | SMIME_write_CMS.3 \ |
| 288 | SMIME_write_PKCS7.3 \ | 289 | SMIME_write_PKCS7.3 \ |
diff --git a/src/lib/libcrypto/man/SMIME_crlf_copy.3 b/src/lib/libcrypto/man/SMIME_crlf_copy.3 index defee581fd..3062634f38 100644 --- a/src/lib/libcrypto/man/SMIME_crlf_copy.3 +++ b/src/lib/libcrypto/man/SMIME_crlf_copy.3 | |||
| @@ -1,4 +1,4 @@ | |||
| 1 | .\" $OpenBSD: SMIME_crlf_copy.3,v 1.1 2021/12/13 13:46:09 schwarze Exp $ | 1 | .\" $OpenBSD: SMIME_crlf_copy.3,v 1.2 2021/12/14 15:22:49 schwarze Exp $ |
| 2 | .\" | 2 | .\" |
| 3 | .\" Copyright (c) 2021 Ingo Schwarze <schwarze@openbsd.org> | 3 | .\" Copyright (c) 2021 Ingo Schwarze <schwarze@openbsd.org> |
| 4 | .\" | 4 | .\" |
| @@ -14,7 +14,7 @@ | |||
| 14 | .\" ACTION OF CONTRACT, NEGLIGENCE OR OTHER TORTIOUS ACTION, ARISING OUT OF | 14 | .\" ACTION OF CONTRACT, NEGLIGENCE OR OTHER TORTIOUS ACTION, ARISING OUT OF |
| 15 | .\" OR IN CONNECTION WITH THE USE OR PERFORMANCE OF THIS SOFTWARE. | 15 | .\" OR IN CONNECTION WITH THE USE OR PERFORMANCE OF THIS SOFTWARE. |
| 16 | .\" | 16 | .\" |
| 17 | .Dd $Mdocdate: December 13 2021 $ | 17 | .Dd $Mdocdate: December 14 2021 $ |
| 18 | .Dt SMIME_CRLF_COPY 3 | 18 | .Dt SMIME_CRLF_COPY 3 |
| 19 | .Os | 19 | .Os |
| 20 | .Sh NAME | 20 | .Sh NAME |
| @@ -79,6 +79,7 @@ is intended to return 1 on success or 0 on failure. | |||
| 79 | .Xr BIO_push 3 , | 79 | .Xr BIO_push 3 , |
| 80 | .Xr BIO_read 3 , | 80 | .Xr BIO_read 3 , |
| 81 | .Xr i2d_ASN1_bio_stream 3 , | 81 | .Xr i2d_ASN1_bio_stream 3 , |
| 82 | .Xr SMIME_text 3 , | ||
| 82 | .Xr SMIME_write_ASN1 3 | 83 | .Xr SMIME_write_ASN1 3 |
| 83 | .Sh HISTORY | 84 | .Sh HISTORY |
| 84 | .Fn SMIME_crlf_copy | 85 | .Fn SMIME_crlf_copy |
diff --git a/src/lib/libcrypto/man/SMIME_read_ASN1.3 b/src/lib/libcrypto/man/SMIME_read_ASN1.3 index 2a04ccb0d2..320064567c 100644 --- a/src/lib/libcrypto/man/SMIME_read_ASN1.3 +++ b/src/lib/libcrypto/man/SMIME_read_ASN1.3 | |||
| @@ -1,4 +1,4 @@ | |||
| 1 | .\" $OpenBSD: SMIME_read_ASN1.3,v 1.1 2021/12/14 14:30:50 schwarze Exp $ | 1 | .\" $OpenBSD: SMIME_read_ASN1.3,v 1.2 2021/12/14 15:22:49 schwarze Exp $ |
| 2 | .\" full merge up to: | 2 | .\" full merge up to: |
| 3 | .\" OpenSSL SMIME_read_PKCS7.pod 83cf7abf May 29 13:07:08 2018 +0100 | 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 | 4 | .\" OpenSSL SMIME_read_CMS.pod b97fdb57 Nov 11 09:33:09 2016 +0100 |
| @@ -101,7 +101,8 @@ The error can be obtained from | |||
| 101 | .Xr BIO_f_base64 3 , | 101 | .Xr BIO_f_base64 3 , |
| 102 | .Xr BIO_new 3 , | 102 | .Xr BIO_new 3 , |
| 103 | .Xr SMIME_read_CMS 3 , | 103 | .Xr SMIME_read_CMS 3 , |
| 104 | .Xr SMIME_read_PKCS7 3 | 104 | .Xr SMIME_read_PKCS7 3 , |
| 105 | .Xr SMIME_text 3 | ||
| 105 | .Sh HISTORY | 106 | .Sh HISTORY |
| 106 | .Fn SMIME_read_ASN1 | 107 | .Fn SMIME_read_ASN1 |
| 107 | first appeared in OpenSSL 0.9.8h and has been available since | 108 | first appeared in OpenSSL 0.9.8h and has been available since |
diff --git a/src/lib/libcrypto/man/SMIME_text.3 b/src/lib/libcrypto/man/SMIME_text.3 new file mode 100644 index 0000000000..a4c9689925 --- /dev/null +++ b/src/lib/libcrypto/man/SMIME_text.3 | |||
| @@ -0,0 +1,57 @@ | |||
| 1 | .\" $OpenBSD: SMIME_text.3,v 1.1 2021/12/14 15:22:49 schwarze Exp $ | ||
| 2 | .\" | ||
| 3 | .\" Copyright (c) 2021 Ingo Schwarze <schwarze@openbsd.org> | ||
| 4 | .\" | ||
| 5 | .\" Permission to use, copy, modify, and distribute this software for any | ||
| 6 | .\" purpose with or without fee is hereby granted, provided that the above | ||
| 7 | .\" copyright notice and this permission notice appear in all copies. | ||
| 8 | .\" | ||
| 9 | .\" THE SOFTWARE IS PROVIDED "AS IS" AND THE AUTHOR DISCLAIMS ALL WARRANTIES | ||
| 10 | .\" WITH REGARD TO THIS SOFTWARE INCLUDING ALL IMPLIED WARRANTIES OF | ||
| 11 | .\" MERCHANTABILITY AND FITNESS. IN NO EVENT SHALL THE AUTHOR BE LIABLE FOR | ||
| 12 | .\" ANY SPECIAL, DIRECT, INDIRECT, OR CONSEQUENTIAL DAMAGES OR ANY DAMAGES | ||
| 13 | .\" WHATSOEVER RESULTING FROM LOSS OF USE, DATA OR PROFITS, WHETHER IN AN | ||
| 14 | .\" ACTION OF CONTRACT, NEGLIGENCE OR OTHER TORTIOUS ACTION, ARISING OUT OF | ||
| 15 | .\" OR IN CONNECTION WITH THE USE OR PERFORMANCE OF THIS SOFTWARE. | ||
| 16 | .\" | ||
| 17 | .Dd $Mdocdate: December 14 2021 $ | ||
| 18 | .Dt SMIME_TEXT 3 | ||
| 19 | .Os | ||
| 20 | .Sh NAME | ||
| 21 | .Nm SMIME_text | ||
| 22 | .Nd remove text/plain MIME headers | ||
| 23 | .Sh SYNOPSIS | ||
| 24 | .In openssl/asn1.h | ||
| 25 | .Ft int | ||
| 26 | .Fo SMIME_text | ||
| 27 | .Fa "BIO *in_bio" | ||
| 28 | .Fa "BIO *out_bio" | ||
| 29 | .Fc | ||
| 30 | .Sh DESCRIPTION | ||
| 31 | .Fn SMIME_text | ||
| 32 | reads MIME headers from | ||
| 33 | .Fa in_bio , | ||
| 34 | checks that the content type is | ||
| 35 | .Dq text/plain , | ||
| 36 | discards the MIME headers, | ||
| 37 | and copies the text that follows the headers from | ||
| 38 | .Fa in_bio | ||
| 39 | to | ||
| 40 | .Fa out_bio . | ||
| 41 | .Sh RETURN VALUES | ||
| 42 | .Fn SMIME_text | ||
| 43 | returns 1 on success or 0 if memory allocation, reading the input, | ||
| 44 | or parsing the MIME headers fails, if there is no | ||
| 45 | .Dq content-type | ||
| 46 | header, or if the content type is not | ||
| 47 | .Dq text/plain . | ||
| 48 | .Sh SEE ALSO | ||
| 49 | .Xr SMIME_crlf_copy 3 , | ||
| 50 | .Xr SMIME_read_ASN1 3 | ||
| 51 | .Sh HISTORY | ||
| 52 | .Fn SMIME_text | ||
| 53 | first appeared in OpenSSL 1.0.0 and has been available since | ||
| 54 | .Ox 4.9 . | ||
| 55 | .Sh CAVEATS | ||
| 56 | .Fn SMIME_text | ||
| 57 | does not support non-blocking BIOs. | ||
