Change returned -2 to 0 in EVP_Digest{Sign,Verify}Init()
authorRichard Levitte <levitte@openssl.org>
Sun, 12 Jan 2020 00:05:01 +0000 (01:05 +0100)
committerRichard Levitte <levitte@openssl.org>
Wed, 15 Jan 2020 00:17:14 +0000 (01:17 +0100)
commit76123661a1db136b9ef368dc296a628818e7a4cc
tree7775b37879a1b290976bd10ada14b9dde5590497
parent6a165fab239ec5b00b3cd68169a63b509207177d
Change returned -2 to 0 in EVP_Digest{Sign,Verify}Init()

The returned -2 was to mark when these operations are unsupported.
However, that breaks away from the previous API and expectations, and
there's not enough justification for that not being zero.

Reviewed-by: Nicola Tuveri <nic.tuv@gmail.com>
Reviewed-by: Tomas Mraz <tmraz@fedoraproject.org>
(Merged from https://github.com/openssl/openssl/pull/10815)
CHANGES
crypto/evp/m_sigver.c
doc/man3/EVP_DigestSignInit.pod