From edf4cd93eedf8e6972edaccaea4b7b7ab45faded Mon Sep 17 00:00:00 2001 From: lloyd Date: Thu, 28 Oct 2010 20:07:29 +0000 Subject: function<> is in in std in C++0x --- src/ssl/tls_server.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'src/ssl/tls_server.cpp') diff --git a/src/ssl/tls_server.cpp b/src/ssl/tls_server.cpp index 6f79fe0fb..65f4204c8 100644 --- a/src/ssl/tls_server.cpp +++ b/src/ssl/tls_server.cpp @@ -93,7 +93,7 @@ TLS_Server::TLS_Server(const TLS_Policy& pol, policy(pol), rng(r), peer(sock), - writer(std::tr1::bind(&Socket::write, std::tr1::ref(peer), _1, _2)) + writer(std::bind(&Socket::write, std::ref(peer), _1, _2)) { state = 0; -- cgit v1.2.3 From 5d4621b745ac529c7df6c4d91e4d2b68bd0325e4 Mon Sep 17 00:00:00 2001 From: lloyd Date: Thu, 4 Nov 2010 20:50:52 +0000 Subject: Post-merge fixups --- src/hash/par_hash/par_hash.cpp | 2 +- src/ssl/tls_record.h | 2 ++ src/ssl/tls_server.cpp | 4 ++-- src/ssl/tls_server.h | 6 +++--- 4 files changed, 8 insertions(+), 6 deletions(-) (limited to 'src/ssl/tls_server.cpp') diff --git a/src/hash/par_hash/par_hash.cpp b/src/hash/par_hash/par_hash.cpp index 6e3357660..a95ba36b9 100644 --- a/src/hash/par_hash/par_hash.cpp +++ b/src/hash/par_hash/par_hash.cpp @@ -28,7 +28,7 @@ void Parallel::final_result(byte out[]) for(auto hash = hashes.begin(); hash != hashes.end(); ++hash) { (*hash)->final(out + offset); - offset += (*hash)->OUTPUT_LENGTH; + offset += (*hash)->output_length(); } } diff --git a/src/ssl/tls_record.h b/src/ssl/tls_record.h index 40b6a6f8d..b4c052a1c 100644 --- a/src/ssl/tls_record.h +++ b/src/ssl/tls_record.h @@ -16,6 +16,8 @@ #include #include +namespace Botan { + using namespace std::placeholders; /** diff --git a/src/ssl/tls_server.cpp b/src/ssl/tls_server.cpp index 4e071da59..20e98797f 100644 --- a/src/ssl/tls_server.cpp +++ b/src/ssl/tls_server.cpp @@ -85,8 +85,8 @@ void server_check_state(Handshake_Type new_msg, Handshake_State* state) /* * TLS Server Constructor */ -TLS_Server::TLS_Server(std::tr1::function input_fn, - std::tr1::function output_fn, +TLS_Server::TLS_Server(std::function input_fn, + std::function output_fn, const TLS_Policy& policy, RandomNumberGenerator& rng, const X509_Certificate& cert, diff --git a/src/ssl/tls_server.h b/src/ssl/tls_server.h index a6b0f9cb4..f8b38dd0b 100644 --- a/src/ssl/tls_server.h +++ b/src/ssl/tls_server.h @@ -36,8 +36,8 @@ class BOTAN_DLL TLS_Server : public TLS_Connection * FIXME: support cert chains (!) * FIXME: support anonymous servers */ - TLS_Server(std::tr1::function input_fn, - std::tr1::function output_fn, + TLS_Server(std::function input_fn, + std::function output_fn, const TLS_Policy& policy, RandomNumberGenerator& rng, const X509_Certificate& cert, @@ -53,7 +53,7 @@ class BOTAN_DLL TLS_Server : public TLS_Connection void process_handshake_msg(Handshake_Type, const MemoryRegion&); - std::tr1::function input_fn; + std::function input_fn; const TLS_Policy& policy; RandomNumberGenerator& rng; -- cgit v1.2.3