]> git.ipfire.org Git - thirdparty/shadow.git/commit
libmisc/salt.c: Add comments how the minmum buffer length is computed.
authorBjörn Esser <besser82@fedoraproject.org>
Mon, 14 Jun 2021 21:28:28 +0000 (23:28 +0200)
committerBjörn Esser <besser82@fedoraproject.org>
Wed, 23 Jun 2021 14:29:24 +0000 (16:29 +0200)
commitdbf230e4cf823dd6b6a3bad6d29dfad4f0ffa8fc
treece005563c8422e211f6d97e2772d6d13cb7721b8
parent2f0d14eb21771dfdf029fcf90281b830335b5aed
libmisc/salt.c: Add comments how the minmum buffer length is computed.

In the previous commit we refactored the functions converting the
rounds number into a string for use with the crypt() function, to
not require any static buffer anymore.

Add some clarifying comments about how the minimum required buffer
length is computed inside of these functions.

Signed-off-by: Björn Esser <besser82@fedoraproject.org>
libmisc/salt.c