From e4cfc6684df02e1c1c2b583c764514cfc08e9c39 Mon Sep 17 00:00:00 2001 From: Simon Warta Date: Tue, 23 Jun 2015 18:29:16 +0200 Subject: lib/tls: Convert &vec[0] to vec.data() --- src/lib/tls/tls_blocking.cpp | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) (limited to 'src/lib/tls/tls_blocking.cpp') 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()); -- cgit v1.2.3