1#if !defined(RETURN_CONFIG_HXX)
2#define RETURN_CONFIG_HXX
20typedef std::map<resip::Data,reTurn::UserAuthData>
RealmUsers;
98 std::map<resip::Data,RealmUsers> mUsers;
99 std::map<RealmUserPair, resip::Data> mRealmUsersAuthenticaionCredentials;
116 asio::steady_timer mTimer;
118 bool hasUserFileChanged();
119 void timeout(
const asio::error_code&
e);
121 static void onSignal(
int signum);
const char * name() const noexcept override
Exception(const resip::Data &msg, const resip::Data &file, const int line)
unsigned short mAllocationPortRangeMax
long mOpenSSLCTXClearOptions
std::unique_ptr< UserAuthData > getUser(const resip::Data &userName, const resip::Data &realm) const
unsigned long mMaxTcpConnectionsPerIp
unsigned short mAltStunPort
asio::ip::address mAltStunAddress
unsigned long mTlsHandshakeTimeout
int mUserDatabaseCheckInterval
resip::Data mTlsTempDhFilename
bool isUserNameValid(const resip::Data &username, const resip::Data &realm) const
void authParse(const resip::Data &accountDatabaseFilename)
unsigned short mTlsTurnPort
resip::Data mSoftwareName
resip::Data mUsersDatabaseFilename
resip::Data mTlsPrivateKeyPassword
asio::ip::address mTurnAddress
void addUser(const resip::Data &username, const resip::Data &password, const resip::Data &realm)
unsigned short mAllocationPortRangeMin
resip::Data mAuthenticationRealm
long mOpenSSLCTXSetOptions
unsigned long mDefaultAllocationLifetime
resip::Data mTlsServerCertificateFilename
resip::RWMutex mUserDataMutex
void printHelpText(int argc, char **argv)
bool mUserDatabaseHashedPasswords
unsigned long mMaxAllocationsPerUser
unsigned long mTcpConnectionIdleTimeout
virtual void parseConfig(int argc, char **argv, const resip::Data &defaultConfigFilename)
unsigned long mMaxAllocationLifetime
resip::Data getHa1ForUsername(const resip::Data &username, const resip::Data &realm) const
unsigned long mNonceLifetime
resip::Data mTlsServerPrivateKeyFilename
asio::ip::address mTurnV6Address
The abstract base-class for all exceptions thrown by resip code.
BaseException(const Data &msg, const Data &file, int line)
bool getConfigValue(const resip::Data &name, resip::Data &value) const
An alternative to std::string, encapsulates an arbitrary buffer of bytes.
Wraps the readers/writers mutex implementation on your platform.
std::map< resip::Data, reTurn::UserAuthData > RealmUsers
std::pair< resip::Data, resip::Data > RealmUserPair
dcm! – add UnusedChecking(_enum) below;