CSSM_CERTGROUP_PTR CSSMAPI CSSM_TP_CertGroupPrune (CSSM_TP_HANDLE TPHandle, CSSM_CL_HANDLE CLHandle, const CSSM_DL_DB_LIST_PTR DBList, CSSM_CERTGROUP_PTR OrderedCertGroup);
This function removes certificates from a certificate group. The prune operation can remove those certificates that have been signed by any local certificate authority, as it is possible that these certificates will not be meaningful on other systems.
This operation can also remove additional certificates that can be added to the certificate group again using the CertGroupConstruct operation. The pruned certificate group should be suitable for transmission to external hosts, which can in turn reconstruct and verify the certificate group.
The DBList parameter specifies a set of data stores containing certificates that should be pruned from the group.
- TPHandle (input)
The handle to the trust policy module to perform this operation.
- CLHandle (input/optional)
The handle to the certificate library module that can be used to manipulate and parse the certgroup certificates and the certificates in the specified data stores. If no certificate library module is specified, the TP module uses an assumed CL module.
- DBList (input)
A list of handle pairs specifying a data storage library module and a data store managed by that module. These data stores must contain certificates (and possibly other security objects). The data stores are searched for anchor certificates restricted to have local scope. These certificates are candidates for removal from the subject certificate group.
- OrderedCertGroup (input)
The initial, complete set of certificates from which certificates will be selectively removed.
Returns a certificate group containing those certificates which are verifiable credentials outside of the local system. If the list is NULL, an error has occurred. Use CSSM_GetError to obtain the error code.
Invalid trust policy handle.
Invalid certificate library handle.
Invalid data storage library handle.
Invalid data store handle.
Invalid certificate group.
Internal memory error.
Function not implemented.