Skip to content

Commit

Permalink
Revert "libathemecore/crypto.c: crypt_string(): generate salt if not …
Browse files Browse the repository at this point in the history
…given one"

This reverts commit df29296.
  • Loading branch information
siniStar7 committed Dec 8, 2017
1 parent 716ddf3 commit 52ea65d
Showing 1 changed file with 2 additions and 10 deletions.
12 changes: 2 additions & 10 deletions libathemecore/crypto.c
Expand Up @@ -76,16 +76,8 @@ static void
crypt_log_modchg(const char *const restrict caller, const char *const restrict which,
const crypt_impl_t *const restrict impl)
{
const crypt_impl_t *ci = crypt_get_default_provider();

if (!salt || !*salt)
salt = ci->salt();

if (!salt)
return NULL;

return ci->crypt(key, salt);
}
const unsigned int level = (runflags & RF_STARTING) ? LG_DEBUG : LG_INFO;
const crypt_impl_t *const ci = crypt_get_default_provider();

(void) slog(level, "%s: %s crypto provider '%s'", caller, which, impl->id);

Expand Down

0 comments on commit 52ea65d

Please sign in to comment.