Skip to content

bug: fix const correctness bugs#301

Merged
williamcroberts merged 5 commits into
tpm2-software:masterfrom
williamcroberts:fix-ci-build-2
Jul 4, 2026
Merged

bug: fix const correctness bugs#301
williamcroberts merged 5 commits into
tpm2-software:masterfrom
williamcroberts:fix-ci-build-2

Conversation

@williamcroberts

Copy link
Copy Markdown
Member

Some functions, including callbacks, had const in them, while not quite right, they were not quite wrong either, but older OpenSSL was notoriously full of places where const should have been used. So, to keep the patch simple and so we don't have to cast function pointers, drop const.

Because this library targets OpenSSL versions less than 3, we don't want
the build cluttered with warnings about deprecated functions. Thus
ignore them.

Signed-off-by: Bill Roberts <bill.c.roberts@gmail.com>
OpenSSL has added some const specifiers to their function in version 3
that are missing in version 2. This causes all sorts of invalid target
pointer warnings on function pointers. To fix this, make the interfaces
match what OpenSSL expects for its version.

Signed-off-by: Bill Roberts <bill.c.roberts@gmail.com>
Signed-off-by: Bill Roberts <bill.c.roberts@gmail.com>
leap always moves to the bleeding edge, so we don't want to keep trying to
figure out how to use the deprecated engine with the bleeding edge
versions.

Signed-off-by: Bill Roberts <bill.c.roberts@gmail.com>
We can't support this container anymore, it's out of date. We will need
to create a new container for a more testing this arch again.

Signed-off-by: Bill Roberts <bill.c.roberts@gmail.com>
@williamcroberts williamcroberts merged commit 89d8851 into tpm2-software:master Jul 4, 2026
9 checks passed
@williamcroberts williamcroberts deleted the fix-ci-build-2 branch July 4, 2026 00:17
@williamcroberts

Copy link
Copy Markdown
Member Author

Ok this green lights our CI and patch flow again, so I am going to go ahead and merge this.

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.

1 participant