aboutsummaryrefslogtreecommitdiffstats
path: root/src/lib/tls/tls_blocking.cpp
diff options
context:
space:
mode:
authorJack Lloyd <[email protected]>2016-12-11 15:28:38 -0500
committerJack Lloyd <[email protected]>2016-12-18 16:48:24 -0500
commitf3cb3edb512bdcab498d825886c3366c341b3f78 (patch)
tree645c73ec295a5a34f25d99903b6d9fa9751e86d3 /src/lib/tls/tls_blocking.cpp
parentc1dd21253c1f3188ff45d3ad47698efd08235ae8 (diff)
Convert to using standard uintN_t integer types
Renames a couple of functions for somewhat better name consistency, eg make_u32bit becomes make_uint32. The old typedefs remain for now since probably lots of application code uses them.
Diffstat (limited to 'src/lib/tls/tls_blocking.cpp')
-rw-r--r--src/lib/tls/tls_blocking.cpp8
1 files changed, 4 insertions, 4 deletions
diff --git a/src/lib/tls/tls_blocking.cpp b/src/lib/tls/tls_blocking.cpp
index 9408972fd..83e4a340c 100644
--- a/src/lib/tls/tls_blocking.cpp
+++ b/src/lib/tls/tls_blocking.cpp
@@ -51,14 +51,14 @@ void Blocking_Client::alert_cb(const Alert& alert)
this->alert_notification(alert);
}
-void Blocking_Client::data_cb(const byte data[], size_t data_len)
+void Blocking_Client::data_cb(const uint8_t data[], size_t data_len)
{
m_plaintext.insert(m_plaintext.end(), data, data + data_len);
}
void Blocking_Client::do_handshake()
{
- std::vector<byte> readbuf(4096);
+ std::vector<uint8_t> readbuf(4096);
while(!m_channel.is_closed() && !m_channel.is_active())
{
@@ -67,9 +67,9 @@ void Blocking_Client::do_handshake()
}
}
-size_t Blocking_Client::read(byte buf[], size_t buf_len)
+size_t Blocking_Client::read(uint8_t buf[], size_t buf_len)
{
- std::vector<byte> readbuf(4096);
+ std::vector<uint8_t> readbuf(4096);
while(m_plaintext.empty() && !m_channel.is_closed())
{