nssCertificate_AddRef(c); nssList_AddUnique(ca->list, (void *)c);
if (!nssList_Get(ca->list, (void *)c)) { nssCertificate_AddRef(c); nssList_Add(ca->list, (void *)c); }
collect_certs(NSSCertificate *c, void *arg){    struct collect_arg_str *ca = (struct collect_arg_str *)arg;    /* Add the cert to the return list */    nssCertificate_AddRef(c);    nssList_AddUnique(ca->list, (void *)c);    if (ca->maximum > 0 && nssList_Count(ca->list) >= ca->maximum) {	/* signal the end of collection) */	nss_SetError(NSS_ERROR_MAXIMUM_FOUND);	return PR_FAILURE;    }    return PR_SUCCESS;}