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 also can remove additional certificates that can be added to the certificate group again using the CSSM_CertGroupConstruct function. 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.
CSSM_CERTGROUP_PTRCSSMAPI CSSM_TP_CertGroupPrune
(CSSM_TP_HANDLE TPHandle,
CSSM_CL_HANDLE CLHandle,
CSSM_CERTGROUP_PTR OrderedCertGroup,
CSSM_DL_DB_LIST_PTR DBList)
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.
CSSM_TP_CertGroupConstruct
CSSM_TP_CertGroupVerify