Projects
Factory:RISC-V:Base
libuser
_service:tar_scm:libuser-0.63-downstream_test_x...
Sign Up
Log In
Username
Password
Overview
Repositories
Revisions
Requests
Users
Attributes
Meta
File _service:tar_scm:libuser-0.63-downstream_test_xcrypt.patch of Package libuser
diff --git a/tests/pwhash_test b/tests/pwhash_test index ff89d60..525885e 100755 --- a/tests/pwhash_test +++ b/tests/pwhash_test @@ -77,6 +77,22 @@ if [ "x${pw#\$6\$}" = "x$pw" ]; then exit 1 fi +cp "${LIBUSER_CONF}_" "$LIBUSER_CONF" +echo 'crypt_style = blowfish' >> "$LIBUSER_CONF" +pw=$(workdir="$workdir" $VALGRIND $PYTHON "$srcdir"/pwhash.py) +if [ "x${pw#\$2b\$}" = "x$pw" ]; then + echo "Invalid BLOWFISH hash" >&2 + exit 1 +fi + +cp "${LIBUSER_CONF}_" "$LIBUSER_CONF" +echo 'crypt_style = yescrypt' >> "$LIBUSER_CONF" +pw=$(workdir="$workdir" $VALGRIND $PYTHON "$srcdir"/pwhash.py) +if [ "x${pw#\$y\$}" = "x$pw" ]; then + echo "Invalid YESCRYPT hash" >&2 + exit 1 +fi + cp "${LIBUSER_CONF}_" "$LIBUSER_CONF" cat >> "$LIBUSER_CONF" <<\EOF crypt_style = sha256
Locations
Projects
Search
Status Monitor
Help
Open Build Service
OBS Manuals
API Documentation
OBS Portal
Reporting a Bug
Contact
Mailing List
Forums
Chat (IRC)
Twitter
Open Build Service (OBS)
is an
openSUSE project
.
浙ICP备2022010568号-2