Back to index

lightning-sunbird  0.9+nobinonly
Public Types | Public Member Functions | Public Attributes | Protected Member Functions | Protected Attributes | Private Member Functions | Friends
nsNSSSocketInfo Class Reference

#include <nsNSSIOLayer.h>

Inheritance diagram for nsNSSSocketInfo:
Inheritance graph
[legend]
Collaboration diagram for nsNSSSocketInfo:
Collaboration graph
[legend]

List of all members.

Public Types

enum  BadCertUIStatusType { bcuis_not_shown, bcuis_active, bcuis_was_shown }
enum  CalledFromType { calledFromList, calledFromObject }

Public Member Functions

 nsNSSSocketInfo ()
virtual ~nsNSSSocketInfo ()
NS_DECL_ISUPPORTS
NS_DECL_NSITRANSPORTSECURITYINFO
NS_DECL_NSISSLSOCKETCONTROL
NS_DECL_NSIINTERFACEREQUESTOR
NS_DECL_NSISSLSTATUSPROVIDER
NS_DECL_NSICLIENTAUTHUSERDECISION
nsresult 
SetSecurityState (PRUint32 aState)
nsresult SetShortSecurityDescription (const PRUnichar *aText)
nsresult SetForSTARTTLS (PRBool aForSTARTTLS)
nsresult GetForSTARTTLS (PRBool *aForSTARTTLS)
nsresult GetFileDescPtr (PRFileDesc **aFilePtr)
nsresult SetFileDescPtr (PRFileDesc *aFilePtr)
nsresult GetHandshakePending (PRBool *aHandshakePending)
nsresult SetHandshakePending (PRBool aHandshakePending)
nsresult GetHostName (char **aHostName)
nsresult SetHostName (const char *aHostName)
nsresult GetPort (PRInt32 *aPort)
nsresult SetPort (PRInt32 aPort)
void SetCanceled (PRBool aCanceled)
PRBool GetCanceled ()
void SetHasCleartextPhase (PRBool aHasCleartextPhase)
PRBool GetHasCleartextPhase ()
void SetHandshakeInProgress (PRBool aIsIn)
PRBool GetHandshakeInProgress ()
PRBool HandshakeTimeout ()
void SetAllowTLSIntoleranceTimeout (PRBool aAllow)
void SetBadCertUIStatus (BadCertUIStatusType aNewStatus)
BadCertUIStatusType GetBadCertUIStatus ()
nsresult RememberCAChain (CERTCertList *aCertList)
nsresult SetSSLStatus (nsISSLStatus *aSSLStatus)
PRStatus CloseSocketAndDestroy ()
void proxyStartSSL ()
void StartTLS ()
void getInterface (in nsIIDRef uuid,[iid_is(uuid), retval] out nsQIResult result)
 Retrieves the specified interface pointer.
void shutdown (CalledFromType calledFrom)
PRBool isAlreadyShutDown ()
void logout ()
PRBool isPK11LoggedOut ()

Public Attributes

readonly attribute unsigned long securityState
readonly attribute wstring shortSecurityDescription
attribute nsIInterfaceRequestor notificationCallbacks
attribute boolean forceHandshake
readonly attribute nsISupports SSLStatus
attribute boolean rememberClientAuthCertificate

Protected Member Functions

nsresult ActivateSSL ()

Protected Attributes

nsCOMPtr< nsIInterfaceRequestormCallbacks
PRFileDescmFd
PRUint32 mSecurityState
nsString mShortDesc
PRPackedBool mForSTARTTLS
PRPackedBool mHandshakePending
PRPackedBool mCanceled
PRPackedBool mHasCleartextPhase
PRPackedBool mHandshakeInProgress
PRPackedBool mAllowTLSIntoleranceTimeout
PRPackedBool mRememberClientAuthCertificate
BadCertUIStatusType mBadCertUIStatus
PRIntervalTime mHandshakeStartTime
PRInt32 mPort
nsXPIDLCString mHostName
CERTCertList * mCAChain
nsCOMPtr< nsISSLStatusmSSLStatus
nsSSLSocketThreadDatamThreadData

Private Member Functions

virtual void virtualDestroyNSSReference ()
void destructorSafeDestroyNSSReference ()

