libtins
4.0
|
Pluggable decrypter object which can be used to decrypt data on sniffing sessions. More...
#include <crypto.h>
Public Types | |
typedef Functor | functor_type |
typedef Decrypter | decrypter_type |
Public Member Functions | |
DecrypterProxy (const functor_type &func, const decrypter_type &decr=decrypter_type()) | |
Constructs an object from a functor and a decrypter. More... | |
decrypter_type & | decrypter () |
Retrieves a reference to the decrypter object. | |
const decrypter_type & | decrypter () const |
Retrieves a const reference to the decrypter object. | |
bool | operator() (PDU &pdu) |
The operator() which decrypts packets and forwards them to the functor. | |
Pluggable decrypter object which can be used to decrypt data on sniffing sessions.
This class holds a decrypter object and a functor, and implements a suitable operator() to be used on BaseSniffer::sniff_loop, which decrypts packets and forwards them to the given functor.
typedef Decrypter Tins::Crypto::DecrypterProxy< Functor, Decrypter >::decrypter_type |
The type of the decrypter object.
typedef Functor Tins::Crypto::DecrypterProxy< Functor, Decrypter >::functor_type |
The type of the functor object.
Tins::Crypto::DecrypterProxy< Functor, Decrypter >::DecrypterProxy | ( | const functor_type & | func, |
const decrypter_type & | decr = decrypter_type() |
||
) |
Constructs an object from a functor and a decrypter.
func | The functor to be used to forward decrypted packets. |
decrypter | The decrypter which will be used to decrypt packets |