Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Use proper ref count handling when adding to x509 store #8233

Merged
merged 5 commits into from
Dec 11, 2024

Conversation

ColtonWilley
Copy link
Contributor

Description

Use proper ref count handling when adding to x509 store

Fixes github issue #8222

@ColtonWilley ColtonWilley changed the title Use proper ref count handling when adding to x509 store WIP: Use proper ref count handling when adding to x509 store Nov 27, 2024
@ColtonWilley ColtonWilley changed the title WIP: Use proper ref count handling when adding to x509 store Use proper ref count handling when adding to x509 store Dec 2, 2024
src/x509_str.c Outdated Show resolved Hide resolved
@ColtonWilley
Copy link
Contributor Author

Retest this please.

Copy link
Contributor

@douzzer douzzer left a comment

Choose a reason for hiding this comment

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

this all LGTM.

A separate issue, which you probably noticed yourself, is that we have a wolfSSL_X509_up_ref() but no corresponding wolfSSL_X509_down_ref(). Hence, the *free() routines need to use ad hoc wolfSSL_RefDec(&store->ref, ...) calls.

Cleanup opportunity for another time.

@douzzer douzzer merged commit 2ea2e6b into wolfSSL:master Dec 11, 2024
143 checks passed
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.

5 participants