Friends

class nsSSLThread

Detailed Description

Definition at line 123 of file nsNSSIOLayer.h.


Member Enumeration Documentation

Enumerator:
bcuis_not_shown 
bcuis_active 
bcuis_was_shown 

Definition at line 172 of file nsNSSIOLayer.h.

Enumerator:
calledFromList 
calledFromObject 

Definition at line 270 of file nsNSSShutDown.h.


Constructor & Destructor Documentation

Definition at line 201 of file nsNSSIOLayer.cpp.

Here is the call graph for this function:


Member Function Documentation

Definition at line 432 of file nsNSSIOLayer.cpp.

Here is the call graph for this function:

Definition at line 1027 of file nsNSSIOLayer.cpp.

Here is the call graph for this function:

Here is the caller graph for this function:

Definition at line 218 of file nsNSSIOLayer.cpp.

Here is the call graph for this function:

Here is the caller graph for this function:

Definition at line 177 of file nsNSSIOLayer.h.

{ return mBadCertUIStatus; }

Here is the caller graph for this function:

Definition at line 283 of file nsNSSIOLayer.cpp.

{
  return mCanceled;
}

Here is the caller graph for this function:

Definition at line 448 of file nsNSSIOLayer.cpp.

{
  *aFilePtr = mFd;
  return NS_OK;
}

Definition at line 407 of file nsNSSIOLayer.cpp.

{
  *aForSTARTTLS = mForSTARTTLS;
  return NS_OK;
}

Definition at line 167 of file nsNSSIOLayer.h.

Here is the caller graph for this function:

Here is the caller graph for this function:

Definition at line 306 of file nsNSSIOLayer.cpp.

{
  return mHasCleartextPhase;
}

Here is the caller graph for this function:

nsresult nsNSSSocketInfo::GetHostName ( char **  aHostName)

Definition at line 258 of file nsNSSIOLayer.cpp.

Here is the caller graph for this function:

void nsIInterfaceRequestor::getInterface ( in nsIIDRef  uuid,
[iid_is(uuid), retval] out nsQIResult  result 
) [inherited]

Retrieves the specified interface pointer.

Parameters:
uuidThe IID of the interface being requested.
result[out] The interface pointer to be filled in if the interface is accessible.
Returns:
NS_OK - interface was successfully returned. NS_NOINTERFACE - interface not accessible. NS_ERROR* - method failure.

Definition at line 272 of file nsNSSIOLayer.cpp.

{
  *aPort = mPort;
  return NS_OK;
}

Here is the caller graph for this function:

Definition at line 521 of file nsNSSIOLayer.cpp.

Here is the caller graph for this function:

Definition at line 298 of file nsNSSShutDown.h.

{ return mAlreadyShutDown; }

Here is the caller graph for this function:

Definition at line 330 of file nsNSSShutDown.h.

  {
    return mIsLoggedOut;
  }

Here is the caller graph for this function:

void nsOnPK11LogoutCancelObject::logout ( ) [inline, inherited]

Definition at line 320 of file nsNSSShutDown.h.

  {
    // We do not care for a race condition.
    // Once the bool arrived at false,
    // later calls to isPK11LoggedOut() will see it.
    // This is a one-time change from 0 to 1.
    
    mIsLoggedOut = PR_TRUE;
  }

Here is the caller graph for this function:

nsresult nsNSSSocketInfo::RememberCAChain ( CERTCertList *  aCertList)

Definition at line 470 of file nsNSSIOLayer.cpp.

Here is the call graph for this function:

Definition at line 514 of file nsNSSIOLayer.cpp.

Here is the caller graph for this function:

Definition at line 500 of file nsNSSIOLayer.cpp.

{
  if (mBadCertUIStatus == bcuis_active && 
      aNewStatus == bcuis_was_shown)
  {
    // we were blocked and going back to unblocked,
    // so let's reset the handshake start time, in order to ensure
    // we do not count the amount of time while the UI was shown.
    mHandshakeStartTime = PR_IntervalNow();
  }

  mBadCertUIStatus = aNewStatus;
}

Here is the caller graph for this function:

Definition at line 278 of file nsNSSIOLayer.cpp.

{
  mCanceled = aCanceled;
}

Here is the caller graph for this function:

