Stun Server  Compliant with the latest RFCs including 5389, 5769, and 5780
discover the local host's own external IP address
sampleauthprovider.cpp File Reference
#include "commonincludes.hpp"
#include <openssl/hmac.h>
#include "stuncore.h"
#include "stunsocket.h"
#include "stunsocketthread.h"
#include "server.h"
#include "sampleauthprovider.h"
Include dependency graph for sampleauthprovider.cpp:

Go to the source code of this file.

Functions

static HRESULT LookupPassword (bool fWithRealm, const char *pszUserName, const char *pszRealm, char *pszPassword)
 

Variables

static const char * c_szPrivateKey = "Change this string if you are going to use this code"
 
static const char * c_szRealm = "YourRealmNameHere"
 

Function Documentation

static HRESULT LookupPassword ( bool  fWithRealm,
const char *  pszUserName,
const char *  pszRealm,
char *  pszPassword 
)
static

Definition at line 30 of file sampleauthprovider.cpp.

Variable Documentation

const char* c_szPrivateKey = "Change this string if you are going to use this code"
static

Definition at line 26 of file sampleauthprovider.cpp.

const char* c_szRealm = "YourRealmNameHere"
static

Definition at line 27 of file sampleauthprovider.cpp.