diff options
author | lloyd <[email protected]> | 2011-10-06 15:54:03 +0000 |
---|---|---|
committer | lloyd <[email protected]> | 2011-10-06 15:54:03 +0000 |
commit | 7939e91a733c8c50706de2fb090fcb60f7f229c8 (patch) | |
tree | bd9f24eefbae7a49e4832ac728ea83c80da99dc4 /src/ssl/tls_record.h | |
parent | ca5581260445e70ed4d038091acb88949b6101ce (diff) | |
parent | 2877bbc0828a92de94d3628455e92c4298a2ac7d (diff) |
propagate from branch 'net.randombit.botan' (head 29dfb73a5efec220ebafcb9c1d7a32bb9d63461c)
to branch 'net.randombit.botan.cxx11' (head a842d86b2b9593318fbce5868c3d1278f8b3a037)
Diffstat (limited to 'src/ssl/tls_record.h')
-rw-r--r-- | src/ssl/tls_record.h | 21 |
1 files changed, 4 insertions, 17 deletions
diff --git a/src/ssl/tls_record.h b/src/ssl/tls_record.h index 09fd921c6..b4c052a1c 100644 --- a/src/ssl/tls_record.h +++ b/src/ssl/tls_record.h @@ -14,24 +14,11 @@ #include <botan/mac.h> #include <botan/secqueue.h> #include <vector> - -#if defined(BOTAN_USE_STD_TR1) - -#if defined(BOTAN_BUILD_COMPILER_IS_MSVC) - #include <functional> -#else - #include <tr1/functional> -#endif - -#elif defined(BOTAN_USE_BOOST_TR1) - #include <boost/tr1/functional.hpp> -#else - #error "No TR1 library defined for use" -#endif +#include <functional> namespace Botan { -using namespace std::tr1::placeholders; +using namespace std::placeholders; /** * TLS Record Writer @@ -52,7 +39,7 @@ class BOTAN_DLL Record_Writer void reset(); - Record_Writer(std::tr1::function<void (const byte[], size_t)> output_fn); + Record_Writer(std::function<void (const byte[], size_t)> output_fn); ~Record_Writer() { delete mac; } private: @@ -60,7 +47,7 @@ class BOTAN_DLL Record_Writer void send_record(byte type, byte major, byte minor, const byte input[], size_t length); - std::tr1::function<void (const byte[], size_t)> output_fn; + std::function<void (const byte[], size_t)> output_fn; Pipe cipher; MessageAuthenticationCode* mac; |