#include <remote.h>
Public Member Functions | |
IAX2Encryption () | |
void | SetEncryptionOn (PBoolean newState=PTrue) |
void | SetEncryptionKey (PString &newKey) |
void | SetChallengeKey (PString &newKey) |
const PString & | EncryptionKey () const |
const PString & | ChallengeKey () const |
const PBoolean | IsEncrypted () const |
Protected Member Functions | |
void | CalculateAesKeys () |
Protected Attributes | |
PString | encryptionKey |
PString | challengeKey |
PBoolean | encryptionEnabled |
IAX2Encryption::IAX2Encryption | ( | ) |
Constructor, which sets encrytpion to the default value of "OFF"
void IAX2Encryption::SetEncryptionOn | ( | PBoolean | newState = PTrue |
) |
Set the flag that indicates this communication session is all encrypted..
void IAX2Encryption::SetEncryptionKey | ( | PString & | newKey | ) |
Set the password/key used in encryption process
void IAX2Encryption::SetChallengeKey | ( | PString & | newKey | ) |
Set the challenge used in encryption process
const PString& IAX2Encryption::EncryptionKey | ( | ) | const |
Get the value of the encrption key - or password key
const PString& IAX2Encryption::ChallengeKey | ( | ) | const |
Get the value of the challenge key
const PBoolean IAX2Encryption::IsEncrypted | ( | ) | const |
Report if the encryption is enabled (or turned on)
void IAX2Encryption::CalculateAesKeys | ( | ) | [protected] |
Do the calculation of the encrypt and decrypt AES 128 keys. If neither, or only 1 of the encrypt/challenge keys are defined, do nothing
PString IAX2Encryption::encryptionKey [protected] |
string to use for decryption/encryption of this frame
PString IAX2Encryption::challengeKey [protected] |
string to use for decryption/encryption of this frame
PBoolean IAX2Encryption::encryptionEnabled [protected] |
Flag to specify if encryption is happening