From 19f9a4a6a75ddb174cd77d6e0749b6fe9979e7c0 Mon Sep 17 00:00:00 2001 From: schwarze <> Date: Wed, 3 Jun 2020 13:41:27 +0000 Subject: Properly document PKCS7_final(3), which was already mentioned in passing in some other manual pages. --- src/lib/libcrypto/man/PKCS7_dataInit.3 | 25 ++++++++++++++++++++++--- 1 file changed, 22 insertions(+), 3 deletions(-) (limited to 'src/lib/libcrypto/man/PKCS7_dataInit.3') diff --git a/src/lib/libcrypto/man/PKCS7_dataInit.3 b/src/lib/libcrypto/man/PKCS7_dataInit.3 index 53090ff960..cb54d3f95c 100644 --- a/src/lib/libcrypto/man/PKCS7_dataInit.3 +++ b/src/lib/libcrypto/man/PKCS7_dataInit.3 @@ -1,4 +1,4 @@ -.\" $OpenBSD: PKCS7_dataInit.3,v 1.1 2020/05/24 12:37:30 schwarze Exp $ +.\" $OpenBSD: PKCS7_dataInit.3,v 1.2 2020/06/03 13:41:27 schwarze Exp $ .\" .\" Copyright (c) 2020 Ingo Schwarze .\" @@ -14,7 +14,7 @@ .\" ACTION OF CONTRACT, NEGLIGENCE OR OTHER TORTIOUS ACTION, ARISING OUT OF .\" OR IN CONNECTION WITH THE USE OR PERFORMANCE OF THIS SOFTWARE. .\" -.Dd $Mdocdate: May 24 2020 $ +.Dd $Mdocdate: June 3 2020 $ .Dt PKCS7_DATAINIT 3 .Os .Sh NAME @@ -110,6 +110,20 @@ are typically required to create to choose its desired type, and to allocate the nested .Vt ContentInfo structure. +Alternatively, for +.Vt SignedData , +.Xr PKCS7_sign 3 +can be used with the +.Dv PKCS7_PARTIAL +or +.Dv PKCS7_STREAM +.Fa flags +or for +.Vt EnvelopedData , +.Xr PKCS7_encrypt 3 +with the +.Dv PKCS7_STREAM +flag. .Pp After calling .Fn PKCS7_dataInit , @@ -130,7 +144,10 @@ does support the .Vt EnvelopedData and .Vt SignedAndEnvelopedData -types, using it for these types is awkward and error prone because +types, using it for these types is awkward and error prone +except when using +.Xr PKCS7_encrypt 3 +for the setup because .Xr PKCS7_content_new 3 does not support these two types. So in addition to creating @@ -183,6 +200,8 @@ or for various other reasons. .Xr BIO_read 3 , .Xr PKCS7_content_new 3 , .Xr PKCS7_dataFinal 3 , +.Xr PKCS7_encrypt 3 , +.Xr PKCS7_final 3 , .Xr PKCS7_new 3 , .Xr PKCS7_set_type 3 , .Xr PKCS7_sign 3 -- cgit v1.2.3-55-g6feb