aboutsummaryrefslogtreecommitdiffstats
path: root/src/ssl/tls_server.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_server.cpp
parent59a9b0ef260b010606edc3384035b6aa12dd6415 (diff)
More changes to avoid vector to pointer implicit conversions
Diffstat (limited to 'src/ssl/tls_server.cpp')
-rw-r--r--src/ssl/tls_server.cpp6
1 files changed, 3 insertions, 3 deletions
diff --git a/src/ssl/tls_server.cpp b/src/ssl/tls_server.cpp
index 2a84fa063..8d9cc1b43 100644
--- a/src/ssl/tls_server.cpp
+++ b/src/ssl/tls_server.cpp
@@ -239,7 +239,7 @@ void TLS_Server::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");
}
@@ -273,7 +273,7 @@ void TLS_Server::read_handshake(byte rec_type,
{
if(!state)
state = new Handshake_State;
- state->queue.write(rec_buf, rec_buf.size());
+ state->queue.write(&rec_buf[0], rec_buf.size());
}
while(true)
@@ -295,7 +295,7 @@ void TLS_Server::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());
}
}
}