Coverage Report

Created: 2026-01-22 06:47

next uncovered line (L), next uncovered region (R), next uncovered branch (B)
/src/systemd/src/shared/libcrypt-util.h
Line
Count
Source
1
/* SPDX-License-Identifier: LGPL-2.1-or-later */
2
#pragma once
3
4
#include "shared-forward.h"
5
6
#if HAVE_LIBCRYPT
7
int dlopen_libcrypt(void);
8
int make_salt(char **ret);
9
int hash_password(const char *password, char **ret);
10
int test_password_one(const char *hashed_password, const char *password);
11
int test_password_many(char **hashed_password, const char *password);
12
13
#else
14
15
0
static inline int dlopen_libcrypt(void) {
16
0
        return -EOPNOTSUPP;
17
0
}
Unexecuted instantiation: libcrypt-util.c:dlopen_libcrypt
Unexecuted instantiation: user-record-nss.c:dlopen_libcrypt
18
0
static inline int hash_password(const char *password, char **ret) {
19
0
        return -EOPNOTSUPP;
20
0
}
Unexecuted instantiation: libcrypt-util.c:hash_password
Unexecuted instantiation: user-record-nss.c:hash_password
21
#endif
22
23
bool looks_like_hashed_password(const char *s);