security/manager/ssl/src/nsSSLStatus.h

Thu, 22 Jan 2015 13:21:57 +0100

author
Michael Schloh von Bennewitz <michael@schloh.com>
date
Thu, 22 Jan 2015 13:21:57 +0100
branch
TOR_BUG_9701
changeset 15
b8a032363ba2
permissions
-rw-r--r--

Incorporate requested changes from Mozilla in review:
https://bugzilla.mozilla.org/show_bug.cgi?id=1123480#c6

     1 /* -*- Mode: C++; tab-width: 2; indent-tabs-mode: nil; c-basic-offset: 2 -*-
     2  *
     3  * This Source Code Form is subject to the terms of the Mozilla Public
     4  * License, v. 2.0. If a copy of the MPL was not distributed with this
     5  * file, You can obtain one at http://mozilla.org/MPL/2.0/. */
     7 #ifndef _NSSSLSTATUS_H
     8 #define _NSSSLSTATUS_H
    10 #include "nsISSLStatus.h"
    11 #include "nsCOMPtr.h"
    12 #include "nsXPIDLString.h"
    13 #include "nsIX509Cert.h"
    14 #include "nsISerializable.h"
    15 #include "nsIClassInfo.h"
    17 class nsSSLStatus
    18   : public nsISSLStatus
    19   , public nsISerializable
    20   , public nsIClassInfo
    21 {
    22 public:
    23   NS_DECL_THREADSAFE_ISUPPORTS
    24   NS_DECL_NSISSLSTATUS
    25   NS_DECL_NSISERIALIZABLE
    26   NS_DECL_NSICLASSINFO
    28   nsSSLStatus();
    29   virtual ~nsSSLStatus();
    31   /* public for initilization in this file */
    32   nsCOMPtr<nsIX509Cert> mServerCert;
    34   uint32_t mKeyLength;
    35   uint32_t mSecretKeyLength;
    36   nsXPIDLCString mCipherName;
    38   bool mIsDomainMismatch;
    39   bool mIsNotValidAtThisTime;
    40   bool mIsUntrusted;
    42   bool mHaveKeyLengthAndCipher;
    44   /* mHaveCertErrrorBits is relied on to determine whether or not a SPDY
    45      connection is eligible for joining in nsNSSSocketInfo::JoinConnection() */
    46   bool mHaveCertErrorBits;
    47 };
    49 // 2c3837af-8b85-4a68-b0d8-0aed88985b32
    50 #define NS_SSLSTATUS_CID \
    51 { 0x2c3837af, 0x8b85, 0x4a68, \
    52   { 0xb0, 0xd8, 0x0a, 0xed, 0x88, 0x98, 0x5b, 0x32 } }
    54 #endif

mercurial