Skip to content

Conversation

@MatanRad
Copy link

Fixed a bug where Python's CERT_REQUIRED mapped only to WOLFSSL_VERIFY_PEER instead of also including WOLFSSL_VERIFY_FAIL_IF_NO_PEER_CERT.
As a result, setting verify_mode = wolfssl.CERT_REQUIRED caused wolfSSL_CTX_set_verify to be called with just WOLFSSL_VERIFY_PEER flag, making the WolfSSL server request a client certificate but still accept the connection when none was provided.

Added CERT_OPTIONAL which now takes the previous value of CERT_REQUIRED and provides the correctly functionality.
This variable was mentioned multiple times (in wrap_socket and in verify_mode's getter and setter).

@wolfSSL-Bot
Copy link

Can one of the admins verify this patch?

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.

2 participants