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

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

mercurial