diff options
author | lloyd <[email protected]> | 2014-02-13 16:44:11 +0000 |
---|---|---|
committer | lloyd <[email protected]> | 2014-02-13 16:44:11 +0000 |
commit | c123180d2cdce837706eeffedc4e6105be0b2a5e (patch) | |
tree | f247a114936b6fea499045682b01fd5677fdea32 /src/cmd/tls_server_asio.cpp | |
parent | 9168b5747037b7cde74e3bb60ffce6bf27be910b (diff) |
Fix warnings
Diffstat (limited to 'src/cmd/tls_server_asio.cpp')
-rw-r--r-- | src/cmd/tls_server_asio.cpp | 5 |
1 files changed, 3 insertions, 2 deletions
diff --git a/src/cmd/tls_server_asio.cpp b/src/cmd/tls_server_asio.cpp index b41f99391..f0847b9e0 100644 --- a/src/cmd/tls_server_asio.cpp +++ b/src/cmd/tls_server_asio.cpp @@ -140,7 +140,7 @@ class tls_server_session : public boost::enable_shared_from_this<tls_server_sess } } - void tls_alert_cb(Botan::TLS::Alert alert, const byte buf[], size_t buf_len) + void tls_alert_cb(Botan::TLS::Alert alert, const byte[], size_t) { if(alert.type() == Botan::TLS::Alert::CLOSE_NOTIFY) { @@ -173,7 +173,8 @@ class tls_server_session : public boost::enable_shared_from_this<tls_server_sess out += "Content-Type: text/html\r\n"; out += "\r\n"; out += "<html><body>Greets. You said: "; - out += std::string((const char*)&m_client_data[0], m_client_data.size()); + out += std::string(reinterpret_cast<const char*>(&m_client_data[0]), + m_client_data.size()); out += "</body></html>\r\n\r\n"; m_tls.send(out); |