Skip to content

x509-create-sign.cpp: Fix build failure with Openssl 4.0 - #794

Open
LocutusOfBorg wants to merge 1 commit into
VirtualBox:mainfrom
LocutusOfBorg:patch-1
Open

x509-create-sign.cpp: Fix build failure with Openssl 4.0#794
LocutusOfBorg wants to merge 1 commit into
VirtualBox:mainfrom
LocutusOfBorg:patch-1

Conversation

@LocutusOfBorg

Copy link
Copy Markdown

No description provided.

@oracle-contributor-agreement

Copy link
Copy Markdown

Thank you for your pull request and welcome to our community! To contribute, please sign the Oracle Contributor Agreement (OCA).
The following contributors of this PR have not signed the OCA:

To sign the OCA, please create an Oracle account and sign the OCA in Oracle's Contributor Agreement Application.

When signing the OCA, please provide your GitHub username. After signing the OCA and getting an OCA approval from Oracle, this PR will be automatically updated.

If you are an Oracle employee, please make sure that you are a member of the main Oracle GitHub organization, and your membership in this organization is public.

@oracle-contributor-agreement oracle-contributor-agreement Bot added the OCA Required At least one contributor does not have an approved Oracle Contributor Agreement. label Jul 29, 2026
@LocutusOfBorg

Copy link
Copy Markdown
Author

OCA signed.

@klaus-vb klaus-vb left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Much appreciated. Looks good to me, and I'll see that it gets integrated.

The second change made me look at how I can test it easily, and I ended up spotting unfinished code and some pre-existing coding style violations... will take care of that in a follow-up change after this one is integrating (hope the OCA signing is ticked off soon).

@LocutusOfBorg

Copy link
Copy Markdown
Author

Hello, for the OCA I don't really know, for the X509_NAME, feel free to avoid the cast, I really don't like it but duplicating the variables just to please gcc was even worse :)

@loqs

loqs commented Aug 3, 2026

Copy link
Copy Markdown

I really don't like it but duplicating the variables just to please gcc was even worse :)

In future OpenSSL versions X509_get_subject_name could return read only memory and with the cast it will compile without error or has upstream OpenSSL committed to not doing this and your approach is considered good practice? Other projects avoided this approach znc/znc@94bcf91 mumble-voip/mumble@1f00fb3. @eworm-de

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

Labels

OCA Required At least one contributor does not have an approved Oracle Contributor Agreement.

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants