aboutsummaryrefslogtreecommitdiffstats
path: root/src/lib/tls/asio
diff options
context:
space:
mode:
authorTim Oesterreich <[email protected]>2019-03-06 10:59:40 +0100
committerHannes Rantzsch <[email protected]>2019-04-16 10:48:11 +0200
commit26c97e45be48167fb15b25ea72129b10bcc2cd09 (patch)
tree46ba422931a9230351998ee9fcc5480edafadcd2 /src/lib/tls/asio
parent5ce3b282c2d7af7785f5b785e5736272ea4e7071 (diff)
don't pass int to size_t
Diffstat (limited to 'src/lib/tls/asio')
-rw-r--r--src/lib/tls/asio/asio_stream.h6
1 files changed, 3 insertions, 3 deletions
diff --git a/src/lib/tls/asio/asio_stream.h b/src/lib/tls/asio/asio_stream.h
index 38d8c195a..224bf5fa7 100644
--- a/src/lib/tls/asio/asio_stream.h
+++ b/src/lib/tls/asio/asio_stream.h
@@ -198,7 +198,7 @@ class Stream : public StreamBase<Channel>
AsyncHandshakeOperation<typename std::decay<HandshakeHandler>::type, Stream>
op{std::move(init.completion_handler), *this, this->m_core};
- op({}, 0, false);
+ op({}, std::size_t(0), false);
return init.result.get();
}
@@ -380,7 +380,7 @@ class Stream : public StreamBase<Channel>
}
catch(const std::exception&)
{
- init.completion_handler(Botan::TLS::convertException(), 0);
+ init.completion_handler(Botan::TLS::convertException(), std::size_t(0));
return init.result.get();
}
@@ -408,7 +408,7 @@ class Stream : public StreamBase<Channel>
*this,
this->m_core,
buffers};
- op({}, 0, false);
+ op({}, std::size_t(0), false);
return init.result.get();
}