File: files.h

package info (click to toggle)
account-utils 1.0.1-1
  • links: PTS, VCS
  • area: main
  • in suites: forky, sid
  • size: 836 kB
  • sloc: ansic: 8,789; xml: 1,584; sh: 77; makefile: 10
file content (13 lines) | stat: -rw-r--r-- 379 bytes parent folder | download | duplicates (3)
1
2
3
4
5
6
7
8
9
10
11
12
13
// SPDX-License-Identifier: BSD-2-Clause

#pragma once

#include <pwd.h>
#include <shadow.h>
#include <security/pam_modules.h>

extern int update_passwd(struct passwd *newpw, const char *etcdir);
extern int update_shadow(struct spwd *newsp, const char *etcdir);

extern int create_hash(const char *password, const char *prefix,
		unsigned long count, char **hash, char **error);