return(SECSuccess);  #if 0	 loser: if ( retCerts ) { *retCerts = NULL; } if ( certs ) { CERT_DestroyCertArray(certs, ncerts); } return(SECFailure); #endif
return (fcerts ? SECSuccess : SECFailure);
CERT_ImportCerts(CERTCertDBHandle *certdb, SECCertUsage usage,		 unsigned int ncerts, SECItem **derCerts,		 CERTCertificate ***retCerts, PRBool keepCerts,		 PRBool caOnly, char *nickname){    unsigned int i;    CERTCertificate **certs = NULL;    SECStatus rv;    unsigned int fcerts = 0;    if ( ncerts ) {	certs = (CERTCertificate**)PORT_ZAlloc(sizeof(CERTCertificate *) * ncerts );	if ( certs == NULL ) {	    return(SECFailure);	}    	/* decode all of the certs into the temporary DB */	for ( i = 0, fcerts= 0; i < ncerts; i++) {	    certs[fcerts] = CERT_NewTempCertificate(certdb,	                                            derCerts[i],	                                            NULL,	                                            PR_FALSE,	                                            PR_TRUE);	    if (certs[fcerts]) fcerts++;	}	if ( keepCerts ) {	    for ( i = 0; i < fcerts; i++ ) {                char* canickname = NULL;                PRBool freeNickname = PR_FALSE;		SECKEY_UpdateCertPQG(certs[i]);                                if ( CERT_IsCACert(certs[i], NULL) ) {                    canickname = CERT_MakeCANickname(certs[i]);                    if ( canickname != NULL ) {                        freeNickname = PR_TRUE;                    }                }		if(CERT_IsCACert(certs[i], NULL) && (fcerts > 1)) {		    /* if we are importing only a single cert and specifying		     * a nickname, we want to use that nickname if it a CA,		     * otherwise if there are more than one cert, we don't		     * know which cert it belongs to. But we still may try                     * the individual canickname from the cert itself.		     */		    rv = CERT_AddTempCertToPerm(certs[i], canickname, NULL);		} else {		    rv = CERT_AddTempCertToPerm(certs[i],                                                nickname?nickname:canickname, NULL);		}		if (rv == SECSuccess) {		    CERT_SaveImportedCert(certs[i], usage, caOnly, NULL);		}                if (PR_TRUE == freeNickname) {                    PORT_Free(canickname);                }		/* don't care if it fails - keep going */	    }	}    }    if ( retCerts ) {	*retCerts = certs;    } else {	if (certs) {	    CERT_DestroyCertArray(certs, fcerts);	}    }    return(SECSuccess);    #if 0	/* dead code here - why ?? XXX */loser:    if ( retCerts ) {	*retCerts = NULL;    }    if ( certs ) {	CERT_DestroyCertArray(certs, ncerts);    }        return(SECFailure);#endif}