summaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
Diffstat (limited to 'src')
-rw-r--r--src/lib/libcrypto/man/SMIME_write_CMS.316
-rw-r--r--src/lib/libcrypto/man/SMIME_write_PKCS7.318
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
118returns 1 for success or 0 for failure. 118is 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
128first appeared in OpenSSL 0.9.8h 132first 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
137ignores most errors and is likely to return 1
138even after producing corrupt or incomplete output.
139.Pp
140.Fn SMIME_write_CMS
133always base64 encodes CMS structures. 141always base64 encodes CMS structures.
134There should be an option to disable this. 142There 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
164data with detached content where the content is absent and DER 164data with detached content where the content is absent and DER
165format is used. 165format is used.
166.Sh RETURN VALUES 166.Sh RETURN VALUES
167Upon successful completion, 1 is returned; 167.Fn SMIME_write_PKCS7
168otherwise 0 is returned and an error code can be retrieved with 168is 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
180first appeared in OpenSSL 0.9.5 and has been available since 182first 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
186ignores most errors and is likely to return 1
187even after producing corrupt or incomplete output.
188.Pp
189.Fn SMIME_write_PKCS7
184always base64 encodes PKCS#7 structures. 190always base64 encodes PKCS#7 structures.
185There should be an option to disable this. 191There should be an option to disable this.