<?xml version="1.0"?> 
<!-- 
   - The contents of this file are subject to the Mozilla Public
   - License Version 1.1 (the "License"); you may not use this file
   - except in compliance with the License. You may obtain a copy of
   - the License at http://www.mozilla.org/MPL/
   - 
   - Software distributed under the License is distributed on an "AS
   - IS" basis, WITHOUT WARRANTY OF ANY KIND, either express or
   - implied. See the License for the specific language governing
   - rights and limitations under the License.
   - 
   - The Original Code is mozilla.org code.
   - 
   - The Initial Developer of the Original Code is Netscape
   - Communications Corp.  Portions created by Netscape are
   - Copyright (C) 2001 Netscape Communications Corp.  All
   - Rights Reserved.
   - 
   - Contributor(s):
   -   David Drinan <ddrinan@netscape.com>
  -->

<?xml-stylesheet href="chrome://communicator/skin/" type="text/css"?>
<?xml-stylesheet href="chrome://communicator/skin/dialogOverlay.css" type="text/css"?>

<!DOCTYPE window [
  <!ENTITY % brandDTD SYSTEM "chrome://global/locale/brand.dtd">
  <!ENTITY % prefValidationDTD SYSTEM "chrome://pippki/locale/pref-validation.dtd">
  %brandDTD;
  %prefValidationDTD;
]>

<window xmlns="http://www.mozilla.org/keymaster/gatekeeper/there.is.only.xul"
        class="color-dialog"
        orient="vertical"
        onload="onLoad();" >

  <!-- List elements to manage for prefs -->
  <script type="application/x-javascript">
  <![CDATA[
    var _elementIDs = ["securityOCSPEnabled", "serviceURL", "signingCA"];
  ]]>
  </script>
            
  <script src="pref-validation.js"/>

  <!-- Fancy panel header -->
  <hbox class="box-smallheader" title="&validation.title;"/>

  <groupbox orient="vertical">
    <label value="&validation.crl.label;"/>
    <html> &validation.crl.description; </html>
    <hbox halign="left" autostretch="never">
      <button class="dialog" label="&validation.managecrls.button;" disabled="false"
        oncommand="openCrlManager();" />
    </hbox>
  </groupbox>

  <groupbox orient="vertical" autostretch="never" >
    <label value="&validation.ocsp.label;"/>
    <html> &validation.ocsp.description; </html>
    <!-- Prefs -->
    <radiogroup id="securityOCSPEnabled" orient="vertical" autostretch="never"
                 pref="true" preftype="int" prefstring="security.OCSP.enabled"
                  prefattribute="value">
        <radio group="securityOCSPEnabled" value="0" label="&disableOCSP.label;" oncommand="doEnabling();"/>
        <radio group="securityOCSPEnabled" value="1" label="&certOCSP.label;" oncommand="doEnabling();"/>
        <radio group="securityOCSPEnabled" value="2" label="&proxyOCSP.label;" oncommand="doEnabling();"/>

        <grid class="indent" flex="1">
          <columns>
          <column/>
          <column flex="1"/>
          </columns>
          
          <rows>
            <row>
              <text class="label" value="&signingCA.label;" for="signingCA"/>
              <menulist id="signingCA" pref="true" preftype="string" prefstring="security.OCSP.signingCA"
                           prefattribute="value" flex="1" oncommand="changeURL()">
                <menupopup/>
              </menulist>
            </row>
            <row>
              <text class="label" value="&serviceURL.label;" for="serviceURL"/>
              <textbox id="serviceURL" pref="true" preftype="string" prefstring="security.OCSP.URL"
                           prefattribute="value" flex="1"/>
            </row>
         </rows>
       </grid>
    </radiogroup>
  </groupbox>
</window>
