Update documentation for PEM callback: error is now -1.
authorNick Mathewson <nickm@torproject.org>
Wed, 16 May 2018 15:07:48 +0000 (11:07 -0400)
committerRichard Levitte <levitte@openssl.org>
Thu, 21 Jun 2018 16:47:39 +0000 (18:47 +0200)
commite4b47f7f19392e3be604e44f6999de2bc9e7ecf3
tree29323223596243ab8d794ab85535f231b9ba8a7d
parent7b3e775a6a78650bbd3e8e19a5aa12981880402b
Update documentation for PEM callback: error is now -1.

In previous versions of OpenSSL, the documentation for PEM_read_*
said:

   The callback B<must> return the number of characters in the
   passphrase or 0 if an error occurred.

But since c82c3462267afdbbaa5, 0 is now treated as a non-error
return value.  Applications that want to indicate an error need to
return -1 instead.

Reviewed-by: Rich Salz <rsalz@openssl.org>
Reviewed-by: Richard Levitte <levitte@openssl.org>
(Merged from https://github.com/openssl/openssl/pull/6271)

(cherry picked from commit bbbf752a3c8b5a966bcb48fc71a3dc03832e7b27)
doc/crypto/PEM_read_bio_PrivateKey.pod