mirror of
https://github.com/Mbed-TLS/mbedtls.git
synced 2026-03-20 19:21:09 +01:00
We do not return failure, but return -1u which is documented as a value that indicates that the result is not available. Signed-off-by: David Horstmann <david.horstmann@arm.com>
6 lines
297 B
Plaintext
6 lines
297 B
Plaintext
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).
|