Definition at line 454 of file nsNSSIOLayer.cpp.

{
  mFd = aFilePtr;
  return NS_OK;
}

Here is the caller graph for this function:

Definition at line 414 of file nsNSSIOLayer.cpp.

{
  mForSTARTTLS = aForSTARTTLS;
  return NS_OK;
}

Here is the caller graph for this function:

Definition at line 490 of file nsNSSIOLayer.cpp.

Here is the caller graph for this function:

Definition at line 244 of file nsNSSIOLayer.cpp.

{
  mHandshakePending = aHandshakePending;
  return NS_OK;
}

Here is the caller graph for this function:

Definition at line 301 of file nsNSSIOLayer.cpp.

{
  mHasCleartextPhase = aHasCleartextPhase;
}

Here is the caller graph for this function:

Definition at line 251 of file nsNSSIOLayer.cpp.

{
  mHostName.Adopt(host ? nsCRT::strdup(host) : 0);
  return NS_OK;
}

Here is the call graph for this function:

Here is the caller graph for this function:

Definition at line 265 of file nsNSSIOLayer.cpp.

{
  mPort = aPort;
  return NS_OK;
}

Here is the caller graph for this function:

Definition at line 350 of file nsNSSIOLayer.cpp.

{
  mSecurityState = aState;
  return NS_OK;
}

Here is the caller graph for this function:

Definition at line 368 of file nsNSSIOLayer.cpp.

                                                                   {
  mShortDesc.Assign(aText);
  return NS_OK;
}

Here is the caller graph for this function:

Definition at line 483 of file nsNSSIOLayer.cpp.

{
  mSSLStatus = aSSLStatus;

  return NS_OK;
}

Here is the caller graph for this function:

void nsNSSShutDownObject::shutdown ( CalledFromType  calledFrom) [inline, inherited]

Definition at line 285 of file nsNSSShutDown.h.

  {
    if (!mAlreadyShutDown) {
      if (calledFromObject == calledFrom) {
        nsNSSShutDownList::forget(this);
      }
      if (calledFromList == calledFrom) {
        virtualDestroyNSSReference();
      }
      mAlreadyShutDown = PR_TRUE;
    }
  }

Here is the call graph for this function:

Here is the caller graph for this function:

Implements nsNSSShutDownObject.

Definition at line 213 of file nsNSSIOLayer.cpp.

Here is the call graph for this function:


Friends And Related Function Documentation

friend class nsSSLThread [friend]

Definition at line 215 of file nsNSSIOLayer.h.


Member Data Documentation

Definition at line 48 of file nsISSLSocketControl.idl.

Definition at line 196 of file nsNSSIOLayer.h.

Definition at line 198 of file nsNSSIOLayer.h.

CERTCertList* nsNSSSocketInfo::mCAChain [protected]

Definition at line 202 of file nsNSSIOLayer.h.

Definition at line 187 of file nsNSSIOLayer.h.

Definition at line 193 of file nsNSSIOLayer.h.

Definition at line 188 of file nsNSSIOLayer.h.

Definition at line 191 of file nsNSSIOLayer.h.

Definition at line 195 of file nsNSSIOLayer.h.

Definition at line 192 of file nsNSSIOLayer.h.

Definition at line 199 of file nsNSSIOLayer.h.

Definition at line 194 of file nsNSSIOLayer.h.

Definition at line 201 of file nsNSSIOLayer.h.

Definition at line 200 of file nsNSSIOLayer.h.

Definition at line 197 of file nsNSSIOLayer.h.

Definition at line 189 of file nsNSSIOLayer.h.

Definition at line 190 of file nsNSSIOLayer.h.

Definition at line 205 of file nsNSSIOLayer.h.

Definition at line 209 of file nsNSSIOLayer.h.

Definition at line 47 of file nsISSLSocketControl.idl.

Definition at line 67 of file nsIClientAuthDialogs.idl.

Definition at line 45 of file nsITransportSecurityInfo.idl.

Definition at line 46 of file nsITransportSecurityInfo.idl.

readonly attribute nsISupports nsISSLStatusProvider::SSLStatus [inherited]

Definition at line 43 of file nsISSLStatusProvider.idl.


The documentation for this class was generated from the following files: