static void setOCSPOptions(nsIPref * pref)
static void setOCSPOptions(nsIPrefBranch * pref)
static void setOCSPOptions(nsIPref * pref){  nsNSSShutDownPreventionLock locker;  // Set up OCSP //  PRInt32 ocspEnabled;  pref->GetIntPref("security.OCSP.enabled", &ocspEnabled);  switch (ocspEnabled) {  case 0:	  CERT_DisableOCSPChecking(CERT_GetDefaultCertDB());	  CERT_DisableOCSPDefaultResponder(CERT_GetDefaultCertDB());	  break;  case 1:    CERT_EnableOCSPChecking(CERT_GetDefaultCertDB());    break;  case 2:    {      char *signingCA = nsnull;      char *url = nsnull;      // Get the signing CA and service url //      pref->CopyCharPref("security.OCSP.signingCA", &signingCA);      pref->CopyCharPref("security.OCSP.URL", &url);      // Set OCSP up      CERT_EnableOCSPChecking(CERT_GetDefaultCertDB());      CERT_SetOCSPDefaultResponder(CERT_GetDefaultCertDB(), url, signingCA);      CERT_EnableOCSPDefaultResponder(CERT_GetDefaultCertDB());      nsMemory::Free(signingCA);      nsMemory::Free(url);    }	  break;  }}