aboutsummaryrefslogtreecommitdiffstats
path: root/src/lib/tls/tls_callbacks.h
Commit message (Collapse)AuthorAgeFilesLines
* Fix doxygen warnings [ci skip]René Korthaus2016-10-191-5/+9
|
* Move some Callback functions to a source file.Jack Lloyd2016-08-311-7/+5
| | | | | | Just to avoid the unused parameter warning (we want the parameter to be named in the header for documentation purposes, but in that case GCC warns that the param is unused).
* Added doxygen function parameter comments to tls_callbacks.hDan Brown2016-08-191-12/+32
|
* Add a Callbacks function for ALPNJack Lloyd2016-08-161-4/+31
|
* Changes to TLS::Callbacks for GH PR #457Jack Lloyd2016-08-161-30/+76
| | | | | | | | | | | | | | | | | | | | | | | | | | Make TLS::Channel::m_callbacks a reference, so deriving from TLS::Callbacks works Split out the compat (std::function) based interface to Compat_Callbacks. This avoids the overhead of empty std::functions when using the virtual interface, and ensures the virtual interface works since there is no callback path that does not involve a vtable lookup. Rename the TLS::Callback functions. Since the idea is that often an owning class will pass *this as the callbacks argument, it is good to namespace the virtual functions so as not to conflict with other names chosen by the class. Specifically, prefixes all cb functions with tls_ Revert changes to use the old style alert callback (with no longer used data/len params) so no API changes are required for old code. The new Callbacks interface continues to just receive the alert code itself. Switch to virtual function interface in CLI tls_client for testing. Inline tls_server_handshake_state.h - only used in tls_server.cpp Fix tests - test looked like it was creating a new client object but it was not actually being used. And when enabled, it failed because the queues were not being emptied in between. So, fix that.
* Compatibility patch for TLS::Callback interfaceMatthias Gierlings2016-06-191-7/+22
| | | | | - Added legacy constructor support for TLS::Channel, TLS::Client, TLS::Server.
* Added virtual Callback InterfaceMatthias Gierlings2016-06-191-0/+97
- extracted inner class TLS::Channel::Callbacks to stand-alone class TLS::Callbacks. - provided default implementations for TLS::Callbacks members executing calls to std::function members for backward compatibility. - applied changes to cli, tests and TLS::Channel related classes to be compatible with new interface.