if (nssrv == PR_SUCCESS) { NSSTrustDomain *td = NSSCertificate_GetTrustDomain(c); nssTrustDomain_AddCertsToCache(td, &c, 1); if (!nssList_Get(ta->cached, c)) { nssCertificate_AddRef(c); nssList_Add(ta->cached, c); } }
static PRStatus traverse_callback(NSSCertificate *c, void *arg){    PRStatus nssrv;    struct traverse_arg *ta = (struct traverse_arg *)arg;    nssrv = (*ta->callback)(c, ta->arg);    if (nssrv == PR_SUCCESS) {	NSSTrustDomain *td = NSSCertificate_GetTrustDomain(c);	nssTrustDomain_AddCertsToCache(td, &c, 1);	if (!nssList_Get(ta->cached, c)) {	    nssCertificate_AddRef(c);	    nssList_Add(ta->cached, c);	}    }    return nssrv;}