Back to index

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

#include <nsOCSPResponder.h>

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

List of all members.

Public Member Functions

NS_DECL_ISUPPORTS
NS_DECL_NSIOCSPRESPONDER 
nsOCSPResponder ()
 nsOCSPResponder (const PRUnichar *, const PRUnichar *)
virtual ~nsOCSPResponder ()

Static Public Member Functions

static PRInt32 CmpCAName (nsIOCSPResponder *a, nsIOCSPResponder *b)
static PRInt32 CompareEntries (nsIOCSPResponder *a, nsIOCSPResponder *b)
static PRBool IncludeCert (CERTCertificate *aCert)

Public Attributes

readonly attribute wstring responseSigner
readonly attribute wstring serviceURL

Private Attributes

nsString mCA
nsString mURL

Detailed Description

Definition at line 47 of file nsOCSPResponder.h.


Constructor & Destructor Documentation

Definition at line 52 of file nsOCSPResponder.cpp.

{
  /* member initializers and constructor code */
}

Definition at line 57 of file nsOCSPResponder.cpp.

{
  mCA.Assign(aCA);
  mURL.Assign(aURL);
}

Definition at line 63 of file nsOCSPResponder.cpp.

{
  /* destructor code */
}

Member Function Documentation

Definition at line 117 of file nsOCSPResponder.cpp.

{
  PRInt32 cmp1;
  nsXPIDLString aTok, bTok;
  a->GetResponseSigner(getter_Copies(aTok));
  b->GetResponseSigner(getter_Copies(bTok));
  if (aTok != nsnull && bTok != nsnull) {
    cmp1 = Compare(aTok, bTok);
  } else {
    cmp1 = (aTok == nsnull) ? 1 : -1;
  }
  return cmp1;
}

Here is the call graph for this function:

Here is the caller graph for this function:

Definition at line 135 of file nsOCSPResponder.cpp.

{
  nsXPIDLString aURL, bURL;
  nsAutoString aURLAuto, bURLAuto;

  a->GetServiceURL(getter_Copies(aURL));
  aURLAuto.Assign(aURL);
  b->GetServiceURL(getter_Copies(bURL));
  bURLAuto.Assign(bURL);

  if (!aURLAuto.IsEmpty()) {
    if (!bURLAuto.IsEmpty()) {
      return nsOCSPResponder::CmpCAName(a, b);
    } else {
      return -1;
    }
  } else {
    if (!bURLAuto.IsEmpty()) {
      return 1;
    } else {
      return nsOCSPResponder::CmpCAName(a, b);
    }
  }
}

Here is the call graph for this function:

Here is the caller graph for this function:

PRBool nsOCSPResponder::IncludeCert ( CERTCertificate *  aCert) [static]

Definition at line 84 of file nsOCSPResponder.cpp.

{
  CERTCertTrust *trust;
  char *nickname;

  trust = aCert->trust;
  nickname = aCert->nickname;

  PR_ASSERT(trust != nsnull);

  // Check that trust is non-null //
  if (trust == nsnull) {
    return PR_FALSE;
  }

  if ( ( ( trust->sslFlags & CERTDB_INVISIBLE_CA ) ||
         (trust->emailFlags & CERTDB_INVISIBLE_CA ) ||
         (trust->objectSigningFlags & CERTDB_INVISIBLE_CA ) ) ||
       nickname == NULL) {
      return PR_FALSE;
  }
  if ((trust->sslFlags & CERTDB_VALID_CA) ||
      (trust->emailFlags & CERTDB_VALID_CA) ||
      (trust->objectSigningFlags & CERTDB_VALID_CA)) {
      return PR_TRUE;
  }
  return PR_FALSE;
}

Here is the caller graph for this function:


Member Data Documentation

Definition at line 61 of file nsOCSPResponder.h.

Definition at line 62 of file nsOCSPResponder.h.

readonly attribute wstring nsIOCSPResponder::responseSigner [inherited]

Definition at line 43 of file nsIOCSPResponder.idl.

readonly attribute wstring nsIOCSPResponder::serviceURL [inherited]

Definition at line 44 of file nsIOCSPResponder.idl.


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