Serenity Operating System
1/*
2 * Copyright (c) 2018-2020, Andreas Kling <kling@serenityos.org>
3 *
4 * SPDX-License-Identifier: BSD-2-Clause
5 */
6
7/* standard symbolic constants and types
8 *
9 * values from POSIX standard unix specification
10 *
11 * https://pubs.opengroup.org/onlinepubs/9699919799/basedefs/unistd.h.html
12 */
13
14#pragma once
15
16#include <sys/cdefs.h>
17
18__BEGIN_DECLS
19
20struct crypt_data {
21 int initialized;
22 char result[65];
23};
24
25char* crypt(char const* key, char const* salt);
26char* crypt_r(char const* key, char const* salt, struct crypt_data* data);
27
28__END_DECLS