Skip to content

Restore fail-closed crypto library guard#16

Open
NateIsern wants to merge 1 commit into
mainfrom
codex/propose-fix-for-crypto-library-vulnerability
Open

Restore fail-closed crypto library guard#16
NateIsern wants to merge 1 commit into
mainfrom
codex/propose-fix-for-crypto-library-vulnerability

Conversation

@NateIsern

Copy link
Copy Markdown
Member

Motivation

  • Prevent accidental builds against LibreSSL or unsupported modern OpenSSL-style libcrypto by restoring the original fail-closed guard so the build refuses to proceed by default when RAND_egd is missing, avoiding a consensus-sensitive binary divergence risk.

Description

  • Replace the warning-only AC_CHECK_LIB([crypto],[RAND_egd]) behavior with an AC_ARG_WITH([libressl]) block that emits an explicit warning only when --with-libressl is supplied and otherwise fails with AC_MSG_ERROR, restoring the previous fail-closed guard in configure.ac.

Testing

  • Verified the change with a targeted Python assertion that confirms the new AC_ARG_WITH([libressl]) block is present and the prior "Continuing anyway" warning is absent, ran git diff --check which passed, and attempted autoconf which failed in this container due to missing Automake/pkg-config macro definitions (expected environment limitation).

Codex Task

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

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant