Back to index

lightning-sunbird  0.9+nobinonly
Public Member Functions | Public Attributes | Private Attributes
nsCipherInfo Class Reference

#include <nsCipherInfo.h>

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

List of all members.

Public Member Functions

NS_DECL_ISUPPORTS
NS_DECL_NSICIPHERINFO 
nsCipherInfo (PRUint16 aCipherId)
virtual ~nsCipherInfo ()

Public Attributes

readonly attribute ACString longName
readonly attribute PRBool isSSL2
readonly attribute PRBool isFIPS
readonly attribute PRBool isExportable
readonly attribute PRBool nonStandard
readonly attribute ACString symCipherName
readonly attribute ACString authAlgorithmName
readonly attribute ACString keaTypeName
readonly attribute ACString macAlgorithmName
readonly attribute PRInt32 effectiveKeyBits

Private Attributes

PRBool mHaveInfo
SSLCipherSuiteInfo mInfo

Detailed Description

Definition at line 52 of file nsCipherInfo.h.


Constructor & Destructor Documentation

Definition at line 73 of file nsCipherInfo.cpp.

:mHaveInfo(PR_FALSE)
{
  for (PRUint16 i = 0; i < SSL_NumImplementedCiphers; ++i)
  {
    const PRUint16 i_id = SSL_ImplementedCiphers[i];
    if (i_id != aCipherId)
      continue;
  
    PRBool isGood = (
      (SECSuccess == SSL_GetCipherSuiteInfo(i_id, &mInfo, sizeof(mInfo)))
      &&
      (sizeof(mInfo) == mInfo.length));

    if (!isGood)
    {
      NS_ASSERTION(0, "unable to get info for implemented cipher");
      continue;
    }
    
    mHaveInfo = PR_TRUE;
  }
}

Here is the call graph for this function:

Definition at line 97 of file nsCipherInfo.cpp.

{
}

Member Data Documentation

readonly attribute ACString nsICipherInfo::authAlgorithmName [inherited]

Definition at line 51 of file nsICipherInfo.idl.

Definition at line 54 of file nsICipherInfo.idl.

Definition at line 48 of file nsICipherInfo.idl.

readonly attribute PRBool nsICipherInfo::isFIPS [inherited]

Definition at line 47 of file nsICipherInfo.idl.

readonly attribute PRBool nsICipherInfo::isSSL2 [inherited]

Definition at line 46 of file nsICipherInfo.idl.

readonly attribute ACString nsICipherInfo::keaTypeName [inherited]

Definition at line 52 of file nsICipherInfo.idl.

readonly attribute ACString nsICipherInfo::longName [inherited]

Definition at line 44 of file nsICipherInfo.idl.

readonly attribute ACString nsICipherInfo::macAlgorithmName [inherited]

Definition at line 53 of file nsICipherInfo.idl.

Definition at line 62 of file nsCipherInfo.h.

Definition at line 63 of file nsCipherInfo.h.

Definition at line 49 of file nsICipherInfo.idl.

readonly attribute ACString nsICipherInfo::symCipherName [inherited]

Definition at line 50 of file nsICipherInfo.idl.


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