Improve/correct comments
authorPeter Eisentraut <peter@eisentraut.org>
Thu, 9 Mar 2023 08:59:46 +0000 (09:59 +0100)
committerPeter Eisentraut <peter@eisentraut.org>
Thu, 9 Mar 2023 08:59:46 +0000 (09:59 +0100)
commit36ea345f8fa616fd9b40576310e54145aa70c1a1
treef7bce78a325999071b42b73f519adaa92b81451a
parent544b452a5a598dd14d7a38d15a778932e58d18b0
Improve/correct comments

Change comments for pg_cryptohash_init(), pg_cryptohash_update(),
pg_cryptohash_final() in cryptohash.c to match cryptohash_openssl.c.
In particular, the claim that these functions were "designed" to never
fail was incorrect, since by design callers need to be prepared to
handle failures, for compatibility with the cryptohash_openssl.c
versions.

Reviewed-by: Daniel Gustafsson <daniel@yesql.se>
Discussion: https://www.postgresql.org/message-id/301F4EDD-27B9-460F-B462-B9DB2BDE4ACF@yesql.se
src/common/cryptohash.c