certList = nssList_Create(NULL, PR_FALSE);
NSSTrustDomain_TraverseCertificates(  NSSTrustDomain *td,  PRStatus (*callback)(NSSCertificate *c, void *arg),  void *arg){    PRStatus nssrv;    NSSToken *token;    nssList *certList;    nssTokenCertSearch search;    (void *)nssTrustDomain_GetCertsFromCache(td, certList);    /* set the search criteria */    search.callback = callback;    search.cbarg = arg;    search.cached = certList;    search.trustDomain = td;    search.cryptoContext = NULL;    /* traverse the tokens */    for (token  = (NSSToken *)nssListIterator_Start(td->tokens);         token != (NSSToken *)NULL;         token  = (NSSToken *)nssListIterator_Next(td->tokens))    {	nssrv = nssToken_TraverseCertificates(token, NULL, &search);    }    nssListIterator_Finish(td->tokens);    nssList_Destroy(certList);    return NULL;}