ret = prefService->CopyCharPref("security.default_personal_cert", &mode);
ret = pref->GetCharPref("security.default_personal_cert", &mode);
nsresult nsGetUserCertChoice(SSM_UserCertChoice* certChoice){	char *mode=NULL;	nsresult ret;	NS_ENSURE_ARG_POINTER(certChoice);	nsCOMPtr<nsIPref> prefService = do_GetService(NS_PREF_CONTRACTID);	ret = prefService->CopyCharPref("security.default_personal_cert", &mode);	if (NS_FAILED(ret)) {		goto loser;	}    if (PL_strcmp(mode, "Select Automatically") == 0) {		*certChoice = AUTO;	}    else if (PL_strcmp(mode, "Ask Every Time") == 0) {        *certChoice = ASK;    }    else {      // Most likely we see a nickname from a migrated cert.      // We do not currently support that, ask the user which cert to use.		  *certChoice = ASK;	}loser:	if (mode) {		nsMemory::Free(mode);	}	return ret;}