Back to index

lightning-sunbird  0.9+nobinonly
Defines | Functions | Variables
nsAuthFactory.cpp File Reference
#include "nsIGenericFactory.h"
#include "nsAuth.h"
#include "nsHttpNegotiateAuth.h"
#include "nsAuthGSSAPI.h"
#include "nsAuthSASL.h"

Go to the source code of this file.

Defines

#define NS_HTTPNEGOTIATEAUTH_CID
#define NS_NEGOTIATEAUTH_CID
#define NS_GSSAUTH_CID
#define NS_AUTHSASL_CID
#define InitNegotiateAuth   nsnull

Functions

static NS_METHOD nsKerbGSSAPIAuthConstructor (nsISupports *outer, REFNSIID iid, void **result)
static NS_METHOD nsGSSAPIAuthConstructor (nsISupports *outer, REFNSIID iid, void **result)

Variables

static nsModuleComponentInfo components []

Define Documentation

Definition at line 234 of file nsAuthFactory.cpp.

Value:
{ /* 815e42e0-72cc-480f-934b-148e33c228a6 */       \
  0x815e42e0,                                      \
  0x72cc,                                          \
  0x480f,                                          \
  {0x93, 0x4b, 0x14, 0x8e, 0x33, 0xc2, 0x28, 0xa6} \
}

Definition at line 169 of file nsAuthFactory.cpp.

Value:
{ /* dc8e21a0-03e4-11da-8cd6-0800200c9a66 */       \
  0xdc8e21a0,                                      \
  0x03e4,                                          \
  0x11da,                                          \
  {0x8c, 0xd6, 0x08, 0x00, 0x20, 0x0c, 0x9a, 0x66} \
}

Definition at line 61 of file nsAuthFactory.cpp.

Value:
{ /* 75c80fd0-accb-432c-af59-ec60668c3990 */       \
  0x75c80fd0,                                      \
  0xaccb,                                          \
  0x432c,                                          \
  {0xaf, 0x59, 0xec, 0x60, 0x66, 0x8c, 0x39, 0x90} \
}

Definition at line 42 of file nsAuthFactory.cpp.

Value:
{ /* 96ec4163-efc8-407a-8735-007fb26be4e8 */       \
  0x96ec4163,                                      \
  0xefc8,                                          \
  0x407a,                                          \
  {0x87, 0x35, 0x00, 0x7f, 0xb2, 0x6b, 0xe4, 0xe8} \
}

Definition at line 54 of file nsAuthFactory.cpp.


Function Documentation

static NS_METHOD nsGSSAPIAuthConstructor ( nsISupports *  outer,
REFNSIID  iid,
void **  result 
) [static]

Definition at line 149 of file nsAuthFactory.cpp.

{
  if (outer)
    return NS_ERROR_NO_AGGREGATION;

  nsAuthGSSAPI *auth = new nsAuthGSSAPI(PACKAGE_TYPE_NEGOTIATE);
  if (!auth)
    return NS_ERROR_OUT_OF_MEMORY;
  
  NS_ADDREF(auth);
  nsresult rv = auth->QueryInterface(iid, result);
  NS_RELEASE(auth);
  return rv;
}

Here is the call graph for this function:

static NS_METHOD nsKerbGSSAPIAuthConstructor ( nsISupports *  outer,
REFNSIID  iid,
void **  result 
) [static]

Definition at line 133 of file nsAuthFactory.cpp.

{
  if (outer)
    return NS_ERROR_NO_AGGREGATION;

  nsAuthGSSAPI *auth = new nsAuthGSSAPI(PACKAGE_TYPE_KERBEROS);
  if (!auth)
    return NS_ERROR_OUT_OF_MEMORY;
  
  NS_ADDREF(auth);
  nsresult rv = auth->QueryInterface(iid, result);
  NS_RELEASE(auth);
  return rv;
}

Here is the call graph for this function:


Variable Documentation

Definition at line 182 of file nsAuthFactory.cpp.