Boost C++ Libraries: Ticket #7610: Add support for PSK authentication to boost::asio:ssl https://svn.boost.org/trac10/ticket/7610 <p> boost::asio:ssl provides methods to set up PKI authentication. But TLS can also use PSK for authentication. This patch adds methods to set a PSK callback on ssl::context. </p> en-us Boost C++ Libraries /htdocs/site/boost.png https://svn.boost.org/trac10/ticket/7610 Trac 1.4.3 Roman Bovsunovskiy <a2k0001@…> Tue, 30 Oct 2012 16:51:59 GMT attachment set https://svn.boost.org/trac10/ticket/7610 https://svn.boost.org/trac10/ticket/7610 <ul> <li><strong>attachment</strong> → <span class="trac-field-new">boost-psk-patch.diff</span> </li> </ul> <p> PSK support for boost::asio::ssl </p> Ticket diego.duclos@… Fri, 20 Jun 2014 20:28:26 GMT <link>https://svn.boost.org/trac10/ticket/7610#comment:1 </link> <guid isPermaLink="false">https://svn.boost.org/trac10/ticket/7610#comment:1</guid> <description> <p> Is there any update on this issue ? I'd find this very much useful as well, and I've merged this into the 1.55.0 version of boost if a more recent patch is wanted. </p> </description> <category>Ticket</category> </item> <item> <dc:creator>anonymous</dc:creator> <pubDate>Fri, 06 Mar 2015 09:56:02 GMT</pubDate> <title/> <link>https://svn.boost.org/trac10/ticket/7610#comment:2 </link> <guid isPermaLink="false">https://svn.boost.org/trac10/ticket/7610#comment:2</guid> <description> <p> I would also find this useful! I guess the main issue is that the PSK callback from OpenSSL is synchronous.. </p> </description> <category>Ticket</category> </item> <item> <dc:creator>anonymous</dc:creator> <pubDate>Fri, 06 Mar 2015 09:56:18 GMT</pubDate> <title/> <link>https://svn.boost.org/trac10/ticket/7610#comment:2 </link> <guid isPermaLink="false">https://svn.boost.org/trac10/ticket/7610#comment:2</guid> <description> <p> I would also find this useful! I guess the main issue is that the PSK callback from OpenSSL is synchronous.. </p> </description> <category>Ticket</category> </item> <item> <dc:creator>anonymous</dc:creator> <pubDate>Fri, 06 Mar 2015 20:56:23 GMT</pubDate> <title/> <link>https://svn.boost.org/trac10/ticket/7610#comment:3 </link> <guid isPermaLink="false">https://svn.boost.org/trac10/ticket/7610#comment:3</guid> <description> <p> The patch has a couple of issues with it. Chiefly the use of SSL_ctx_set_app_data and SSL_ctx_get_app_data (and SSL_set_app_data in the engine class) assigning a different type to set_verify_callback. the type set in verify_callback is the one that is destroyed in the context dtor. It will probably still work but it is technically not correct. Additionally this would result in UB if both verify_callback and psk callbacks are set on the same context. </p> <p> Should use a small detail<span class="underline">context_appdata class or something. </span></p> <p> This is also missing an interface to set the PSK callback in the client case. </p> </description> <category>Ticket</category> </item> <item> <dc:creator>anonymous</dc:creator> <pubDate>Fri, 06 Mar 2015 20:56:49 GMT</pubDate> <title/> <link>https://svn.boost.org/trac10/ticket/7610#comment:3 </link> <guid isPermaLink="false">https://svn.boost.org/trac10/ticket/7610#comment:3</guid> <description> <p> The patch has a couple of issues with it. Chiefly the use of SSL_ctx_set_app_data and SSL_ctx_get_app_data (and SSL_set_app_data in the engine class) assigning a different type to set_verify_callback. the type set in verify_callback is the one that is destroyed in the context dtor. It will probably still work but it is technically not correct. Additionally this would result in UB if both verify_callback and psk callbacks are set on the same context. </p> <p> Should use a small detail<span class="underline">context_appdata class or something. </span></p> <p> This is also missing an interface to set the PSK callback in the client case. </p> </description> <category>Ticket</category> </item> <item> <dc:creator>anonymous</dc:creator> <pubDate>Fri, 06 Mar 2015 20:58:00 GMT</pubDate> <title/> <link>https://svn.boost.org/trac10/ticket/7610#comment:3 </link> <guid isPermaLink="false">https://svn.boost.org/trac10/ticket/7610#comment:3</guid> <description> <p> The patch has a couple of issues with it. Chiefly the use of SSL_ctx_set_app_data and </p> <p> SSL_ctx_get_app_data (and SSL_set_app_data in the engine class) assigning a different type to </p> <p> set_verify_callback. the type set in verify_callback is the one that is destroyed in the context </p> <p> dtor. It will probably still work but it is technically not correct. Additionally this would result </p> <p> in UB if both verify_callback and psk callbacks are set on the same context. </p> <p> Should use a small detail<span class="underline">context_appdata class or something. </span></p> <p> This is also missing an interface to set the PSK callback in the client case. </p> </description> <category>Ticket</category> </item> </channel> </rss>