Sign Up
Log In
Log In
or
Sign Up
Places
All Projects
Status Monitor
Collapse sidebar
openSUSE:12.2
whois
whois-5.0.11-mkpasswd-set-default-blowfish-roun...
Overview
Repositories
Revisions
Requests
Users
Attributes
Meta
File whois-5.0.11-mkpasswd-set-default-blowfish-rounds-to-5.diff of Package whois
From 45731d21f551b72e10e211edfa1b3c4e2ed3f8ad Mon Sep 17 00:00:00 2001 From: Ludwig Nussel <ludwig.nussel@suse.de> Date: Thu, 14 Jul 2011 13:39:07 +0200 Subject: [PATCH whois 5/7] set default blowfish rounds to 5 five rounds is the crypt_blowfish default --- mkpasswd.c | 4 ++-- 1 files changed, 2 insertions(+), 2 deletions(-) diff --git a/mkpasswd.c b/mkpasswd.c index 281d970..ee997ba 100644 --- a/mkpasswd.c +++ b/mkpasswd.c @@ -232,8 +232,8 @@ int main(int argc, char *argv[]) if (streq(salt_prefix, "$2a$") || streq(salt_prefix, "$2y$")) { /* OpenBSD Blowfish */ - if (rounds <= 4) - rounds = 4; + if (rounds < 5) + rounds = 5; /* actually for 2a it is the logarithm of the number of rounds */ snprintf(rounds_str, sizeof(rounds_str), "%02u$", rounds); } else if (rounds_support && rounds) -- 1.7.3.4
Locations
Projects
Search
Status Monitor
Help
OpenBuildService.org
Documentation
API Documentation
Code of Conduct
Contact
Support
@OBShq
Terms
openSUSE Build Service is sponsored by
The Open Build Service is an
openSUSE project
.
Sign Up
Log In
Places
Places
All Projects
Status Monitor