just to be consistent with pch stuff, even though setpass stuff ideally
should be separate
#include <sys/socket.h>
#include <sys/time.h>
#include <sys/wait.h>
+#include <termios.h>
#include <unistd.h>
/* C++ standard */
// Copyright (c) 1998-2014 Solar Designer
// Copyright (c) 2005-2020 Rich Felker, et al.
// SPDX-License-Identifier: MIT
+#include "common.h"
#include "crypt_blowfish.h"
/* Modified by Rich Felker in for inclusion in musl libc, based on
* Solar Designer's second size-optimized version sent to the musl
// Copyright (c) 2022-2025 Egor
// SPDX-License-Identifier: GPL-2.0-or-later
-#include <stdio.h>
-#include <string.h>
-#include <unistd.h>
+#include "common.h"
#include "passwd.h"
#include "crypt_blowfish.h"
char *password_crypt(const char *key, const char *setting)
// Copyright (c) 2022-2023, 2025 Egor
// SPDX-License-Identifier: GPL-2.0-or-later
-#include <string.h>
-#include <termios.h>
-#include <unistd.h>
+#include "common.h"
#include "passwd.h"
char *read_password(const char *prompt)
// SPDX-License-Identifier: GPL-2.0-or-later
#include "common.h"
#include "util.h"
-#include <stdio.h>
-#include <string.h>
-#include <stdarg.h>
static void append_strn(std::vector<char> *v, const char *s, int len) {
v->insert(v->end(), s, s+len);
}