}
NSSTrustDomain_FindCertificateByEncodedCertificate(  NSSTrustDomain *td,  NSSBER *encodedCertificate){    NSSCertificate *rvCert = NULL;    NSSToken *tok;    /* Try the cache */    rvCert = nssTrustDomain_GetCertByDERFromCache(td, encodedCertificate);    if (rvCert) {	return rvCert;    }    /* Not cached, look for it on tokens */    for (tok  = (NSSToken *)nssListIterator_Start(td->tokens);         tok != (NSSToken *)NULL;         tok  = (NSSToken *)nssListIterator_Next(td->tokens))    {	rvCert = nssToken_FindCertificateByEncodedCertificate(tok, NULL,	                                        encodedCertificate,	                                        nssTokenSearchType_TokenOnly);	if (rvCert) {	    /* cache it */	    nssTrustDomain_AddCertsToCache(td, &rvCert, 1);	    break;	}    }    nssListIterator_Finish(td->tokens);    return rvCert;}