Skip to content

Commit 52ea65d

Browse files
committed
Revert "libathemecore/crypto.c: crypt_string(): generate salt if not given one"
This reverts commit df29296.
1 parent 716ddf3 commit 52ea65d

File tree

1 file changed

+2
-10
lines changed

1 file changed

+2
-10
lines changed

libathemecore/crypto.c

Lines changed: 2 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -76,16 +76,8 @@ static void
7676
crypt_log_modchg(const char *const restrict caller, const char *const restrict which,
7777
const crypt_impl_t *const restrict impl)
7878
{
79-
const crypt_impl_t *ci = crypt_get_default_provider();
80-
81-
if (!salt || !*salt)
82-
salt = ci->salt();
83-
84-
if (!salt)
85-
return NULL;
86-
87-
return ci->crypt(key, salt);
88-
}
79+
const unsigned int level = (runflags & RF_STARTING) ? LG_DEBUG : LG_INFO;
80+
const crypt_impl_t *const ci = crypt_get_default_provider();
8981

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

0 commit comments

Comments
 (0)