Stun Server  Compliant with the latest RFCs including 5389, 5769, and 5780
discover the local host's own external IP address
CLongTermAuth Class Reference

#include <sampleauthprovider.h>

Inheritance diagram for CLongTermAuth:
Collaboration diagram for CLongTermAuth:

Public Member Functions

virtual HRESULT DoAuthCheck (AuthAttributes *pAuthAttributes, AuthResponse *pResponse)
 
 ADDREF_AND_RELEASE_IMPL ()
 
- Public Member Functions inherited from CBasicRefCount
 CBasicRefCount ()
 
virtual ~CBasicRefCount ()
 
int InternalAddRef ()
 
int InternalRelease ()
 
virtual void OnFinalRelease ()
 
- Public Member Functions inherited from IRefCounted
virtual int AddRef ()=0
 
virtual int Release ()=0
 

Private Member Functions

void HmacToString (uint8_t *hmacvalue, char *pszResult)
 
HRESULT CreateNonce (char *pszNonce)
 
HRESULT ValidateNonce (char *pszNonce)
 

Additional Inherited Members

- Static Public Member Functions inherited from CObjectFactory< CLongTermAuth >
static HRESULT CreateInstanceNoInit (X **ppInstance)
 
static HRESULT CreateInstance (I **ppI)
 
static HRESULT CreateInstance (A paramA, I **ppI)
 
static HRESULT CreateInstance (A paramA, B paramB, I **ppI)
 
- Protected Attributes inherited from CBasicRefCount
int m_nRefs
 

Detailed Description

Definition at line 145 of file sampleauthprovider.h.

Member Function Documentation

CLongTermAuth::ADDREF_AND_RELEASE_IMPL ( )
HRESULT CLongTermAuth::CreateNonce ( char *  pszNonce)
private

Definition at line 154 of file sampleauthprovider.cpp.

HRESULT CLongTermAuth::DoAuthCheck ( AuthAttributes pAuthAttributes,
AuthResponse pResponse 
)
virtual

Implements IStunAuth.

Definition at line 99 of file sampleauthprovider.cpp.

void CLongTermAuth::HmacToString ( uint8_t *  hmacvalue,
char *  pszResult 
)
private

Definition at line 145 of file sampleauthprovider.cpp.

HRESULT CLongTermAuth::ValidateNonce ( char *  pszNonce)
private

Definition at line 181 of file sampleauthprovider.cpp.


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