The handle that describes the add-in certificate
library module used to perform this function.
CCHandle (input/optional)
The handle of the cryptographic context to control
the signing operation. The operation will fail if a signature is
required for this type of bundle and the cryptographic context is
not valid.
CertGroupToBundle (input)
An array of individual, encoded certificates. All
certificates in this list will be included in the resulting certificate
bundle.
BundleInfo (input/optional)
A structure containing the type and encoding of
the bundle to be created. If the type and the encoding are not specified,
then the module will use a default bundle type and bundle encoding.
SignedBundle (output)
The function returns a pointer to a signed certificate
bundle containing all certificates in the certificate group. The
bundle is of the type and encoding requested by the caller or is
the default type defined by the library module if the BundleInfo was
not specified by the caller. The SignedBundle->Data is
allocated by the service provider and must be deallocated by the
application.
DESCRIPTIONThis function accepts as input a certificate group (as an
array of individual certificates) and returns a certificate bundle
(a codified and signed aggregation of the certificates in the group).
The certificate group will first be encoded according to the BundleInfo input
by the user. If BundleInfo is NULL, the library
will perform a default encoding for its default bundle type. If
possible, the certificate group ordering will be maintained in this
certificate aggregate encoding. After encoding, the certificate
aggregate will be signed using the input context. The CL module
embeds knowledge of the signing scope for the bundle types it supports.
The signature is then associated with the certificate aggregate
according to the bundle type and encoding rules and is returned
as a bundle to the calling application. RETURN VALUEA CSSM_RETURN value indicating success or specifying a particular
error condition. The value CSSM_OK indicates success. All other
values represent an error condition. ERRORSErrors are described in the CDSA Technical Standard.