htpasswd: use crypt_newhash instead of the bcrypt API
authorawolk <awolk@openbsd.org>
Wed, 7 Jun 2017 09:11:52 +0000 (09:11 +0000)
committerawolk <awolk@openbsd.org>
Wed, 7 Jun 2017 09:11:52 +0000 (09:11 +0000)
commitaacddaf626bd85461ecd9c3350e996029c328af0
tree85ca8005ebcb1cd7cc638afd752ec57bb4060fd8
parent108ab9ecb4a1f16cd0ab83c3145884dfd746ade2
htpasswd: use crypt_newhash instead of the bcrypt API

man bcrypt states:
     These functions are deprecated in favor of crypt_checkpass(3) and
     crypt_newhash(3).

hence with this change we move htpasswd to the new API, while here
also change the rounds from a hardcoded 8 to automatic selection based
on system performance.

OK florian@
usr.bin/htpasswd/htpasswd.c