Wed, 31 Dec 2014 06:09:35 +0100
Cloned upstream origin tor-browser at tor-browser-31.3.0esr-4.5-1-build1
revision ID fc1c9ff7c1b2defdbc039f12214767608f46423f for hacking purpose.
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 |