chkpw.3 (1397B)
- .\" checkpassword-ng: Uniform password checking interface for applications
- .\" Copyright © 2021 checkpassword-ng Authors <https://hacktivis.me/git/checkpassword-ng>
- .\" SPDX-License-Identifier: GPL-2.0-only OR GPL-3.0-only
- .Dd 2021-04-27
- .Dt CHKPW 3
- .Sh NAME
- .Nm chkpw
- .Nd Uniform password checking interface for applications
- .Sh SYNOPSIS
- .In chkpw.h
- .Vt extern struct chkpw_extra;
- .Ft char *
- .Fo chkpw_shadow
- .Fa "const char *username"
- .Fa "const char *password"
- .Fa "struct chkpw_extra"
- .Fc
- .Sh DESCRIPTION
- .Fn chkpw_shadow
- will verify
- .Va password
- against
- .Va username .
- Additionnal options might be passed in the future via
- .Va chkpw_extra ,
- for now it is safe to give it
- .Aq NULL .
- .Pp
- This interface is for applications which already have access to files like
- .Pa /etc/shadow ,
- for others they should consider using
- .Xr checkpassword 8
- which doesn't requires your application to be running with special privileges.
- .Sh RETURN VALUES
- .Fn chkpw_shadow
- returns
- .Aq NULL
- on success, on failure it returns an error message to be passed to the user.
- .Sh LIMITATIONS
- PAM (Pluggable Authentication Modules)
- is unsupported for now.
- .Sh BUGS
- Please send all bugs to
- .Mt contact+chkpw@hacktivis.me
- .Pp
- For security bugs you can encrypt the email with
- .Xr reop 1 ,
- my public key is found at:
- .Lk https://hacktivis.me/reop.pub
- .Sh Author
- .An Haelwenn (lanodan) Monnier Aq Mt contact+chkpw@hacktivis.me