HALF ECHO LEARN / REFERENCE COLLECTION

v262.2

src/shared/libcrypt-util.h

Git blob: 04ea39415a81f3fb1b649bfbf86eebf9fbd2d049

Lines 1–23 of 23

/* SPDX-License-Identifier: LGPL-2.1-or-later */
#pragma once
 
#include "dlopen-note.h"
#include "forward.h"
 
#if HAVE_LIBCRYPT
int make_salt(char **ret);
int hash_password(const char *password, char **ret);
int test_password_one(const char *hashed_password, const char *password);
int test_password_many(char **hashed_password, const char *password);
 
#else
 
static inline int hash_password(const char *password, char **ret) {
        return -EOPNOTSUPP;
}
#endif
 
int dlopen_libcrypt(int log_level) _dlopen_loader_;
 
bool looks_like_hashed_password(const char *s);