Skip to content

Atexit.final draft.cleanup - #29385

Closed
Sashan wants to merge 10 commits into
openssl:masterfrom
Sashan:atexit.final-draft.cleanup
Closed

Sashan wants to merge 10 commits into
openssl:masterfrom
Sashan:atexit.final-draft.cleanup

Conversation

@Sashan

@Sashan Sashan commented Dec 12, 2025

Copy link
Copy Markdown
Contributor
Checklist
  • documentation is added or updated
  • tests are added or updated

@github-actions github-actions Bot added the severity: fips change The pull request changes FIPS provider sources label Dec 12, 2025

@paulidale paulidale 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.

I'd have expected to see an addition to the environment section in doc/man5/config.pod.

I would have thought that this deserves a NEWS.md entry too.

@Sashan
Sashan force-pushed the atexit.final-draft.cleanup branch from 06d50be to f7ad386 Compare December 15, 2025 09:34
@Sashan
Sashan marked this pull request as ready for review December 15, 2025 10:34
@github-project-automation github-project-automation Bot moved this from New to In progress in Project Board Dec 15, 2025
@Sashan Sashan removed this from Project Board Dec 15, 2025
@Sashan Sashan moved this to Waiting Review in Development Board Dec 15, 2025
Comment thread crypto/init.c Resolved
Comment thread crypto/init.c Resolved
Comment thread include/openssl/crypto.h.in Resolved
Comment thread CHANGES.md Resolved
Comment thread NEWS.md Resolved
Comment thread test/rand_test.c Resolved
Comment thread test/endecode_test.c Resolved
nhorman
nhorman previously approved these changes Dec 15, 2025
@Sashan Sashan added branch: master Applies to master branch triaged: bug The issue/pr is/fixes a bug labels Dec 16, 2025
@Sashan Sashan self-assigned this Dec 16, 2025
@mattcaswell mattcaswell added approval: review pending This pull request needs review by a committer triaged: feature The issue/pr requests/adds a feature and removed triaged: bug The issue/pr is/fixes a bug labels Dec 16, 2025

@mattcaswell mattcaswell left a comment

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

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

There appear to be a number of unrelated changes in this PR?

Comment thread crypto/ec/ec_backend.c Resolved
Comment thread crypto/init.c Resolved
Comment thread crypto/initthread.c Resolved
Comment thread doc/man3/BIO_set_flags.pod Resolved
Comment thread doc/man3/OPENSSL_init_crypto.pod Resolved
Comment thread doc/man3/OPENSSL_init_crypto.pod Resolved
Comment thread test/testutil/main.c Resolved
@Sashan
Sashan force-pushed the atexit.final-draft.cleanup branch 3 times, most recently from 5902b64 to 23472a6 Compare December 16, 2025 16:01
Sashan and others added 3 commits December 16, 2025 17:02
libcrypto does not arm OPENSSL_cleanup() function as atexit(3) handler by default.
If application/user wants libcrypto to install OPENSSL_cleanup() as atexit handler,
then OPENSSL_ATEXIT_CLEANUP env. variable must be set.

If platform's libc does not provide atexit(3), then OPENSSL_ATEXIT_CLEANUP has no effect.

