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)
|
---|