openwall / tcb

Alternative password shadowing scheme
https://www.openwall.com/tcb/
Other
8 stars 3 forks source link

pam_tcb: Request automatic prefix only if libcrypt really implements it. #4

Closed besser82 closed 3 years ago

besser82 commented 3 years ago

In libxcrypt, starting with version 4.0.0, supplying a null pointer as the prefix argument to the crypt_gensalt_ra() function will cause it to select the best available hash function.

Starting with version 4.1.0, libxcrypt provides the CRYPT_GENSALT_IMPLEMENTS_DEFAULT_PREFIX macro to test the availability of this feature at build time.

However, in some specific, but unusual, build-time configurations of libxcrypt the CRYPT_GENSALT_IMPLEMENTS_DEFAULT_PREFIX feature-test macro is defined to 0, which means libxcrypt does not provide a best-choice default prefix.

ldv-alt commented 3 years ago

@solardiz "First-time contributors need a maintainer to approve running workflows".

besser82 commented 3 years ago

@solardiz Let's start merging with this one.