diff options
author | Simon Warta <[email protected]> | 2015-06-23 18:29:16 +0200 |
---|---|---|
committer | Simon Warta <[email protected]> | 2015-06-23 18:49:20 +0200 |
commit | e4cfc6684df02e1c1c2b583c764514cfc08e9c39 (patch) | |
tree | e8bc73070ddb9cb38594e114e28f4fa1129545f8 /src/lib/tls/tls_blocking.cpp | |
parent | fcb249320e9529c772fde21195659cc81cb57c73 (diff) |
lib/tls: Convert &vec[0] to vec.data()
Diffstat (limited to 'src/lib/tls/tls_blocking.cpp')
-rw-r--r-- | src/lib/tls/tls_blocking.cpp | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/src/lib/tls/tls_blocking.cpp b/src/lib/tls/tls_blocking.cpp index b46961f9d..f88b7896c 100644 --- a/src/lib/tls/tls_blocking.cpp +++ b/src/lib/tls/tls_blocking.cpp @@ -58,8 +58,8 @@ void Blocking_Client::do_handshake() while(!m_channel.is_closed() && !m_channel.is_active()) { - const size_t from_socket = m_read(&readbuf[0], readbuf.size()); - m_channel.received_data(&readbuf[0], from_socket); + const size_t from_socket = m_read(readbuf.data(), readbuf.size()); + m_channel.received_data(readbuf.data(), from_socket); } } @@ -69,8 +69,8 @@ size_t Blocking_Client::read(byte buf[], size_t buf_len) while(m_plaintext.empty() && !m_channel.is_closed()) { - const size_t from_socket = m_read(&readbuf[0], readbuf.size()); - m_channel.received_data(&readbuf[0], from_socket); + const size_t from_socket = m_read(readbuf.data(), readbuf.size()); + m_channel.received_data(readbuf.data(), from_socket); } const size_t returned = std::min(buf_len, m_plaintext.size()); |