Displaying 1 result from an estimated 1 matches for "err_reason_error_string".
2014 Dec 14
2
[PATCH] Early request for comments: U2F authentication
...fic "help" I stumbled
upon your OpenSSH patch.
I think there's a small bug:
> + if ((err = EVP_VerifyInit(&mdctx, EVP_ecdsa())) != 1) {
> + ERR_error_string(ERR_get_error(), errorbuf);
> + fatal("EVP_VerifyInit() failed: %s (reason: %s)",
> + errorbuf, ERR_reason_error_string(err));
You should use "EVP_sha256()" instead of "EVP_ecdsa()" here (we have a
ECDSA signature on the SHA256 hash)
> + if ((err = EVP_VerifyFinal(&mdctx, walk, restlen, pkey)) == -1) {
> + ERR_error_string(ERR_get_error(), errorbuf);
> + error("Verifying th...