aboutsummaryrefslogtreecommitdiffstats
path: root/src
diff options
context:
space:
mode:
authorJack Lloyd <[email protected]>2018-03-05 18:08:09 -0500
committerJack Lloyd <[email protected]>2018-03-05 18:08:09 -0500
commit03a44b499a12bc4f965bf37f1625e09e7de2340c (patch)
tree6b7103434b0c8793de1852490fce62aa8a3dd70e /src
parent65d81676334a80829ab756725873ed62dc852c6b (diff)
Avoid std::bind in Channel::received_data
Lambda works just as well here. GH #493
Diffstat (limited to 'src')
-rw-r--r--src/lib/tls/tls_channel.cpp3
1 files changed, 1 insertions, 2 deletions
diff --git a/src/lib/tls/tls_channel.cpp b/src/lib/tls/tls_channel.cpp
index e92b298de..6e3e5987b 100644
--- a/src/lib/tls/tls_channel.cpp
+++ b/src/lib/tls/tls_channel.cpp
@@ -314,8 +314,7 @@ size_t Channel::received_data(const uint8_t input[], size_t input_size)
raw_input,
record,
m_sequence_numbers.get(),
- std::bind(&TLS::Channel::read_cipher_state_epoch, this,
- std::placeholders::_1));
+ [this](uint16_t epoch) { return read_cipher_state_epoch(epoch); });
BOTAN_ASSERT(consumed > 0, "Got to eat something");