|
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/. */ |
|
6 |
|
7 #ifndef _NSSSLSTATUS_H |
|
8 #define _NSSSLSTATUS_H |
|
9 |
|
10 #include "nsISSLStatus.h" |
|
11 #include "nsCOMPtr.h" |
|
12 #include "nsXPIDLString.h" |
|
13 #include "nsIX509Cert.h" |
|
14 #include "nsISerializable.h" |
|
15 #include "nsIClassInfo.h" |
|
16 |
|
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 |
|
27 |
|
28 nsSSLStatus(); |
|
29 virtual ~nsSSLStatus(); |
|
30 |
|
31 /* public for initilization in this file */ |
|
32 nsCOMPtr<nsIX509Cert> mServerCert; |
|
33 |
|
34 uint32_t mKeyLength; |
|
35 uint32_t mSecretKeyLength; |
|
36 nsXPIDLCString mCipherName; |
|
37 |
|
38 bool mIsDomainMismatch; |
|
39 bool mIsNotValidAtThisTime; |
|
40 bool mIsUntrusted; |
|
41 |
|
42 bool mHaveKeyLengthAndCipher; |
|
43 |
|
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 }; |
|
48 |
|
49 // 2c3837af-8b85-4a68-b0d8-0aed88985b32 |
|
50 #define NS_SSLSTATUS_CID \ |
|
51 { 0x2c3837af, 0x8b85, 0x4a68, \ |
|
52 { 0xb0, 0xd8, 0x0a, 0xed, 0x88, 0x98, 0x5b, 0x32 } } |
|
53 |
|
54 #endif |