|
Boost-Commit : |
Subject: [Boost-commit] svn:boost r86462 - trunk/boost/asio/ssl/impl
From: chris_at_[hidden]
Date: 2013-10-26 18:32:02
Author: chris_kohlhoff
Date: 2013-10-26 18:32:01 EDT (Sat, 26 Oct 2013)
New Revision: 86462
URL: http://svn.boost.org/trac/boost/changeset/86462
Log:
Suppress conversion warnings reported by MSVC.
Text files modified:
trunk/boost/asio/ssl/impl/context.ipp | 5 +++--
1 files changed, 3 insertions(+), 2 deletions(-)
Modified: trunk/boost/asio/ssl/impl/context.ipp
==============================================================================
--- trunk/boost/asio/ssl/impl/context.ipp Sat Oct 26 17:37:49 2013 (r86461)
+++ trunk/boost/asio/ssl/impl/context.ipp 2013-10-26 18:32:01 EDT (Sat, 26 Oct 2013) (r86462)
@@ -428,7 +428,8 @@
if (format == context_base::asn1)
{
- if (::SSL_CTX_use_certificate_ASN1(handle_, buffer_size(certificate),
+ if (::SSL_CTX_use_certificate_ASN1(handle_,
+ static_cast<int>(buffer_size(certificate)),
buffer_cast<const unsigned char*>(certificate)) == 1)
{
ec = boost::system::error_code();
@@ -929,7 +930,7 @@
{
return ::BIO_new_mem_buf(
const_cast<void*>(buffer_cast<const void*>(b)),
- buffer_size(b));
+ static_cast<int>(buffer_size(b)));
}
#endif // !defined(BOOST_ASIO_ENABLE_OLD_SSL)
Boost-Commit list run by bdawes at acm.org, david.abrahams at rcn.com, gregod at cs.rpi.edu, cpdaniel at pacbell.net, john at johnmaddock.co.uk