aboutsummaryrefslogtreecommitdiffstats
path: root/src/tls/rec_wri.cpp
diff options
context:
space:
mode:
authorlloyd <[email protected]>2012-09-04 20:43:35 +0000
committerlloyd <[email protected]>2012-09-04 20:43:35 +0000
commite2d844d3dbea46a54a86a03126772956b715b9c9 (patch)
tree59c48e5346f506996733eae28d275ce02ff53de3 /src/tls/rec_wri.cpp
parent7f888f4bbcf8d11ff5916b1056ab181962da5b90 (diff)
Use a std::function so handshake_io only has access Record_Writer's
send function.
Diffstat (limited to 'src/tls/rec_wri.cpp')
-rw-r--r--src/tls/rec_wri.cpp4
1 files changed, 2 insertions, 2 deletions
diff --git a/src/tls/rec_wri.cpp b/src/tls/rec_wri.cpp
index fdecaa919..4eff52f78 100644
--- a/src/tls/rec_wri.cpp
+++ b/src/tls/rec_wri.cpp
@@ -148,7 +148,7 @@ void Record_Writer::change_cipher_spec(Connection_Side side,
/*
* Send one or more records to the other side
*/
-void Record_Writer::send(byte type, const byte input[], size_t length)
+void Record_Writer::send_array(byte type, const byte input[], size_t length)
{
if(length == 0)
return;
@@ -288,7 +288,7 @@ void Record_Writer::send_alert(const Alert& alert)
const byte alert_bits[2] = { static_cast<byte>(alert.is_fatal() ? 2 : 1),
static_cast<byte>(alert.type()) };
- send(ALERT, alert_bits, sizeof(alert_bits));
+ send_array(ALERT, alert_bits, sizeof(alert_bits));
}
}