Smime.Wrap Method
Wrap a CMS object in an S/MIME entity.
Syntax
[C#]
public static int Wrap(
string outputFile,
string inputFile,
Smime.Options opts
)
[VB.NET]
Public Shared Function Wrap ( _
outputFile As String, _
inputFile As String, _
opts As Smime.Options _
) As Integer
Parameters
- outputFile
- Output file to be created
- inputFile
- Input file containing CMS object
- opts
- Type: Smime.Options
Options
Return Value
A positive number giving the size of the output file in bytes; otherwise it returns an
error code
Remarks
The input file is expected to be a binary CMS object of type enveloped-data, signed-data or compressed-data; otherwise it is an error. The type of input file is detected automatically. By default the body is encoded in base64 encoding. Use the EncodeBinary option to encode the body in binary.
See Also
VB6/C equivalent: SMIME_Wrap
[Contents] [Index]