[Bug 261331] devel/boost-libs: consumers of boost/asio fail to build with latest libressl 3.4.2

From: <bugzilla-noreply_at_freebsd.org>
Date: Wed, 19 Jan 2022 11:45:53 UTC
https://bugs.freebsd.org/bugzilla/show_bug.cgi?id=261331

            Bug ID: 261331
           Summary: devel/boost-libs: consumers of boost/asio fail to
                    build with latest libressl 3.4.2
           Product: Ports & Packages
           Version: Latest
          Hardware: Any
                OS: Any
            Status: New
          Severity: Affects Only Me
          Priority: ---
         Component: Individual Port(s)
          Assignee: office@FreeBSD.org
          Reporter: felix@palmen-it.de
          Assignee: office@FreeBSD.org
             Flags: maintainer-feedback?(office@FreeBSD.org)

Created attachment 231154
  --> https://bugs.freebsd.org/bugzilla/attachment.cgi?id=231154&action=edit
0001-devel-boost-libs-fix-consumer-builds-for-libressl

With the latest LibreSSL, compiling software using boost/asio for ssl gives
build errors like this:

---
In file included from /usr/local/include/boost/asio/ssl.hpp:18:
In file included from /usr/local/include/boost/asio/ssl/context.hpp:757:
/usr/local/include/boost/asio/ssl/impl/context.ipp:395:32: error: member access
into incomplete type 'SSL_CTX' (aka 'ssl_ctx_st')
    void* cb_userdata = handle_->default_passwd_callback_userdata;
                               ^
---

The attached patch fixes this for me.

-- 
You are receiving this mail because:
You are the assignee for the bug.