Ticket #9230: context.ipp.patch

File context.ipp.patch, 600 bytes (added by raad@…, 9 years ago)

Patch to remove the warnings with static_casts from size_t to int

Line 
1@@ -428,7 +428,8 @@
2
3 if (format == context_base::asn1)
4 {
5- if (::SSL_CTX_use_certificate_ASN1(handle_, buffer_size(certificate),
6+ if (::SSL_CTX_use_certificate_ASN1(handle_,
7+ static_cast<int>(buffer_size(certificate)),
8 buffer_cast<const unsigned char*>(certificate)) == 1)
9 {
10 ec = boost::system::error_code();
11@@ -929,7 +930,7 @@
12 {
13 return ::BIO_new_mem_buf(
14 const_cast<void*>(buffer_cast<const void*>(b)),
15- buffer_size(b));
16+ static_cast<int>(buffer_size(b)));
17 }
18
19 #endif // !defined(BOOST_ASIO_ENABLE_OLD_SSL)