Movatterモバイル変換


[0]ホーム

URL:


Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Sign up
Appearance settings

Commit416d1bd

Browse files
committed
Fix outdated comment of scram_build_secret()
This routine documented that "iterations" would use a default value ifset to 0 by the caller. However, the iteration should always be set bythe caller to a value strictly more than 0, as documented by anassertion.Oversight inb577743, that has made the iteration count of SCRAMconfigurable.Author: Matheus AlcantaraDiscussion:https://postgr.es/m/ac858943-4743-44cd-b4ad-08a0c10cbbc8@gmail.comBackpatch-through: 16
1 parenta12b0f3 commit416d1bd

File tree

1 file changed

+1
-2
lines changed

1 file changed

+1
-2
lines changed

‎src/common/scram-common.c

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -200,8 +200,7 @@ scram_ServerKey(const uint8 *salted_password,
200200
*
201201
* The password should already have been processed with SASLprep, if necessary!
202202
*
203-
* If iterations is 0, default number of iterations is used. The result is
204-
* palloc'd or malloc'd, so caller is responsible for freeing it.
203+
* The result is palloc'd or malloc'd, so caller is responsible for freeing it.
205204
*
206205
* On error, returns NULL and sets *errstr to point to a message about the
207206
* error details.

0 commit comments

Comments
 (0)

[8]ページ先頭

©2009-2025 Movatter.jp