1
0
mirror of https://github.com/libssh2/libssh2.git synced 2025-11-20 02:42:09 +03:00

Fix regression with rsa_sha2_verify #758 (#763)

Fixes comparison with the result value coming from `mbedtls_rsa_pkcs1_verify`. Success is 0, not 1.
This commit is contained in:
Will Cosgrove
2022-10-26 16:48:52 -07:00
committed by GitHub
parent ca818c5134
commit 0ba6e74bec

View File

@@ -541,7 +541,7 @@ _libssh2_mbedtls_rsa_sha2_verify(libssh2_rsa_ctx * rsactx,
#endif #endif
free(hash); free(hash);
return (ret == 1) ? 0 : -1; return (ret == 0) ? 0 : -1;
} }
int int