aboutsummaryrefslogtreecommitdiffstats
path: root/src/ssl/tls_client.cpp
diff options
context:
space:
mode:
authorlloyd <[email protected]>2010-09-14 02:05:05 +0000
committerlloyd <[email protected]>2010-09-14 02:05:05 +0000
commit77a33b0c16880884cc0326e92c0c30d0e8444a91 (patch)
treedf2d917b312abb79c8654558399521366dbb2d14 /src/ssl/tls_client.cpp
parent59a9b0ef260b010606edc3384035b6aa12dd6415 (diff)
More changes to avoid vector to pointer implicit conversions
Diffstat (limited to 'src/ssl/tls_client.cpp')
-rw-r--r--src/ssl/tls_client.cpp6
1 files changed, 3 insertions, 3 deletions
diff --git a/src/ssl/tls_client.cpp b/src/ssl/tls_client.cpp
index 3b63b2119..79ca842d9 100644
--- a/src/ssl/tls_client.cpp
+++ b/src/ssl/tls_client.cpp
@@ -276,7 +276,7 @@ void TLS_Client::state_machine()
else if(rec_type == APPLICATION_DATA)
{
if(active)
- read_buf.write(record, record.size());
+ read_buf.write(&record[0], record.size());
else
throw Unexpected_Message("Application data before handshake done");
}
@@ -312,7 +312,7 @@ void TLS_Client::read_handshake(byte rec_type,
const MemoryRegion<byte>& rec_buf)
{
if(rec_type == HANDSHAKE)
- state->queue.write(rec_buf, rec_buf.size());
+ state->queue.write(&rec_buf[0], rec_buf.size());
while(true)
{
@@ -333,7 +333,7 @@ void TLS_Client::read_handshake(byte rec_type,
type = static_cast<Handshake_Type>(head[0]);
contents.resize(length);
state->queue.read(head, 4);
- state->queue.read(contents, contents.size());
+ state->queue.read(&contents[0], contents.size());
}
}
}