diff options
author | Stefan Fritsch <sf@apache.org> | 2012-07-05 18:13:34 +0000 |
---|---|---|
committer | Stefan Fritsch <sf@apache.org> | 2012-07-05 18:13:34 +0000 |
commit | 3097ac8d96b08fca96d5da6cd014828ff43dea95 (patch) | |
tree | 54e1ec4c9b2629df988e20e945c423a7e7135700 /build.conf | |
parent | 4ca99696c1bed1e31343175d37c87ea77758293a (diff) | |
download | apr-3097ac8d96b08fca96d5da6cd014828ff43dea95.tar.gz |
Add support for bcrypt encoded passwords.
The bcrypt implementation uses code from crypt_blowfish written by Solar
Designer <solar openwall com>. The x86 assembler implementation is not used
becaused it did not result in significant speed-up on my system.
apr_bcrypt_encode creates hashes with "$2y$" prefix, but apr_password_validate
also accepts the old prefix "$2a$".
* crypto/crypt_blowfish.[ch]: Imported from crypt_blowfish 1.2. The only
change compared to the upstream version is setting BF_ASM to 0.
* crypto/apr_passwd.c: Add bcrypt support to apr_password_validate, add
apr_bcrypt_encode
* test/testpass.c: Add new tests, for bcrypt and the old schemes.
* include/apr_md5.h: apr_password_validate() is left here fore backward
compatibility and apr_bcrypt_encode() is added here as well.
git-svn-id: https://svn.apache.org/repos/asf/apr/apr/trunk@1357780 13f79535-47bb-0310-9956-ffa450edef68
Diffstat (limited to 'build.conf')
-rw-r--r-- | build.conf | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/build.conf b/build.conf index fc110e2eb..3c6ad6189 100644 --- a/build.conf +++ b/build.conf @@ -17,6 +17,7 @@ paths = crypto/apr_sha1.c crypto/getuuid.c crypto/uuid.c + crypto/crypt_blowfish.c dbm/apr_dbm_sdbm.c dbm/apr_dbm.c dbm/sdbm/*.c |