summaryrefslogtreecommitdiff
path: root/src/lib/libcrypto/man/CMS_sign_receipt.3
diff options
context:
space:
mode:
authorschwarze <>2015-11-11 18:36:48 +0000
committerschwarze <>2015-11-11 18:36:48 +0000
commit0241f6701aac0e95428b9f0899b07ba086aa7e71 (patch)
tree80b2aab86130838808328db62934a4188f195886 /src/lib/libcrypto/man/CMS_sign_receipt.3
parentd5282d754e743726bcafb49d0992917dc89caf2b (diff)
downloadopenbsd-0241f6701aac0e95428b9f0899b07ba086aa7e71.tar.gz
openbsd-0241f6701aac0e95428b9f0899b07ba086aa7e71.tar.bz2
openbsd-0241f6701aac0e95428b9f0899b07ba086aa7e71.zip
Convert and enable CMS manuals.
Already some time ago, bcook@ said these can be installed.
Diffstat (limited to 'src/lib/libcrypto/man/CMS_sign_receipt.3')
-rw-r--r--src/lib/libcrypto/man/CMS_sign_receipt.361
1 files changed, 61 insertions, 0 deletions
diff --git a/src/lib/libcrypto/man/CMS_sign_receipt.3 b/src/lib/libcrypto/man/CMS_sign_receipt.3
new file mode 100644
index 0000000000..de7a8c0e10
--- /dev/null
+++ b/src/lib/libcrypto/man/CMS_sign_receipt.3
@@ -0,0 +1,61 @@
1.Dd $Mdocdate: November 11 2015 $
2.Dt CMS_SIGN_RECEIPT 3
3.Os
4.Sh NAME
5.Nm CMS_sign_receipt
6.Nd create a CMS signed receipt
7.Sh SYNOPSIS
8.In openssl/cms.h
9.Ft CMS_ContentInfo *
10.Fo CMS_sign_receipt
11.Fa "CMS_SignerInfo *si"
12.Fa "X509 *signcert"
13.Fa "EVP_PKEY *pkey"
14.Fa "STACK_OF(X509) *certs"
15.Fa "unsigned int flags"
16.Fc
17.Sh DESCRIPTION
18.Fn CMS_sign_receipt
19creates and returns a CMS signed receipt structure.
20.Fa si
21is the
22.Vt CMS_SignerInfo
23structure containing the signed receipt request.
24.Fa signcert
25is the certificate to sign with,
26.Fa pkey
27is the corresponding private key.
28.Fa certs
29is an optional additional set of certificates to include in the CMS
30structure (for example any intermediate CAs in the chain).
31.Pp
32.Fa flags
33is an optional set of flags.
34.Sh NOTES
35This functions behaves in a similar way to
36.Xr CMS_sign 3
37except the flag values
38.Dv CMS_DETACHED ,
39.Dv CMS_BINARY ,
40.Dv CMS_NOATTR ,
41.Dv CMS_TEXT ,
42and
43.Dv CMS_STREAM
44are not supported, since they do not make sense in the context of
45signed receipts.
46.Sh RETURN VALUES
47.Fn CMS_sign_receipt
48returns either a valid
49.Vt CMS_ContentInfo
50structure or
51.Dv NULL
52if an error occurred.
53The error can be obtained from
54.Xr ERR_get_error 3 .
55.Sh SEE ALSO
56.Xr CMS_sign 3 ,
57.Xr CMS_verify_receipt 3 ,
58.Xr ERR_get_error 3
59.Sh HISTORY
60.Fn CMS_sign_receipt
61was added to OpenSSL 0.9.8.