Fix outdated comment of scram_build_secret()
authorMichael Paquier <michael@paquier.xyz>
Tue, 10 Dec 2024 03:54:16 +0000 (12:54 +0900)
committerMichael Paquier <michael@paquier.xyz>
Tue, 10 Dec 2024 03:54:16 +0000 (12:54 +0900)
commit8ac97ce42c8c0180328c80a06bf9c0bcae500477
tree28cbc869bc149c77a5c01181dfc8f06981cd6ded
parentb0a04ce0916b370e70ccf0a2e6a5d4d7607efe25
Fix outdated comment of scram_build_secret()

This routine documented that "iterations" would use a default value if
set to 0 by the caller.  However, the iteration should always be set by
the caller to a value strictly more than 0, as documented by an
assertion.

Oversight in b577743000cd, that has made the iteration count of SCRAM
configurable.

Author: Matheus Alcantara
Discussion: https://postgr.es/m/ac858943-4743-44cd-b4ad-08a0c10cbbc8@gmail.com
Backpatch-through: 16
src/common/scram-common.c