1.1 --- /dev/null Thu Jan 01 00:00:00 1970 +0000 1.2 +++ b/security/manager/ssl/src/nsSSLStatus.h Wed Dec 31 06:09:35 2014 +0100 1.3 @@ -0,0 +1,54 @@ 1.4 +/* -*- Mode: C++; tab-width: 2; indent-tabs-mode: nil; c-basic-offset: 2 -*- 1.5 + * 1.6 + * This Source Code Form is subject to the terms of the Mozilla Public 1.7 + * License, v. 2.0. If a copy of the MPL was not distributed with this 1.8 + * file, You can obtain one at http://mozilla.org/MPL/2.0/. */ 1.9 + 1.10 +#ifndef _NSSSLSTATUS_H 1.11 +#define _NSSSLSTATUS_H 1.12 + 1.13 +#include "nsISSLStatus.h" 1.14 +#include "nsCOMPtr.h" 1.15 +#include "nsXPIDLString.h" 1.16 +#include "nsIX509Cert.h" 1.17 +#include "nsISerializable.h" 1.18 +#include "nsIClassInfo.h" 1.19 + 1.20 +class nsSSLStatus 1.21 + : public nsISSLStatus 1.22 + , public nsISerializable 1.23 + , public nsIClassInfo 1.24 +{ 1.25 +public: 1.26 + NS_DECL_THREADSAFE_ISUPPORTS 1.27 + NS_DECL_NSISSLSTATUS 1.28 + NS_DECL_NSISERIALIZABLE 1.29 + NS_DECL_NSICLASSINFO 1.30 + 1.31 + nsSSLStatus(); 1.32 + virtual ~nsSSLStatus(); 1.33 + 1.34 + /* public for initilization in this file */ 1.35 + nsCOMPtr<nsIX509Cert> mServerCert; 1.36 + 1.37 + uint32_t mKeyLength; 1.38 + uint32_t mSecretKeyLength; 1.39 + nsXPIDLCString mCipherName; 1.40 + 1.41 + bool mIsDomainMismatch; 1.42 + bool mIsNotValidAtThisTime; 1.43 + bool mIsUntrusted; 1.44 + 1.45 + bool mHaveKeyLengthAndCipher; 1.46 + 1.47 + /* mHaveCertErrrorBits is relied on to determine whether or not a SPDY 1.48 + connection is eligible for joining in nsNSSSocketInfo::JoinConnection() */ 1.49 + bool mHaveCertErrorBits; 1.50 +}; 1.51 + 1.52 +// 2c3837af-8b85-4a68-b0d8-0aed88985b32 1.53 +#define NS_SSLSTATUS_CID \ 1.54 +{ 0x2c3837af, 0x8b85, 0x4a68, \ 1.55 + { 0xb0, 0xd8, 0x0a, 0xed, 0x88, 0x98, 0x5b, 0x32 } } 1.56 + 1.57 +#endif