Skip to content

Fix FTBFS against OpenSSL 4.0 - #6487

Open
amrelsh wants to merge 2 commits into
eProsima:masterfrom
amrelsh:fix_ftbfs_against_openssl4
Open

Fix FTBFS against OpenSSL 4.0#6487
amrelsh wants to merge 2 commits into
eProsima:masterfrom
amrelsh:fix_ftbfs_against_openssl4

Conversation

@amrelsh

@amrelsh amrelsh commented Jul 23, 2026

Copy link
Copy Markdown
  1. <asio/ssl.hpp> pulls in the deprecated rfc2818_verification, which no
    longer compiles on OpenSSL 4.0. so include only the
    asio/ssl headers we need.

  2. X509_get_subject_name() returns a const pointer, so store its
    result in a const pointer to avoid conversion errors.

Fixes #6432

@Mergifyio backport 3.3.x

amrelsh added 2 commits July 23, 2026 10:35
* Include specific asio/ssl headers instead of the asio/ssl.hpp umbrella

The umbrella header drags in the deprecated rfc2818_verification (which isn't
used) that dereferences the now-opaque types

Signed-off-by: Amr Elsheshtawy <amr.elsheshtawy@canonical.com>
* Store X509_get_subject_name result in a const pointer

X509_get_subject_name returns a const pointer which should be assigned
to const pointer type variables avoiding conversion errors

Signed-off-by: Amr Elsheshtawy <amr.elsheshtawy@canonical.com>
@amrelsh
amrelsh force-pushed the fix_ftbfs_against_openssl4 branch from 68243af to 57ec814 Compare July 23, 2026 07:58
@amrelsh

amrelsh commented Jul 28, 2026

Copy link
Copy Markdown
Author

@MiguelCompany Hello, whenever you got the time can you take a look at this? Thanks!

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

Build failure with OpenSSL 4.0

1 participant