tcp: Fix 64 bit build with debugging features enabled.
[haiku.git] / src / bin / multiuser / multiuser_utils.h
blob43db7d4f7324d33923f4a24ffbbac32891926004
1 /*
2 * Copyright 2008, Ingo Weinhold, ingo_weinhold@gmx.de. All Rights Reserved.
3 * Distributed under the terms of the MIT License.
4 */
5 #ifndef MULTIUSER_UTILS_H
6 #define MULTIUSER_UTILS_H
8 #include <pwd.h>
9 #include <shadow.h>
10 #include <stdio.h>
12 #include <SupportDefs.h>
15 status_t read_password(const char* prompt, char* password, size_t bufferSize,
16 bool useStdio);
18 bool verify_password(passwd* passwd, spwd* spwd, const char* plainPassword);
20 status_t authenticate_user(const char* prompt, passwd* passwd, spwd* spwd,
21 int maxTries, bool useStdio);
22 status_t authenticate_user(const char* prompt, const char* user,
23 passwd** _passwd, spwd** _spwd, int maxTries, bool useStdio);
26 #endif // MULTIUSER_UTILS_H