Bug 783551 - Get tooltool running on the b2g on OS X builds. r=respindola
[gecko.git] / security / manager / ssl / src / nsSSLStatus.h
blob08ee654e3ec2a130823244b05cd142519bf85093
1 /* -*- Mode: C++; tab-width: 2; indent-tabs-mode: nil; c-basic-offset: 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"
12 #include "nsAutoPtr.h"
13 #include "nsXPIDLString.h"
14 #include "nsIX509Cert.h"
15 #include "nsISerializable.h"
16 #include "nsIClassInfo.h"
18 class nsSSLStatus
19 : public nsISSLStatus
20 , public nsISerializable
21 , public nsIClassInfo
23 public:
24 NS_DECL_ISUPPORTS
25 NS_DECL_NSISSLSTATUS
26 NS_DECL_NSISERIALIZABLE
27 NS_DECL_NSICLASSINFO
29 nsSSLStatus();
30 virtual ~nsSSLStatus();
32 /* public for initilization in this file */
33 nsCOMPtr<nsIX509Cert> mServerCert;
35 PRUint32 mKeyLength;
36 PRUint32 mSecretKeyLength;
37 nsXPIDLCString mCipherName;
39 bool mIsDomainMismatch;
40 bool mIsNotValidAtThisTime;
41 bool mIsUntrusted;
43 bool mHaveKeyLengthAndCipher;
45 /* mHaveCertErrrorBits is relied on to determine whether or not a SPDY
46 connection is eligible for joining in nsNSSSocketInfo::JoinConnection() */
47 bool mHaveCertErrorBits;
50 // 2c3837af-8b85-4a68-b0d8-0aed88985b32
51 #define NS_SSLSTATUS_CID \
52 { 0x2c3837af, 0x8b85, 0x4a68, \
53 { 0xb0, 0xd8, 0x0a, 0xed, 0x88, 0x98, 0x5b, 0x32 } }
55 #endif