diff options
| author | schwarze <> | 2025-06-11 14:23:14 +0000 |
|---|---|---|
| committer | schwarze <> | 2025-06-11 14:23:14 +0000 |
| commit | 9356f541b67227ea6151e93d440b571f4788ff08 (patch) | |
| tree | ea517ad98860a34b6f574a66aa3d0464cb14bf65 /src | |
| parent | 0115d894007c368f8a10ee9e9e05d9ba101059fc (diff) | |
| download | openbsd-9356f541b67227ea6151e93d440b571f4788ff08.tar.gz openbsd-9356f541b67227ea6151e93d440b571f4788ff08.tar.bz2 openbsd-9356f541b67227ea6151e93d440b571f4788ff08.zip | |
Lie less below RETURN VALUES, add a related BUGS entry,
and since SMIME_write_ASN1(3) is no longer public,
replace the .Xr to it with some other pointers.
OK tb@
Diffstat (limited to 'src')
| -rw-r--r-- | src/lib/libcrypto/man/SMIME_write_CMS.3 | 16 | ||||
| -rw-r--r-- | src/lib/libcrypto/man/SMIME_write_PKCS7.3 | 18 |
2 files changed, 24 insertions, 10 deletions
diff --git a/src/lib/libcrypto/man/SMIME_write_CMS.3 b/src/lib/libcrypto/man/SMIME_write_CMS.3 index 548363693d..1a691fc29a 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.7 2025/06/08 22:40:30 schwarze Exp $ | 1 | .\" $OpenBSD: SMIME_write_CMS.3,v 1.8 2025/06/11 14:23:14 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: June 8 2025 $ | 51 | .Dd $Mdocdate: June 11 2025 $ |
| 52 | .Dt SMIME_WRITE_CMS 3 | 52 | .Dt SMIME_WRITE_CMS 3 |
| 53 | .Os | 53 | .Os |
| 54 | .Sh NAME | 54 | .Sh NAME |
| @@ -115,14 +115,18 @@ used. | |||
| 115 | .El | 115 | .El |
| 116 | .Sh RETURN VALUES | 116 | .Sh RETURN VALUES |
| 117 | .Fn SMIME_write_CMS | 117 | .Fn SMIME_write_CMS |
| 118 | returns 1 for success or 0 for failure. | 118 | is intended to return 1 on success or 0 on failure. |
| 119 | .Sh SEE ALSO | 119 | .Sh SEE ALSO |
| 120 | .Xr BIO_f_base64 3 , | ||
| 121 | .Xr BIO_new 3 , | ||
| 120 | .Xr CMS_ContentInfo_new 3 , | 122 | .Xr CMS_ContentInfo_new 3 , |
| 121 | .Xr CMS_encrypt 3 , | 123 | .Xr CMS_encrypt 3 , |
| 122 | .Xr CMS_sign 3 , | 124 | .Xr CMS_sign 3 , |
| 123 | .Xr d2i_CMS_ContentInfo 3 , | 125 | .Xr d2i_CMS_ContentInfo 3 , |
| 124 | .Xr ERR_get_error 3 , | 126 | .Xr ERR_get_error 3 , |
| 125 | .Xr SMIME_write_ASN1 3 | 127 | .Xr SMIME_crlf_copy 3 , |
| 128 | .Xr SMIME_read_CMS 3 , | ||
| 129 | .Xr SMIME_write_PKCS7 3 | ||
| 126 | .Sh HISTORY | 130 | .Sh HISTORY |
| 127 | .Fn SMIME_write_CMS | 131 | .Fn SMIME_write_CMS |
| 128 | first appeared in OpenSSL 0.9.8h | 132 | first appeared in OpenSSL 0.9.8h |
| @@ -130,5 +134,9 @@ and has been available since | |||
| 130 | .Ox 6.7 . | 134 | .Ox 6.7 . |
| 131 | .Sh BUGS | 135 | .Sh BUGS |
| 132 | .Fn SMIME_write_CMS | 136 | .Fn SMIME_write_CMS |
| 137 | ignores most errors and is likely to return 1 | ||
| 138 | even after producing corrupt or incomplete output. | ||
| 139 | .Pp | ||
| 140 | .Fn SMIME_write_CMS | ||
| 133 | always base64 encodes CMS structures. | 141 | always base64 encodes CMS structures. |
| 134 | There should be an option to disable this. | 142 | There should be an option to disable this. |
diff --git a/src/lib/libcrypto/man/SMIME_write_PKCS7.3 b/src/lib/libcrypto/man/SMIME_write_PKCS7.3 index e4c482a983..72200c0b1b 100644 --- a/src/lib/libcrypto/man/SMIME_write_PKCS7.3 +++ b/src/lib/libcrypto/man/SMIME_write_PKCS7.3 | |||
| @@ -1,4 +1,4 @@ | |||
| 1 | .\" $OpenBSD: SMIME_write_PKCS7.3,v 1.10 2025/06/08 22:40:30 schwarze Exp $ | 1 | .\" $OpenBSD: SMIME_write_PKCS7.3,v 1.11 2025/06/11 14:23:14 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 is a derived work. | 4 | .\" This file is a derived work. |
| @@ -66,7 +66,7 @@ | |||
| 66 | .\" 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 |
| 67 | .\" OF THE POSSIBILITY OF SUCH DAMAGE. | 67 | .\" OF THE POSSIBILITY OF SUCH DAMAGE. |
| 68 | .\" | 68 | .\" |
| 69 | .Dd $Mdocdate: June 8 2025 $ | 69 | .Dd $Mdocdate: June 11 2025 $ |
| 70 | .Dt SMIME_WRITE_PKCS7 3 | 70 | .Dt SMIME_WRITE_PKCS7 3 |
| 71 | .Os | 71 | .Os |
| 72 | .Sh NAME | 72 | .Sh NAME |
| @@ -164,22 +164,28 @@ indefinite length constructed encoding except in the case of signed | |||
| 164 | data with detached content where the content is absent and DER | 164 | data with detached content where the content is absent and DER |
| 165 | format is used. | 165 | format is used. |
| 166 | .Sh RETURN VALUES | 166 | .Sh RETURN VALUES |
| 167 | Upon successful completion, 1 is returned; | 167 | .Fn SMIME_write_PKCS7 |
| 168 | otherwise 0 is returned and an error code can be retrieved with | 168 | is intended to return 1 on success or 0 on failure. |
| 169 | .Xr ERR_get_error 3 . | ||
| 170 | .Sh SEE ALSO | 169 | .Sh SEE ALSO |
| 170 | .Xr BIO_f_base64 3 , | ||
| 171 | .Xr BIO_new 3 , | ||
| 171 | .Xr i2d_PKCS7_bio_stream 3 , | 172 | .Xr i2d_PKCS7_bio_stream 3 , |
| 172 | .Xr PEM_write_bio_PKCS7_stream 3 , | 173 | .Xr PEM_write_bio_PKCS7_stream 3 , |
| 173 | .Xr PEM_write_PKCS7 3 , | 174 | .Xr PEM_write_PKCS7 3 , |
| 174 | .Xr PKCS7_final 3 , | 175 | .Xr PKCS7_final 3 , |
| 175 | .Xr PKCS7_new 3 , | 176 | .Xr PKCS7_new 3 , |
| 177 | .Xr SMIME_crlf_copy 3 , | ||
| 176 | .Xr SMIME_read_PKCS7 3 , | 178 | .Xr SMIME_read_PKCS7 3 , |
| 177 | .Xr SMIME_write_ASN1 3 | 179 | .Xr SMIME_write_CMS 3 |
| 178 | .Sh HISTORY | 180 | .Sh HISTORY |
| 179 | .Fn SMIME_write_PKCS7 | 181 | .Fn SMIME_write_PKCS7 |
| 180 | first appeared in OpenSSL 0.9.5 and has been available since | 182 | first appeared in OpenSSL 0.9.5 and has been available since |
| 181 | .Ox 2.7 . | 183 | .Ox 2.7 . |
| 182 | .Sh BUGS | 184 | .Sh BUGS |
| 183 | .Fn SMIME_write_PKCS7 | 185 | .Fn SMIME_write_PKCS7 |
| 186 | ignores most errors and is likely to return 1 | ||
| 187 | even after producing corrupt or incomplete output. | ||
| 188 | .Pp | ||
| 189 | .Fn SMIME_write_PKCS7 | ||
| 184 | always base64 encodes PKCS#7 structures. | 190 | always base64 encodes PKCS#7 structures. |
| 185 | There should be an option to disable this. | 191 | There should be an option to disable this. |
