Fix documentation of return value for 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:21:10 +0000 (01:21 +0100)
They never returned the negative values that the documentation stated.

Reviewed-by: Paul Dale <paul.dale@oracle.com>
(Merged from https://github.com/openssl/openssl/pull/10847)

CHANGES
doc/man3/EVP_DigestSignInit.pod

diff --git a/CHANGES b/CHANGES
index 42382fd031e503354485f6e1aabba89010469b50..e4d57bb6b50b8ade36ddb40d98f8fbdf2a52e857 100644 (file)
--- a/CHANGES
+++ b/CHANGES
@@ -9,6 +9,15 @@
 
  Changes between 1.1.1d and 1.1.1e [xx XXX xxxx]
 
+  *) Corrected the documentation of the return values from the EVP_DigestSign*
+     set of functions.  The documentation mentioned negative values for some
+     errors, but this was never the case, so the mention of negative values
+     was removed.
+
+     Code that followed the documentation and thereby check with something
+     like 'EVP_DigestSignInit(...) <= 0' will continue to work undisturbed.
+     [Richard Levitte]
+
   *) Fixed an an overflow bug in the x64_64 Montgomery squaring procedure
      used in exponentiation with 512-bit moduli. No EC algorithms are
      affected. Analysis suggests that attacks against 2-prime RSA1024,
index b2b70bfce6bc2246c37a322261adde77f9a2eb66..cd159815de3f8afefffa0c35de79194954f2f3f5 100644 (file)
@@ -103,9 +103,7 @@ EVP_DigestSignFinal().
 =head1 RETURN VALUES
 
 EVP_DigestSignInit(), EVP_DigestSignUpdate(), EVP_DigestSignaFinal() and
-EVP_DigestSign() return 1 for success and 0 or a negative value for failure. In
-particular, a return value of -2 indicates the operation is not supported by the
-public key algorithm.
+EVP_DigestSign() return 1 for success and 0 for failure.
 
 The error codes can be obtained from L<ERR_get_error(3)>.