Boost C++ Libraries: Ticket #12710: Asio with OpenSSL 1.1.0 compiles but does not work https://svn.boost.org/trac10/ticket/12710 <p> Setup: </p> <p> Debian Boost 1.62.0 OpenSSL 1.1.0c-2 </p> <p> Problem: Previously written program that works perfectly well with the same Boost version and the older version of OpenSSL compiles just fine but does not work. </p> <p> The program yields "stream truncated" error. </p> <p> Desired outcome: Boost Asio works equally well with the newer OpenSSL. </p> en-us Boost C++ Libraries /htdocs/site/boost.png https://svn.boost.org/trac10/ticket/12710 Trac 1.4.3 anonymous Thu, 22 Dec 2016 23:13:34 GMT <link>https://svn.boost.org/trac10/ticket/12710#comment:1 </link> <guid isPermaLink="false">https://svn.boost.org/trac10/ticket/12710#comment:1</guid> <description> <p> Additional note: </p> <p> Example program at <a href="http://www.boost.org/doc/libs/1_53_0/doc/html/boost_asio/example/ssl/client.cpp">http://www.boost.org/doc/libs/1_53_0/doc/html/boost_asio/example/ssl/client.cpp</a> </p> <p> is sufficient to demonstrate the problem (just comment out the certificate verification knobs). </p> </description> <category>Ticket</category> </item> <item> <dc:creator>anonymous</dc:creator> <pubDate>Sun, 30 Jul 2017 00:41:53 GMT</pubDate> <title/> <link>https://svn.boost.org/trac10/ticket/12710#comment:2 </link> <guid isPermaLink="false">https://svn.boost.org/trac10/ticket/12710#comment:2</guid> <description> <p> Can reproduce with OpenSSL 1.1.0f and boost 1.64.0. Just ignoring this error seems to make program work correctly. </p> </description> <category>Ticket</category> </item> <item> <dc:creator>anonymous</dc:creator> <pubDate>Sat, 05 Aug 2017 05:45:08 GMT</pubDate> <title/> <link>https://svn.boost.org/trac10/ticket/12710#comment:3 </link> <guid isPermaLink="false">https://svn.boost.org/trac10/ticket/12710#comment:3</guid> <description> <p> Can reproduce with LibreSSL 2.6.0. Like the previous comment ignoring the error seems to make the program work correctly. </p> </description> <category>Ticket</category> </item> <item> <author>vygis.d@…</author> <pubDate>Mon, 28 Aug 2017 22:49:04 GMT</pubDate> <title>attachment set https://svn.boost.org/trac10/ticket/12710 https://svn.boost.org/trac10/ticket/12710 <ul> <li><strong>attachment</strong> → <span class="trac-field-new">diff.b</span> </li> </ul> <p> Patch for the stream truncation </p> Ticket vygis.d@… Mon, 28 Aug 2017 22:56:04 GMT <link>https://svn.boost.org/trac10/ticket/12710#comment:4 </link> <guid isPermaLink="false">https://svn.boost.org/trac10/ticket/12710#comment:4</guid> <description> <p> I must add, however, that I am not sure that my patch is correct. It fixes the problem, sure, but whether it is correct to ignore SSL shutdown status in OpenSSL 1.1.0 -- I do not know. </p> <p> However, OpenSSL team notes that one of the major changes between OpenSSL 1.0.2h and OpenSSL 1.1.0 was rewritten SSL/TLS state machine, version negotiation and record layer. (See <a class="ext-link" href="https://www.openssl.org/news/openssl-1.1.0-notes.html"><span class="icon">​</span>https://www.openssl.org/news/openssl-1.1.0-notes.html</a>) </p> </description> <category>Ticket</category> </item> <item> <dc:creator>lefteris</dc:creator> <pubDate>Sun, 17 Sep 2017 19:45:36 GMT</pubDate> <title/> <link>https://svn.boost.org/trac10/ticket/12710#comment:5 </link> <guid isPermaLink="false">https://svn.boost.org/trac10/ticket/12710#comment:5</guid> <description> <p> I also get "stream truncated" error in async_close's completion handler. I use openssl-1.1.0f on windows x64 /MT </p> </description> <category>Ticket</category> </item> </channel> </rss>