Skip to content

Conversation

dsoumis
Copy link
Member

@dsoumis dsoumis commented Oct 9, 2025

The existing logic to approve optionalNoCA connections only checked if errnum was one of the known optional errors defined in the SSL_VERIFY_ERROR_IS_OPTIONAL macro. It did not account for the case where the error code was X509_V_OK. As a result, the condition was not met, and the function incorrectly proceeded as if the handshake had failed, causing the connection to be rejected.

The existing logic to approve optionalNoCA connections only checked if errnum was one of the known optional errors defined in the SSL_VERIFY_ERROR_IS_OPTIONAL macro. It did not account for the case where the error code was X509_V_OK. As a result, the condition was not met, and the function incorrectly proceeded as if the handshake had failed, causing the connection to be rejected.
@dsoumis dsoumis merged commit 9df4e39 into apache:main Oct 9, 2025
1 check passed
@dsoumis dsoumis deleted the optionalNoCaFix branch October 9, 2025 19:43
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