security/manager/ssl/public/nsISSLStatus.idl

changeset 0
6474c204b198
     1.1 --- /dev/null	Thu Jan 01 00:00:00 1970 +0000
     1.2 +++ b/security/manager/ssl/public/nsISSLStatus.idl	Wed Dec 31 06:09:35 2014 +0100
     1.3 @@ -0,0 +1,35 @@
     1.4 +/* -*- Mode: C++; tab-width: 2; indent-tabs-mode: nil; c-basic-offset: 2 -*-
     1.5 + *
     1.6 + * This Source Code Form is subject to the terms of the Mozilla Public
     1.7 + * License, v. 2.0. If a copy of the MPL was not distributed with this
     1.8 + * file, You can obtain one at http://mozilla.org/MPL/2.0/. */
     1.9 +
    1.10 +#include "nsISupports.idl"
    1.11 +
    1.12 +interface nsIX509Cert;
    1.13 +
    1.14 +[scriptable, uuid(3f1fcd83-c5a9-4cd1-a250-7676ca7c7e34)]
    1.15 +interface nsISSLStatus : nsISupports {
    1.16 +  readonly attribute nsIX509Cert serverCert;
    1.17 +
    1.18 +  readonly attribute string cipherName;
    1.19 +  readonly attribute unsigned long keyLength;
    1.20 +  readonly attribute unsigned long secretKeyLength;
    1.21 +
    1.22 +  readonly attribute boolean isDomainMismatch;
    1.23 +  readonly attribute boolean isNotValidAtThisTime;
    1.24 +
    1.25 +  /* Note: To distinguish between 
    1.26 +   *         "unstrusted because missing or untrusted issuer"
    1.27 +   *       and 
    1.28 +   *         "untrusted because self signed"
    1.29 +   *       query nsIX509Cert3::isSelfSigned 
    1.30 +   */
    1.31 +  readonly attribute boolean isUntrusted;
    1.32 +
    1.33 +  /**
    1.34 +   * True only if (and after) serverCert was successfully validated as
    1.35 +   * Extended Validation (EV).
    1.36 +   */
    1.37 +  readonly attribute boolean isExtendedValidation;
    1.38 +};

mercurial