mirror of
https://github.com/Mbed-TLS/mbedtls.git
synced 2026-08-31 15:29:57 +00:00
Merge pull request #10442 from davidhorstmann-arm/verify-result-default-failure
Hardening: Make `mbedtls_ssl_get_verify_result()` default to failure
This commit is contained in:
@@ -0,0 +1,5 @@
|
||||
Changes
|
||||
* Harden mbedtls_ssl_get_verify_result() against misuse.
|
||||
If the handshake has not yet been attempted, return -1u to indicate
|
||||
that the result is not available. Previously the result of verification
|
||||
was zero-initialized so the function would return 0 (indicating success).
|
||||
Reference in New Issue
Block a user