michael@0: /* -*- Mode: C++; tab-width: 2; indent-tabs-mode: nil; c-basic-offset: 2 -*- michael@0: * michael@0: * This Source Code Form is subject to the terms of the Mozilla Public michael@0: * License, v. 2.0. If a copy of the MPL was not distributed with this michael@0: * file, You can obtain one at http://mozilla.org/MPL/2.0/. */ michael@0: michael@0: #ifndef _NSSSLSTATUS_H michael@0: #define _NSSSLSTATUS_H michael@0: michael@0: #include "nsISSLStatus.h" michael@0: #include "nsCOMPtr.h" michael@0: #include "nsXPIDLString.h" michael@0: #include "nsIX509Cert.h" michael@0: #include "nsISerializable.h" michael@0: #include "nsIClassInfo.h" michael@0: michael@0: class nsSSLStatus michael@0: : public nsISSLStatus michael@0: , public nsISerializable michael@0: , public nsIClassInfo michael@0: { michael@0: public: michael@0: NS_DECL_THREADSAFE_ISUPPORTS michael@0: NS_DECL_NSISSLSTATUS michael@0: NS_DECL_NSISERIALIZABLE michael@0: NS_DECL_NSICLASSINFO michael@0: michael@0: nsSSLStatus(); michael@0: virtual ~nsSSLStatus(); michael@0: michael@0: /* public for initilization in this file */ michael@0: nsCOMPtr mServerCert; michael@0: michael@0: uint32_t mKeyLength; michael@0: uint32_t mSecretKeyLength; michael@0: nsXPIDLCString mCipherName; michael@0: michael@0: bool mIsDomainMismatch; michael@0: bool mIsNotValidAtThisTime; michael@0: bool mIsUntrusted; michael@0: michael@0: bool mHaveKeyLengthAndCipher; michael@0: michael@0: /* mHaveCertErrrorBits is relied on to determine whether or not a SPDY michael@0: connection is eligible for joining in nsNSSSocketInfo::JoinConnection() */ michael@0: bool mHaveCertErrorBits; michael@0: }; michael@0: michael@0: // 2c3837af-8b85-4a68-b0d8-0aed88985b32 michael@0: #define NS_SSLSTATUS_CID \ michael@0: { 0x2c3837af, 0x8b85, 0x4a68, \ michael@0: { 0xb0, 0xd8, 0x0a, 0xed, 0x88, 0x98, 0x5b, 0x32 } } michael@0: michael@0: #endif