~andersk/ubuntu/oneiric/openssl/spurious-reboot

« back to all changes in this revision

Viewing changes to doc/crypto/SMIME_write_PKCS7.pod

  • Committer: Bazaar Package Importer
  • Author(s): Kurt Roeckx
  • Date: 2010-12-12 15:37:21 UTC
  • mto: (1.2.1 upstream) (11.2.1 experimental)
  • mto: This revision was merged to the branch mainline in revision 55.
  • Revision ID: james.westby@ubuntu.com-20101212153721-mfw51stum5hwztpd
Tags: upstream-1.0.0c
ImportĀ upstreamĀ versionĀ 1.0.0c

Show diffs side-by-side

added added

removed removed

Lines of Context:
15
15
SMIME_write_PKCS7() adds the appropriate MIME headers to a PKCS#7
16
16
structure to produce an S/MIME message.
17
17
 
18
 
B<out> is the BIO to write the data to. B<p7> is the appropriate
19
 
B<PKCS7> structure. If cleartext signing (B<multipart/signed>) is
20
 
being used then the signed data must be supplied in the B<data> 
21
 
argument. B<flags> is an optional set of flags.
 
18
B<out> is the BIO to write the data to. B<p7> is the appropriate B<PKCS7>
 
19
structure. If streaming is enabled then the content must be supplied in the
 
20
B<data> argument. B<flags> is an optional set of flags.
22
21
 
23
22
=head1 NOTES
24
23
 
32
31
are added to the content, this only makes sense if B<PKCS7_DETACHED>
33
32
is also set.
34
33
 
35
 
If the B<PKCS7_PARTSIGN> flag is set the signed data is finalized
36
 
and output along with the content. This flag should only be set
37
 
if B<PKCS7_DETACHED> is also set and the previous call to PKCS7_sign()
38
 
also set these flags.
 
34
If the B<PKCS7_STREAM> flag is set streaming is performed. This flag should
 
35
only be set if B<PKCS7_STREAM> was also set in the previous call to
 
36
PKCS7_sign() or B<PKCS7_encrypt()>.
39
37
 
40
 
If cleartext signing is being used and B<PKCS7_PARTSIGN> not set then
 
38
If cleartext signing is being used and B<PKCS7_STREAM> not set then
41
39
the data must be read twice: once to compute the signature in PKCS7_sign()
42
40
and once to output the S/MIME message.
43
41
 
 
42
If streaming is performed the content is output in BER format using indefinite
 
43
length constructuted encoding except in the case of signed data with detached
 
44
content where the content is absent and DER format is used.
 
45
 
44
46
=head1 BUGS
45
47
 
46
48
SMIME_write_PKCS7() always base64 encodes PKCS#7 structures, there