diff options
author | lloyd <[email protected]> | 2012-01-26 21:00:01 +0000 |
---|---|---|
committer | lloyd <[email protected]> | 2012-01-26 21:00:01 +0000 |
commit | 4b8786ad157e38b4143b0968c1ea1c83c2ee7388 (patch) | |
tree | 2a0272f0b6f5e14d738c5bfdb126f5e3ef45fb3b /src/tls/tls_record.h | |
parent | 4b285bd51a48f78f41a14beb9626a8db59e65960 (diff) |
Make Alert a first class object ala Version. Move the alert codes into
the Alert class for namespacing.
Diffstat (limited to 'src/tls/tls_record.h')
-rw-r--r-- | src/tls/tls_record.h | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/src/tls/tls_record.h b/src/tls/tls_record.h index 74b7e56a2..3bc58a0da 100644 --- a/src/tls/tls_record.h +++ b/src/tls/tls_record.h @@ -9,6 +9,7 @@ #define BOTAN_TLS_RECORDS_H__ #include <botan/tls_ciphersuite.h> +#include <botan/tls_alert.h> #include <botan/tls_magic.h> #include <botan/tls_version.h> #include <botan/pipe.h> @@ -45,7 +46,7 @@ class BOTAN_DLL Record_Writer void send(byte type, const byte input[], size_t length); void send(byte type, byte val) { send(type, &val, 1); } - void alert(Alert_Level level, Alert_Type type); + void send_alert(const Alert& alert); void activate(Connection_Side side, const Ciphersuite& suite, |