diff options
author | lloyd <[email protected]> | 2012-01-26 21:11:52 +0000 |
---|---|---|
committer | lloyd <[email protected]> | 2012-01-26 21:11:52 +0000 |
commit | cb8c64be095a0ef75beb621e8d669096efd7b8ae (patch) | |
tree | 5b1c20935afb94f6b02c238295c19373ac8f0e52 /src/tls/tls_client.h | |
parent | 4b8786ad157e38b4143b0968c1ea1c83c2ee7388 (diff) |
Change callback interface to pass the Alert object itself instead
of just the type code.
Implement Alert::type_string
Diffstat (limited to 'src/tls/tls_client.h')
-rw-r--r-- | src/tls/tls_client.h | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/src/tls/tls_client.h b/src/tls/tls_client.h index 9f8e33f30..f5528f4c1 100644 --- a/src/tls/tls_client.h +++ b/src/tls/tls_client.h @@ -43,7 +43,7 @@ class BOTAN_DLL Client : public Channel * the client should return the protocol it would like to use. */ Client(std::tr1::function<void (const byte[], size_t)> socket_output_fn, - std::tr1::function<void (const byte[], size_t, u16bit)> proc_fn, + std::tr1::function<void (const byte[], size_t, Alert)> proc_fn, std::tr1::function<bool (const Session&)> handshake_complete, Session_Manager& session_manager, Credentials_Manager& creds, @@ -58,7 +58,7 @@ class BOTAN_DLL Client : public Channel void process_handshake_msg(Handshake_Type type, const MemoryRegion<byte>& contents); - void alert_notify(bool is_fatal, Alert::Type type); + void alert_notify(const Alert& alert); const Policy& policy; RandomNumberGenerator& rng; |