The OPENSSL_atexit() is wrapper of atexit(3) provided by libc now.
openssl-machine pushed a commit that referenced this pull request Dec 19, 2025
Reviewed-by: Neil Horman <[email protected]>
Reviewed-by: Matt Caswell <[email protected]>
(Merged from #29385)
openssl-machine pushed a commit that referenced this pull request Dec 19, 2025
Reviewed-by: Neil Horman <[email protected]>
Reviewed-by: Matt Caswell <[email protected]>
(Merged from #29385)
openssl-machine pushed a commit that referenced this pull request Dec 19, 2025
Reviewed-by: Neil Horman <[email protected]>
Reviewed-by: Matt Caswell <[email protected]>
(Merged from #29385)
openssl-machine pushed a commit that referenced this pull request Dec 19, 2025
Co-authored-by: Matt Caswell <[email protected]>

Reviewed-by: Neil Horman <[email protected]>
Reviewed-by: Matt Caswell <[email protected]>
(Merged from #29385)
openssl-machine pushed a commit that referenced this pull request Dec 19, 2025
Co-authored-by: Matt Caswell <[email protected]>

Reviewed-by: Neil Horman <[email protected]>
Reviewed-by: Matt Caswell <[email protected]>
(Merged from #29385)
openssl-machine pushed a commit that referenced this pull request Dec 19, 2025
Co-authored-by: Matt Caswell <[email protected]>

Reviewed-by: Neil Horman <[email protected]>
Reviewed-by: Matt Caswell <[email protected]>
(Merged from #29385)
websurfer5 pushed a commit to websurfer5/openssl that referenced this pull request Dec 23, 2025
libcrypto does not arm OPENSSL_cleanup() function as atexit(3) handler by default.
If application/user wants libcrypto to install OPENSSL_cleanup() as atexit handler,
then OPENSSL_ATEXIT_CLEANUP env. variable must be set.

If platform's libc does not provide atexit(3), then OPENSSL_ATEXIT_CLEANUP has no effect.

The OPENSSL_atexit() is wrapper of atexit(3) provided by libc now.

Reviewed-by: Neil Horman <[email protected]>
Reviewed-by: Matt Caswell <[email protected]>
(Merged from openssl#29385)
websurfer5 pushed a commit to websurfer5/openssl that referenced this pull request Dec 23, 2025
Reviewed-by: Neil Horman <[email protected]>
Reviewed-by: Matt Caswell <[email protected]>
(Merged from openssl#29385)
websurfer5 pushed a commit to websurfer5/openssl that referenced this pull request Dec 23, 2025
Reviewed-by: Neil Horman <[email protected]>
Reviewed-by: Matt Caswell <[email protected]>
(Merged from openssl#29385)
websurfer5 pushed a commit to websurfer5/openssl that referenced this pull request Dec 23, 2025
Reviewed-by: Neil Horman <[email protected]>
Reviewed-by: Matt Caswell <[email protected]>
(Merged from openssl#29385)
websurfer5 pushed a commit to websurfer5/openssl that referenced this pull request Dec 23, 2025
Co-authored-by: Matt Caswell <[email protected]>

Reviewed-by: Neil Horman <[email protected]>
Reviewed-by: Matt Caswell <[email protected]>
(Merged from openssl#29385)
websurfer5 pushed a commit to websurfer5/openssl that referenced this pull request Dec 23, 2025
Co-authored-by: Matt Caswell <[email protected]>

Reviewed-by: Neil Horman <[email protected]>
Reviewed-by: Matt Caswell <[email protected]>
(Merged from openssl#29385)
websurfer5 pushed a commit to websurfer5/openssl that referenced this pull request Dec 23, 2025
Co-authored-by: Matt Caswell <[email protected]>

Reviewed-by: Neil Horman <[email protected]>
Reviewed-by: Matt Caswell <[email protected]>
(Merged from openssl#29385)
websurfer5 pushed a commit to websurfer5/openssl that referenced this pull request Dec 23, 2025
libcrypto does not arm OPENSSL_cleanup() function as atexit(3) handler by default.
If application/user wants libcrypto to install OPENSSL_cleanup() as atexit handler,
then OPENSSL_ATEXIT_CLEANUP env. variable must be set.

If platform's libc does not provide atexit(3), then OPENSSL_ATEXIT_CLEANUP has no effect.

The OPENSSL_atexit() is wrapper of atexit(3) provided by libc now.

Reviewed-by: Neil Horman <[email protected]>
Reviewed-by: Matt Caswell <[email protected]>
(Merged from openssl#29385)
websurfer5 pushed a commit to websurfer5/openssl that referenced this pull request Dec 23, 2025
Reviewed-by: Neil Horman <[email protected]>
Reviewed-by: Matt Caswell <[email protected]>
(Merged from openssl#29385)
websurfer5 pushed a commit to websurfer5/openssl that referenced this pull request Dec 23, 2025
Reviewed-by: Neil Horman <[email protected]>
Reviewed-by: Matt Caswell <[email protected]>
(Merged from openssl#29385)
websurfer5 pushed a commit to websurfer5/openssl that referenced this pull request Dec 23, 2025
Reviewed-by: Neil Horman <[email protected]>
Reviewed-by: Matt Caswell <[email protected]>
(Merged from openssl#29385)
websurfer5 pushed a commit to websurfer5/openssl that referenced this pull request Dec 23, 2025
Co-authored-by: Matt Caswell <[email protected]>

Reviewed-by: Neil Horman <[email protected]>
Reviewed-by: Matt Caswell <[email protected]>
(Merged from openssl#29385)
websurfer5 pushed a commit to websurfer5/openssl that referenced this pull request Dec 23, 2025
Co-authored-by: Matt Caswell <[email protected]>

Reviewed-by: Neil Horman <[email protected]>
Reviewed-by: Matt Caswell <[email protected]>
(Merged from openssl#29385)
websurfer5 pushed a commit to websurfer5/openssl that referenced this pull request Dec 23, 2025
Co-authored-by: Matt Caswell <[email protected]>

Reviewed-by: Neil Horman <[email protected]>
Reviewed-by: Matt Caswell <[email protected]>
(Merged from openssl#29385)
novotimo pushed a commit to novotimo/openssl that referenced this pull request Dec 28, 2025
libcrypto does not arm OPENSSL_cleanup() function as atexit(3) handler by default.
If application/user wants libcrypto to install OPENSSL_cleanup() as atexit handler,
then OPENSSL_ATEXIT_CLEANUP env. variable must be set.

If platform's libc does not provide atexit(3), then OPENSSL_ATEXIT_CLEANUP has no effect.

The OPENSSL_atexit() is wrapper of atexit(3) provided by libc now.

Reviewed-by: Neil Horman <[email protected]>
Reviewed-by: Matt Caswell <[email protected]>
(Merged from openssl#29385)
novotimo pushed a commit to novotimo/openssl that referenced this pull request Dec 28, 2025
Reviewed-by: Neil Horman <[email protected]>
Reviewed-by: Matt Caswell <[email protected]>
(Merged from openssl#29385)
novotimo pushed a commit to novotimo/openssl that referenced this pull request Dec 28, 2025
Reviewed-by: Neil Horman <[email protected]>
Reviewed-by: Matt Caswell <[email protected]>
(Merged from openssl#29385)
@mtrojnar mtrojnar mentioned this pull request Jun 12, 2026
2 tasks
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

approval: ready to merge The 24 hour grace period has passed, ready to merge branch: master Applies to master branch severity: fips change The pull request changes FIPS provider sources triaged: feature The issue/pr requests/adds a feature

Projects

Status: Done

Development

Successfully merging this pull request may close these issues.

5 participants