merge conflicts

This commit is contained in:
christos 2017-05-06 19:50:09 +00:00
parent 5ca1223004
commit 4cb4af11b1
156 changed files with 1340 additions and 1460 deletions

View File

@ -1,7 +1,7 @@
.\" $NetBSD: pamtest.1,v 1.7 2014/10/24 18:27:12 christos Exp $
.\" $NetBSD: pamtest.1,v 1.8 2017/05/06 19:50:09 christos Exp $
.\"
.\"-
.\" Copyright (c) 2011 Dag-Erling Smørgrav
.\" Copyright (c) 2011-2017 Dag-Erling Smørgrav
.\" All rights reserved.
.\"
.\" Redistribution and use in source and binary forms, with or without
@ -28,9 +28,9 @@
.\" OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF
.\" SUCH DAMAGE.
.\"
.\" Id: pamtest.1 816 2014-09-12 07:50:22Z des
.\" $OpenPAM: pamtest.1 939 2017-04-30 21:36:50Z des $
.\"
.Dd September 12, 2014
.Dd April 30, 2017
.Dt PAMTEST 1
.Os
.Sh NAME

View File

@ -1,4 +1,4 @@
/* $NetBSD: pamtest.c,v 1.6 2014/10/24 18:27:12 christos Exp $ */
/* $NetBSD: pamtest.c,v 1.7 2017/05/06 19:50:09 christos Exp $ */
/*-
* Copyright (c) 2011 Dag-Erling Smørgrav
@ -28,7 +28,7 @@
* OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF
* SUCH DAMAGE.
*
* Id: pamtest.c 685 2013-07-11 16:33:34Z des
* $OpenPAM: pamtest.c 938 2017-04-30 21:34:42Z des $
*/
#ifdef HAVE_CONFIG_H

View File

@ -1,7 +1,7 @@
.\" $NetBSD: su.1,v 1.7 2014/10/24 18:27:12 christos Exp $
.\" $NetBSD: su.1,v 1.8 2017/05/06 19:50:09 christos Exp $
.\"
.\"-
.\" Copyright (c) 2011 Dag-Erling Smørgrav
.\" Copyright (c) 2011-2017 Dag-Erling Smørgrav
.\" All rights reserved.
.\"
.\" Redistribution and use in source and binary forms, with or without
@ -28,9 +28,9 @@
.\" OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF
.\" SUCH DAMAGE.
.\"
.\" Id: su.1 816 2014-09-12 07:50:22Z des
.\" $OpenPAM: su.1 939 2017-04-30 21:36:50Z des $
.\"
.Dd September 12, 2014
.Dd April 30, 2017
.Dt SU 1
.Os
.Sh NAME

View File

@ -1,4 +1,4 @@
/* $NetBSD: su.c,v 1.6 2014/10/24 18:27:12 christos Exp $ */
/* $NetBSD: su.c,v 1.7 2017/05/06 19:50:09 christos Exp $ */
/*-
* Copyright (c) 2002-2003 Networks Associates Technology, Inc.
@ -34,7 +34,7 @@
* OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF
* SUCH DAMAGE.
*
* Id: su.c 648 2013-03-05 17:54:27Z des
* $OpenPAM: su.c 938 2017-04-30 21:34:42Z des $
*/
#ifdef HAVE_CONFIG_H

View File

@ -1,18 +1,89 @@
.\" $NetBSD: openpam.3,v 1.9 2015/06/05 20:35:10 joerg Exp $
.\" $NetBSD: openpam.3,v 1.10 2017/05/06 19:50:09 christos Exp $
.\"
.\" Generated by gendoc.pl
.Dd September 12, 2014
.Dd April 30, 2017
.Dt OPENPAM 3
.Os
.Sh NAME
.Nm openpam
.Nm openpam_borrow_cred ,
.Nm openpam_free_data ,
.Nm openpam_free_envlist ,
.Nm openpam_get_feature ,
.Nm openpam_get_option ,
.Nm openpam_log ,
.Nm openpam_nullconv ,
.Nm openpam_readline ,
.Nm openpam_readlinev ,
.Nm openpam_readword ,
.Nm openpam_restore_cred ,
.Nm openpam_set_feature ,
.Nm openpam_set_option ,
.Nm openpam_straddch ,
.Nm openpam_subst ,
.Nm openpam_ttyconv ,
.Nm pam_error ,
.Nm pam_get_authtok ,
.Nm pam_info ,
.Nm pam_prompt ,
.Nm pam_setenv ,
.Nm pam_verror ,
.Nm pam_vinfo ,
.Nm pam_vprompt
.Nd Pluggable Authentication Modules Library
.Sh LIBRARY
.Lb libpam
.Sh SYNOPSIS
.In security/openpam.h
.Ft "int"
.Fn openpam_borrow_cred "pam_handle_t *pamh" "const struct passwd *pwd"
.Ft "void"
.Fn openpam_free_data "pam_handle_t *pamh" "void *data" "int status"
.Ft "void"
.Fn openpam_free_envlist "char **envlist"
.Ft "int"
.Fn openpam_get_feature "int feature" "int *onoff"
.Ft "const char *"
.Fn openpam_get_option "pam_handle_t *pamh" "const char *option"
.Ft "void"
.Fn openpam_log "int level" "const char *fmt" "..."
.Ft "int"
.Fn openpam_nullconv "int n" "const struct pam_message **msg" "struct pam_response **resp" "void *data"
.Ft "char *"
.Fn openpam_readline "FILE *f" "int *lineno" "size_t *lenp"
.Ft "char **"
.Fn openpam_readlinev "FILE *f" "int *lineno" "int *lenp"
.Ft "char *"
.Fn openpam_readword "FILE *f" "int *lineno" "size_t *lenp"
.Ft "int"
.Fn openpam_restore_cred "pam_handle_t *pamh"
.Ft "int"
.Fn openpam_set_feature "int feature" "int onoff"
.Ft "int"
.Fn openpam_set_option "pam_handle_t *pamh" "const char *option" "const char *value"
.Ft "int"
.Fn openpam_straddch "char **str" "size_t *size" "size_t *len" "int ch"
.Ft "int"
.Fn openpam_subst "const pam_handle_t *pamh" "char *buf" "size_t *bufsize" "const char *template"
.Ft "int"
.Fn openpam_ttyconv "int n" "const struct pam_message **msg" "struct pam_response **resp" "void *data"
.Ft "int"
.Fn pam_error "const pam_handle_t *pamh" "const char *fmt" "..."
.Ft "int"
.Fn pam_get_authtok "pam_handle_t *pamh" "int item" "const char **authtok" "const char *prompt"
.Ft "int"
.Fn pam_info "const pam_handle_t *pamh" "const char *fmt" "..."
.Ft "int"
.Fn pam_prompt "const pam_handle_t *pamh" "int style" "char **resp" "const char *fmt" "..."
.Ft "int"
.Fn pam_setenv "pam_handle_t *pamh" "const char *name" "const char *value" "int overwrite"
.Ft "int"
.Fn pam_verror "const pam_handle_t *pamh" "const char *fmt" "va_list ap"
.Ft "int"
.Fn pam_vinfo "const pam_handle_t *pamh" "const char *fmt" "va_list ap"
.Ft "int"
.Fn pam_vprompt "const pam_handle_t *pamh" "int style" "char **resp" "const char *fmt" "va_list ap"
.\"
.\" Id: openpam.man 648 2013-03-05 17:54:27Z des
.\" $OpenPAM: openpam.man 938 2017-04-30 21:34:42Z des $
.\"
.Sh DESCRIPTION
These functions are OpenPAM extensions to the PAM API.
@ -25,6 +96,30 @@ are either simple convenience functions, or functions intimately tied
to OpenPAM implementation details, and therefore not well suited to
standardization.
.Sh SEE ALSO
.Xr openpam_borrow_cred 3 ,
.Xr openpam_free_data 3 ,
.Xr openpam_free_envlist 3 ,
.Xr openpam_get_feature 3 ,
.Xr openpam_get_option 3 ,
.Xr openpam_log 3 ,
.Xr openpam_nullconv 3 ,
.Xr openpam_readline 3 ,
.Xr openpam_readlinev 3 ,
.Xr openpam_readword 3 ,
.Xr openpam_restore_cred 3 ,
.Xr openpam_set_feature 3 ,
.Xr openpam_set_option 3 ,
.Xr openpam_straddch 3 ,
.Xr openpam_subst 3 ,
.Xr openpam_ttyconv 3 ,
.Xr pam_error 3 ,
.Xr pam_get_authtok 3 ,
.Xr pam_info 3 ,
.Xr pam_prompt 3 ,
.Xr pam_setenv 3 ,
.Xr pam_verror 3 ,
.Xr pam_vinfo 3 ,
.Xr pam_vprompt 3
.Sh STANDARDS
.Rs
.%T "X/Open Single Sign-On Service (XSSO) - Pluggable Authentication Modules"

View File

@ -1,15 +1,13 @@
.\" $NetBSD: openpam_borrow_cred.3,v 1.6 2014/10/24 18:25:14 christos Exp $
.\" $NetBSD: openpam_borrow_cred.3,v 1.7 2017/05/06 19:50:09 christos Exp $
.\"
.\" Generated from openpam_borrow_cred.c by gendoc.pl
.\" Id: openpam_borrow_cred.c 649 2013-03-05 17:58:33Z des
.Dd September 12, 2014
.\" $OpenPAM: openpam_borrow_cred.c 938 2017-04-30 21:34:42Z des $
.Dd April 30, 2017
.Dt OPENPAM_BORROW_CRED 3
.Os
.Sh NAME
.Nm openpam_borrow_cred
.Nd temporarily borrow user credentials
.Sh LIBRARY
.Lb libpam
.Sh SYNOPSIS
.In sys/types.h
.In security/pam_appl.h
@ -32,6 +30,8 @@ The
.Fn openpam_borrow_cred
function returns one of the following values:
.Bl -tag -width 18n
.It Bq Er PAM_SUCCESS
Success.
.It Bq Er PAM_BUF_ERR
Memory buffer error.
.It Bq Er PAM_PERM_DENIED
@ -63,4 +63,4 @@ DARPA/SPAWAR contract N66001-01-C-8035
as part of the DARPA CHATS research program.
.Pp
The OpenPAM library is maintained by
.An Dag-Erling Sm\(/orgrav Aq des@des.no .
.An Dag-Erling Sm\(/orgrav Aq Mt des@des.no .

View File

@ -1,15 +1,13 @@
.\" $NetBSD: openpam_free_data.3,v 1.6 2014/10/24 18:25:14 christos Exp $
.\" $NetBSD: openpam_free_data.3,v 1.7 2017/05/06 19:50:09 christos Exp $
.\"
.\" Generated from openpam_free_data.c by gendoc.pl
.\" Id: openpam_free_data.c 648 2013-03-05 17:54:27Z des
.Dd September 12, 2014
.\" $OpenPAM: openpam_free_data.c 938 2017-04-30 21:34:42Z des $
.Dd April 30, 2017
.Dt OPENPAM_FREE_DATA 3
.Os
.Sh NAME
.Nm openpam_free_data
.Nd generic cleanup function
.Sh LIBRARY
.Lb libpam
.Sh SYNOPSIS
.In sys/types.h
.In security/pam_appl.h
@ -47,4 +45,4 @@ DARPA/SPAWAR contract N66001-01-C-8035
as part of the DARPA CHATS research program.
.Pp
The OpenPAM library is maintained by
.An Dag-Erling Sm\(/orgrav Aq des@des.no .
.An Dag-Erling Sm\(/orgrav Aq Mt des@des.no .

View File

@ -1,15 +1,13 @@
.\" $NetBSD: openpam_free_envlist.3,v 1.7 2014/10/24 18:25:14 christos Exp $
.\" $NetBSD: openpam_free_envlist.3,v 1.8 2017/05/06 19:50:09 christos Exp $
.\"
.\" Generated from openpam_free_envlist.c by gendoc.pl
.\" Id: openpam_free_envlist.c 648 2013-03-05 17:54:27Z des
.Dd September 12, 2014
.\" $OpenPAM: openpam_free_envlist.c 938 2017-04-30 21:34:42Z des $
.Dd April 30, 2017
.Dt OPENPAM_FREE_ENVLIST 3
.Os
.Sh NAME
.Nm openpam_free_envlist
.Nd free an environment list
.Sh LIBRARY
.Lb libpam
.Sh SYNOPSIS
.In sys/types.h
.In security/pam_appl.h

View File

@ -1,15 +1,13 @@
.\" $NetBSD: openpam_get_feature.3,v 1.5 2014/10/24 18:25:14 christos Exp $
.\" $NetBSD: openpam_get_feature.3,v 1.6 2017/05/06 19:50:09 christos Exp $
.\"
.\" Generated from openpam_get_feature.c by gendoc.pl
.\" Id: openpam_get_feature.c 648 2013-03-05 17:54:27Z des
.Dd September 12, 2014
.\" $OpenPAM: openpam_get_feature.c 938 2017-04-30 21:34:42Z des $
.Dd April 30, 2017
.Dt OPENPAM_GET_FEATURE 3
.Os
.Sh NAME
.Nm openpam_get_feature
.Nd query the state of an optional feature
.Sh LIBRARY
.Lb libpam
.Sh SYNOPSIS
.In sys/types.h
.In security/pam_appl.h
@ -54,8 +52,10 @@ The
.Fn openpam_get_feature
function returns one of the following values:
.Bl -tag -width 18n
.It Bq Er PAM_SYMBOL_ERR
Invalid symbol.
.It Bq Er PAM_SUCCESS
Success.
.It Bq Er PAM_BAD_FEATURE
Unrecognized or restricted feature.
.El
.Sh SEE ALSO
.Xr openpam_set_feature 3 ,

View File

@ -1,15 +1,13 @@
.\" $NetBSD: openpam_get_option.3,v 1.6 2014/10/24 18:25:14 christos Exp $
.\" $NetBSD: openpam_get_option.3,v 1.7 2017/05/06 19:50:09 christos Exp $
.\"
.\" Generated from openpam_get_option.c by gendoc.pl
.\" Id: openpam_get_option.c 648 2013-03-05 17:54:27Z des
.Dd September 12, 2014
.\" $OpenPAM: openpam_get_option.c 938 2017-04-30 21:34:42Z des $
.Dd April 30, 2017
.Dt OPENPAM_GET_OPTION 3
.Os
.Sh NAME
.Nm openpam_get_option
.Nd returns the value of a module option
.Sh LIBRARY
.Lb libpam
.Sh SYNOPSIS
.In sys/types.h
.In security/pam_appl.h
@ -49,4 +47,4 @@ DARPA/SPAWAR contract N66001-01-C-8035
as part of the DARPA CHATS research program.
.Pp
The OpenPAM library is maintained by
.An Dag-Erling Sm\(/orgrav Aq des@des.no .
.An Dag-Erling Sm\(/orgrav Aq Mt des@des.no .

View File

@ -1,15 +1,13 @@
.\" $NetBSD: openpam_log.3,v 1.6 2014/10/24 18:25:14 christos Exp $
.\" $NetBSD: openpam_log.3,v 1.7 2017/05/06 19:50:09 christos Exp $
.\"
.\" Generated from openpam_log.c by gendoc.pl
.\" Id: openpam_log.c 686 2013-07-11 16:36:02Z des
.Dd September 12, 2014
.\" $OpenPAM: openpam_log.c 938 2017-04-30 21:34:42Z des $
.Dd April 30, 2017
.Dt OPENPAM_LOG 3
.Os
.Sh NAME
.Nm openpam_log
.Nd log a message through syslog
.Sh LIBRARY
.Lb libpam
.Sh SYNOPSIS
.In sys/types.h
.In security/pam_appl.h
@ -92,4 +90,4 @@ DARPA/SPAWAR contract N66001-01-C-8035
as part of the DARPA CHATS research program.
.Pp
The OpenPAM library is maintained by
.An Dag-Erling Sm\(/orgrav Aq des@des.no .
.An Dag-Erling Sm\(/orgrav Aq Mt des@des.no .

View File

@ -1,15 +1,13 @@
.\" $NetBSD: openpam_nullconv.3,v 1.6 2014/10/24 18:25:14 christos Exp $
.\" $NetBSD: openpam_nullconv.3,v 1.7 2017/05/06 19:50:09 christos Exp $
.\"
.\" Generated from openpam_nullconv.c by gendoc.pl
.\" Id: openpam_nullconv.c 648 2013-03-05 17:54:27Z des
.Dd September 12, 2014
.\" $OpenPAM: openpam_nullconv.c 938 2017-04-30 21:34:42Z des $
.Dd April 30, 2017
.Dt OPENPAM_NULLCONV 3
.Os
.Sh NAME
.Nm openpam_nullconv
.Nd null conversation function
.Sh LIBRARY
.Lb libpam
.Sh SYNOPSIS
.In sys/types.h
.In security/pam_appl.h
@ -40,6 +38,8 @@ The
.Fn openpam_nullconv
function returns one of the following values:
.Bl -tag -width 18n
.It Bq Er PAM_SUCCESS
Success.
.It Bq Er PAM_CONV_ERR
Conversation failure.
.El
@ -69,4 +69,4 @@ DARPA/SPAWAR contract N66001-01-C-8035
as part of the DARPA CHATS research program.
.Pp
The OpenPAM library is maintained by
.An Dag-Erling Sm\(/orgrav Aq des@des.no .
.An Dag-Erling Sm\(/orgrav Aq Mt des@des.no .

View File

@ -1,15 +1,13 @@
.\" $NetBSD: openpam_readline.3,v 1.6 2014/10/24 18:25:14 christos Exp $
.\" $NetBSD: openpam_readline.3,v 1.7 2017/05/06 19:50:09 christos Exp $
.\"
.\" Generated from openpam_readline.c by gendoc.pl
.\" Id: openpam_readline.c 703 2013-08-16 11:57:54Z des
.Dd September 12, 2014
.\" $OpenPAM: openpam_readline.c 938 2017-04-30 21:34:42Z des $
.Dd April 30, 2017
.Dt OPENPAM_READLINE 3
.Os
.Sh NAME
.Nm openpam_readline
.Nd read a line from a file
.Sh LIBRARY
.Lb libpam
.Sh SYNOPSIS
.In sys/types.h
.In stdio.h
@ -90,4 +88,4 @@ DARPA/SPAWAR contract N66001-01-C-8035
as part of the DARPA CHATS research program.
.Pp
The OpenPAM library is maintained by
.An Dag-Erling Sm\(/orgrav Aq des@des.no .
.An Dag-Erling Sm\(/orgrav Aq Mt des@des.no .

View File

@ -1,15 +1,13 @@
.\" $NetBSD: openpam_readlinev.3,v 1.5 2014/10/24 18:25:14 christos Exp $
.\" $NetBSD: openpam_readlinev.3,v 1.6 2017/05/06 19:50:09 christos Exp $
.\"
.\" Generated from openpam_readlinev.c by gendoc.pl
.\" Id: openpam_readlinev.c 648 2013-03-05 17:54:27Z des
.Dd September 12, 2014
.\" $OpenPAM: openpam_readlinev.c 938 2017-04-30 21:34:42Z des $
.Dd April 30, 2017
.Dt OPENPAM_READLINEV 3
.Os
.Sh NAME
.Nm openpam_readlinev
.Nd read a line from a file and split it into words
.Sh LIBRARY
.Lb libpam
.Sh SYNOPSIS
.In sys/types.h
.In stdio.h

View File

@ -1,15 +1,13 @@
.\" $NetBSD: openpam_readword.3,v 1.5 2014/10/24 18:25:14 christos Exp $
.\" $NetBSD: openpam_readword.3,v 1.6 2017/05/06 19:50:09 christos Exp $
.\"
.\" Generated from openpam_readword.c by gendoc.pl
.\" Id: openpam_readword.c 648 2013-03-05 17:54:27Z des
.Dd September 12, 2014
.\" $OpenPAM: openpam_readword.c 938 2017-04-30 21:34:42Z des $
.Dd April 30, 2017
.Dt OPENPAM_READWORD 3
.Os
.Sh NAME
.Nm openpam_readword
.Nd read a word from a file, respecting shell quoting rules
.Sh LIBRARY
.Lb libpam
.Sh SYNOPSIS
.In sys/types.h
.In stdio.h

View File

@ -1,15 +1,13 @@
.\" $NetBSD: openpam_restore_cred.3,v 1.6 2014/10/24 18:25:14 christos Exp $
.\" $NetBSD: openpam_restore_cred.3,v 1.7 2017/05/06 19:50:09 christos Exp $
.\"
.\" Generated from openpam_restore_cred.c by gendoc.pl
.\" Id: openpam_restore_cred.c 648 2013-03-05 17:54:27Z des
.Dd September 12, 2014
.\" $OpenPAM: openpam_restore_cred.c 938 2017-04-30 21:34:42Z des $
.Dd April 30, 2017
.Dt OPENPAM_RESTORE_CRED 3
.Os
.Sh NAME
.Nm openpam_restore_cred
.Nd restore credentials
.Sh LIBRARY
.Lb libpam
.Sh SYNOPSIS
.In sys/types.h
.In security/pam_appl.h
@ -26,6 +24,8 @@ The
.Fn openpam_restore_cred
function returns one of the following values:
.Bl -tag -width 18n
.It Bq Er PAM_SUCCESS
Success.
.It Bq Er PAM_NO_MODULE_DATA
Module data not found.
.It Bq Er PAM_SYSTEM_ERR
@ -55,4 +55,4 @@ DARPA/SPAWAR contract N66001-01-C-8035
as part of the DARPA CHATS research program.
.Pp
The OpenPAM library is maintained by
.An Dag-Erling Sm\(/orgrav Aq des@des.no .
.An Dag-Erling Sm\(/orgrav Aq Mt des@des.no .

View File

@ -1,15 +1,13 @@
.\" $NetBSD: openpam_set_feature.3,v 1.5 2014/10/24 18:25:14 christos Exp $
.\" $NetBSD: openpam_set_feature.3,v 1.6 2017/05/06 19:50:09 christos Exp $
.\"
.\" Generated from openpam_set_feature.c by gendoc.pl
.\" Id: openpam_set_feature.c 648 2013-03-05 17:54:27Z des
.Dd September 12, 2014
.\" $OpenPAM: openpam_set_feature.c 938 2017-04-30 21:34:42Z des $
.Dd April 30, 2017
.Dt OPENPAM_SET_FEATURE 3
.Os
.Sh NAME
.Nm openpam_set_feature
.Nd enable or disable an optional feature
.Sh LIBRARY
.Lb libpam
.Sh SYNOPSIS
.In sys/types.h
.In security/pam_appl.h
@ -36,8 +34,10 @@ The
.Fn openpam_set_feature
function returns one of the following values:
.Bl -tag -width 18n
.It Bq Er PAM_SYMBOL_ERR
Invalid symbol.
.It Bq Er PAM_SUCCESS
Success.
.It Bq Er PAM_BAD_FEATURE
Unrecognized or restricted feature.
.El
.Sh SEE ALSO
.Xr openpam_get_feature 3 ,

View File

@ -1,15 +1,13 @@
.\" $NetBSD: openpam_set_option.3,v 1.6 2014/10/24 18:25:14 christos Exp $
.\" $NetBSD: openpam_set_option.3,v 1.7 2017/05/06 19:50:09 christos Exp $
.\"
.\" Generated from openpam_set_option.c by gendoc.pl
.\" Id: openpam_set_option.c 648 2013-03-05 17:54:27Z des
.Dd September 12, 2014
.\" $OpenPAM: openpam_set_option.c 938 2017-04-30 21:34:42Z des $
.Dd April 30, 2017
.Dt OPENPAM_SET_OPTION 3
.Os
.Sh NAME
.Nm openpam_set_option
.Nd sets the value of a module option
.Sh LIBRARY
.Lb libpam
.Sh SYNOPSIS
.In sys/types.h
.In security/pam_appl.h
@ -26,6 +24,8 @@ The
.Fn openpam_set_option
function returns one of the following values:
.Bl -tag -width 18n
.It Bq Er PAM_SUCCESS
Success.
.It Bq Er PAM_BUF_ERR
Memory buffer error.
.It Bq Er PAM_SYSTEM_ERR
@ -52,4 +52,4 @@ DARPA/SPAWAR contract N66001-01-C-8035
as part of the DARPA CHATS research program.
.Pp
The OpenPAM library is maintained by
.An Dag-Erling Sm\(/orgrav Aq des@des.no .
.An Dag-Erling Sm\(/orgrav Aq Mt des@des.no .

View File

@ -1,15 +1,13 @@
.\" $NetBSD: openpam_straddch.3,v 1.5 2014/10/24 18:25:14 christos Exp $
.\" $NetBSD: openpam_straddch.3,v 1.6 2017/05/06 19:50:09 christos Exp $
.\"
.\" Generated from openpam_straddch.c by gendoc.pl
.\" Id: openpam_straddch.c 648 2013-03-05 17:54:27Z des
.Dd September 12, 2014
.\" $OpenPAM: openpam_straddch.c 938 2017-04-30 21:34:42Z des $
.Dd April 30, 2017
.Dt OPENPAM_STRADDCH 3
.Os
.Sh NAME
.Nm openpam_straddch
.Nd add a character to a string, expanding the buffer if needed
.Sh LIBRARY
.Lb libpam
.Sh SYNOPSIS
.In sys/types.h
.In security/pam_appl.h

View File

@ -1,15 +1,13 @@
.\" $NetBSD: openpam_subst.3,v 1.7 2014/10/24 18:25:14 christos Exp $
.\" $NetBSD: openpam_subst.3,v 1.8 2017/05/06 19:50:09 christos Exp $
.\"
.\" Generated from openpam_subst.c by gendoc.pl
.\" Id: openpam_subst.c 648 2013-03-05 17:54:27Z des
.Dd September 12, 2014
.\" $OpenPAM: openpam_subst.c 938 2017-04-30 21:34:42Z des $
.Dd April 30, 2017
.Dt OPENPAM_SUBST 3
.Os
.Sh NAME
.Nm openpam_subst
.Nd substitute PAM item values in a string
.Sh LIBRARY
.Lb libpam
.Sh SYNOPSIS
.In sys/types.h
.In security/pam_appl.h
@ -85,8 +83,10 @@ The
.Fn openpam_subst
function returns one of the following values:
.Bl -tag -width 18n
.It Bq Er PAM_SYSTEM_ERR
System error.
.It Bq Er PAM_SUCCESS
Success.
.It Bq Er PAM_BAD_ITEM
Unrecognized or restricted item.
.It Bq Er PAM_TRY_AGAIN
Try again.
.El

View File

@ -1,15 +1,13 @@
.\" $NetBSD: openpam_ttyconv.3,v 1.6 2014/10/24 18:25:14 christos Exp $
.\" $NetBSD: openpam_ttyconv.3,v 1.7 2017/05/06 19:50:09 christos Exp $
.\"
.\" Generated from openpam_ttyconv.c by gendoc.pl
.\" Id: openpam_ttyconv.c 807 2014-09-09 09:41:32Z des
.Dd September 12, 2014
.\" $OpenPAM: openpam_ttyconv.c 938 2017-04-30 21:34:42Z des $
.Dd April 30, 2017
.Dt OPENPAM_TTYCONV 3
.Os
.Sh NAME
.Nm openpam_ttyconv
.Nd simple tty-based conversation function
.Sh LIBRARY
.Lb libpam
.Sh SYNOPSIS
.In sys/types.h
.In security/pam_appl.h
@ -36,6 +34,8 @@ The
.Fn openpam_ttyconv
function returns one of the following values:
.Bl -tag -width 18n
.It Bq Er PAM_SUCCESS
Success.
.It Bq Er PAM_BUF_ERR
Memory buffer error.
.It Bq Er PAM_CONV_ERR
@ -67,4 +67,4 @@ DARPA/SPAWAR contract N66001-01-C-8035
as part of the DARPA CHATS research program.
.Pp
The OpenPAM library is maintained by
.An Dag-Erling Sm\(/orgrav Aq des@des.no .
.An Dag-Erling Sm\(/orgrav Aq Mt des@des.no .

View File

@ -1,18 +1,68 @@
.\" $NetBSD: pam.3,v 1.9 2015/06/05 20:35:10 joerg Exp $
.\" $NetBSD: pam.3,v 1.10 2017/05/06 19:50:09 christos Exp $
.\"
.\" Generated by gendoc.pl
.Dd September 12, 2014
.Dd April 30, 2017
.Dt PAM 3
.Os
.Sh NAME
.Nm pam
.Nm pam_acct_mgmt ,
.Nm pam_authenticate ,
.Nm pam_chauthtok ,
.Nm pam_close_session ,
.Nm pam_end ,
.Nm pam_get_data ,
.Nm pam_get_item ,
.Nm pam_get_user ,
.Nm pam_getenv ,
.Nm pam_getenvlist ,
.Nm pam_open_session ,
.Nm pam_putenv ,
.Nm pam_set_data ,
.Nm pam_set_item ,
.Nm pam_setcred ,
.Nm pam_start ,
.Nm pam_strerror
.Nd Pluggable Authentication Modules Library
.Sh LIBRARY
.Lb libpam
.Sh SYNOPSIS
.In security/pam_appl.h
.Ft "int"
.Fn pam_acct_mgmt "pam_handle_t *pamh" "int flags"
.Ft "int"
.Fn pam_authenticate "pam_handle_t *pamh" "int flags"
.Ft "int"
.Fn pam_chauthtok "pam_handle_t *pamh" "int flags"
.Ft "int"
.Fn pam_close_session "pam_handle_t *pamh" "int flags"
.Ft "int"
.Fn pam_end "pam_handle_t *pamh" "int status"
.Ft "int"
.Fn pam_get_data "const pam_handle_t *pamh" "const char *module_data_name" "const void **data"
.Ft "int"
.Fn pam_get_item "const pam_handle_t *pamh" "int item_type" "const void **item"
.Ft "int"
.Fn pam_get_user "pam_handle_t *pamh" "const char **user" "const char *prompt"
.Ft "const char *"
.Fn pam_getenv "pam_handle_t *pamh" "const char *name"
.Ft "char **"
.Fn pam_getenvlist "pam_handle_t *pamh"
.Ft "int"
.Fn pam_open_session "pam_handle_t *pamh" "int flags"
.Ft "int"
.Fn pam_putenv "pam_handle_t *pamh" "const char *namevalue"
.Ft "int"
.Fn pam_set_data "pam_handle_t *pamh" "const char *module_data_name" "void *data" "void (*cleanup)(pam_handle_t *pamh, void *data, int pam_end_status)"
.Ft "int"
.Fn pam_set_item "pam_handle_t *pamh" "int item_type" "const void *item"
.Ft "int"
.Fn pam_setcred "pam_handle_t *pamh" "int flags"
.Ft "int"
.Fn pam_start "const char *service" "const char *user" "const struct pam_conv *pam_conv" "pam_handle_t **pamh"
.Ft "const char *"
.Fn pam_strerror "const pam_handle_t *pamh" "int error_number"
.\"
.\" Id: pam.man 648 2013-03-05 17:54:27Z des
.\" $OpenPAM: pam.man 938 2017-04-30 21:34:42Z des $
.\"
.Sh DESCRIPTION
The Pluggable Authentication Modules (PAM) library abstracts a number
@ -132,6 +182,14 @@ Authentication token lock busy.
Failed to recover old authentication token.
.It Bq Er PAM_AUTH_ERR
Authentication error.
.It Bq Er PAM_BAD_CONSTANT
Bad constant.
.It Bq Er PAM_BAD_FEATURE
Unrecognized or restricted feature.
.It Bq Er PAM_BAD_HANDLE
Invalid PAM handle.
.It Bq Er PAM_BAD_ITEM
Unrecognized or restricted item.
.It Bq Er PAM_BUF_ERR
Memory buffer error.
.It Bq Er PAM_CONV_ERR
@ -177,7 +235,24 @@ Unknown user.
.El
.Sh SEE ALSO
.Xr openpam 3 ,
.Xr pam_conv 3
.Xr pam_acct_mgmt 3 ,
.Xr pam_authenticate 3 ,
.Xr pam_chauthtok 3 ,
.Xr pam_close_session 3 ,
.Xr pam_conv 3 ,
.Xr pam_end 3 ,
.Xr pam_get_data 3 ,
.Xr pam_getenv 3 ,
.Xr pam_getenvlist 3 ,
.Xr pam_get_item 3 ,
.Xr pam_get_user 3 ,
.Xr pam_open_session 3 ,
.Xr pam_putenv 3 ,
.Xr pam_setcred 3 ,
.Xr pam_set_data 3 ,
.Xr pam_set_item 3 ,
.Xr pam_start 3 ,
.Xr pam_strerror 3
.Sh STANDARDS
.Rs
.%T "X/Open Single Sign-On Service (XSSO) - Pluggable Authentication Modules"

View File

@ -1,7 +1,7 @@
.\" $NetBSD: pam.conf.5,v 1.8 2014/10/24 18:25:42 christos Exp $
.\" $NetBSD: pam.conf.5,v 1.9 2017/05/06 19:50:09 christos Exp $
.\"
.\"-
.\" Copyright (c) 2005-2011 Dag-Erling Smørgrav
.\" Copyright (c) 2005-2017 Dag-Erling Smørgrav
.\" All rights reserved.
.\"
.\" Redistribution and use in source and binary forms, with or without
@ -28,9 +28,9 @@
.\" OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF
.\" SUCH DAMAGE.
.\"
.\" Id: pam.conf.5 816 2014-09-12 07:50:22Z des
.\" $OpenPAM: pam.conf.5 939 2017-04-30 21:36:50Z des $
.\"
.Dd September 12, 2014
.Dd April 30, 2017
.Dt PAM.CONF 5
.Os
.Sh NAME

View File

@ -1,15 +1,13 @@
.\" $NetBSD: pam_acct_mgmt.3,v 1.6 2014/10/24 18:25:14 christos Exp $
.\" $NetBSD: pam_acct_mgmt.3,v 1.7 2017/05/06 19:50:09 christos Exp $
.\"
.\" Generated from pam_acct_mgmt.c by gendoc.pl
.\" Id: pam_acct_mgmt.c 648 2013-03-05 17:54:27Z des
.Dd September 12, 2014
.\" $OpenPAM: pam_acct_mgmt.c 938 2017-04-30 21:34:42Z des $
.Dd April 30, 2017
.Dt PAM_ACCT_MGMT 3
.Os
.Sh NAME
.Nm pam_acct_mgmt
.Nd perform PAM account validation procedures
.Sh LIBRARY
.Lb libpam
.Sh SYNOPSIS
.In sys/types.h
.In security/pam_appl.h
@ -41,6 +39,8 @@ The
.Fn pam_acct_mgmt
function returns one of the following values:
.Bl -tag -width 18n
.It Bq Er PAM_SUCCESS
Success.
.It Bq Er PAM_ABORT
General failure.
.It Bq Er PAM_ACCT_EXPIRED
@ -83,4 +83,4 @@ DARPA/SPAWAR contract N66001-01-C-8035
as part of the DARPA CHATS research program.
.Pp
The OpenPAM library is maintained by
.An Dag-Erling Sm\(/orgrav Aq des@des.no .
.An Dag-Erling Sm\(/orgrav Aq Mt des@des.no .

View File

@ -1,15 +1,13 @@
.\" $NetBSD: pam_authenticate.3,v 1.6 2014/10/24 18:25:14 christos Exp $
.\" $NetBSD: pam_authenticate.3,v 1.7 2017/05/06 19:50:09 christos Exp $
.\"
.\" Generated from pam_authenticate.c by gendoc.pl
.\" Id: pam_authenticate.c 648 2013-03-05 17:54:27Z des
.Dd September 12, 2014
.\" $OpenPAM: pam_authenticate.c 938 2017-04-30 21:34:42Z des $
.Dd April 30, 2017
.Dt PAM_AUTHENTICATE 3
.Os
.Sh NAME
.Nm pam_authenticate
.Nd perform authentication within the PAM framework
.Sh LIBRARY
.Lb libpam
.Sh SYNOPSIS
.In sys/types.h
.In security/pam_appl.h
@ -45,18 +43,22 @@ Fail if the user's authentication token is null.
If any other bits are set,
.Fn pam_authenticate
will return
.Dv PAM_SYMBOL_ERR .
.Dv PAM_BAD_CONSTANT .
.Sh RETURN VALUES
The
.Fn pam_authenticate
function returns one of the following values:
.Bl -tag -width 18n
.It Bq Er PAM_SUCCESS
Success.
.It Bq Er PAM_ABORT
General failure.
.It Bq Er PAM_AUTHINFO_UNAVAIL
Authentication information is unavailable.
.It Bq Er PAM_AUTH_ERR
Authentication error.
.It Bq Er PAM_BAD_CONSTANT
Bad constant.
.It Bq Er PAM_BUF_ERR
Memory buffer error.
.It Bq Er PAM_CONV_ERR
@ -69,8 +71,6 @@ Maximum number of tries exceeded.
Permission denied.
.It Bq Er PAM_SERVICE_ERR
Error in service module.
.It Bq Er PAM_SYMBOL_ERR
Invalid symbol.
.It Bq Er PAM_SYSTEM_ERR
System error.
.It Bq Er PAM_USER_UNKNOWN
@ -97,4 +97,4 @@ DARPA/SPAWAR contract N66001-01-C-8035
as part of the DARPA CHATS research program.
.Pp
The OpenPAM library is maintained by
.An Dag-Erling Sm\(/orgrav Aq des@des.no .
.An Dag-Erling Sm\(/orgrav Aq Mt des@des.no .

View File

@ -1,15 +1,13 @@
.\" $NetBSD: pam_chauthtok.3,v 1.6 2014/10/24 18:25:14 christos Exp $
.\" $NetBSD: pam_chauthtok.3,v 1.7 2017/05/06 19:50:09 christos Exp $
.\"
.\" Generated from pam_chauthtok.c by gendoc.pl
.\" Id: pam_chauthtok.c 648 2013-03-05 17:54:27Z des
.Dd September 12, 2014
.\" $OpenPAM: pam_chauthtok.c 938 2017-04-30 21:34:42Z des $
.Dd April 30, 2017
.Dt PAM_CHAUTHTOK 3
.Os
.Sh NAME
.Nm pam_chauthtok
.Nd perform password related functions within the PAM framework
.Sh LIBRARY
.Lb libpam
.Sh SYNOPSIS
.In sys/types.h
.In security/pam_appl.h
@ -37,12 +35,14 @@ Change only those authentication tokens that have expired.
If any other bits are set,
.Fn pam_chauthtok
will return
.Dv PAM_SYMBOL_ERR .
.Dv PAM_BAD_CONSTANT .
.Sh RETURN VALUES
The
.Fn pam_chauthtok
function returns one of the following values:
.Bl -tag -width 18n
.It Bq Er PAM_SUCCESS
Success.
.It Bq Er PAM_ABORT
General failure.
.It Bq Er PAM_AUTHTOK_DISABLE_AGING
@ -53,6 +53,8 @@ Authentication token failure.
Authentication token lock busy.
.It Bq Er PAM_AUTHTOK_RECOVERY_ERR
Failed to recover old authentication token.
.It Bq Er PAM_BAD_CONSTANT
Bad constant.
.It Bq Er PAM_BUF_ERR
Memory buffer error.
.It Bq Er PAM_CONV_ERR
@ -61,8 +63,6 @@ Conversation failure.
Permission denied.
.It Bq Er PAM_SERVICE_ERR
Error in service module.
.It Bq Er PAM_SYMBOL_ERR
Invalid symbol.
.It Bq Er PAM_SYSTEM_ERR
System error.
.It Bq Er PAM_TRY_AGAIN
@ -89,4 +89,4 @@ DARPA/SPAWAR contract N66001-01-C-8035
as part of the DARPA CHATS research program.
.Pp
The OpenPAM library is maintained by
.An Dag-Erling Sm\(/orgrav Aq des@des.no .
.An Dag-Erling Sm\(/orgrav Aq Mt des@des.no .

View File

@ -1,15 +1,13 @@
.\" $NetBSD: pam_close_session.3,v 1.6 2014/10/24 18:25:14 christos Exp $
.\" $NetBSD: pam_close_session.3,v 1.7 2017/05/06 19:50:09 christos Exp $
.\"
.\" Generated from pam_close_session.c by gendoc.pl
.\" Id: pam_close_session.c 648 2013-03-05 17:54:27Z des
.Dd September 12, 2014
.\" $OpenPAM: pam_close_session.c 938 2017-04-30 21:34:42Z des $
.Dd April 30, 2017
.Dt PAM_CLOSE_SESSION 3
.Os
.Sh NAME
.Nm pam_close_session
.Nd close an existing user session
.Sh LIBRARY
.Lb libpam
.Sh SYNOPSIS
.In sys/types.h
.In security/pam_appl.h
@ -34,14 +32,18 @@ Do not emit any messages.
If any other bits are set,
.Fn pam_close_session
will return
.Dv PAM_SYMBOL_ERR .
.Dv PAM_BAD_CONSTANT .
.Sh RETURN VALUES
The
.Fn pam_close_session
function returns one of the following values:
.Bl -tag -width 18n
.It Bq Er PAM_SUCCESS
Success.
.It Bq Er PAM_ABORT
General failure.
.It Bq Er PAM_BAD_CONSTANT
Bad constant.
.It Bq Er PAM_BUF_ERR
Memory buffer error.
.It Bq Er PAM_CONV_ERR
@ -52,8 +54,6 @@ Permission denied.
Error in service module.
.It Bq Er PAM_SESSION_ERR
Session failure.
.It Bq Er PAM_SYMBOL_ERR
Invalid symbol.
.It Bq Er PAM_SYSTEM_ERR
System error.
.El
@ -79,4 +79,4 @@ DARPA/SPAWAR contract N66001-01-C-8035
as part of the DARPA CHATS research program.
.Pp
The OpenPAM library is maintained by
.An Dag-Erling Sm\(/orgrav Aq des@des.no .
.An Dag-Erling Sm\(/orgrav Aq Mt des@des.no .

View File

@ -1,8 +1,8 @@
.\" $NetBSD: pam_conv.3,v 1.7 2014/10/24 18:25:14 christos Exp $
.\" $NetBSD: pam_conv.3,v 1.8 2017/05/06 19:50:09 christos Exp $
.\"
.\"-
.\" Copyright (c) 2002-2003 Networks Associates Technology, Inc.
.\" Copyright (c) 2004-2011 Dag-Erling Smørgrav
.\" Copyright (c) 2004-2017 Dag-Erling Smørgrav
.\" All rights reserved.
.\"
.\" This software was developed for the FreeBSD Project by ThinkSec AS and
@ -34,9 +34,9 @@
.\" OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF
.\" SUCH DAMAGE.
.\"
.\" Id: pam_conv.3 816 2014-09-12 07:50:22Z des
.\" $OpenPAM: pam_conv.3 939 2017-04-30 21:36:50Z des $
.\"
.Dd September 12, 2014
.Dd April 30, 2017
.Dt PAM_CONV 3
.Os
.Sh NAME

View File

@ -1,15 +1,13 @@
.\" $NetBSD: pam_end.3,v 1.6 2014/10/24 18:25:14 christos Exp $
.\" $NetBSD: pam_end.3,v 1.7 2017/05/06 19:50:09 christos Exp $
.\"
.\" Generated from pam_end.c by gendoc.pl
.\" Id: pam_end.c 648 2013-03-05 17:54:27Z des
.Dd September 12, 2014
.\" $OpenPAM: pam_end.c 938 2017-04-30 21:34:42Z des $
.Dd April 30, 2017
.Dt PAM_END 3
.Os
.Sh NAME
.Nm pam_end
.Nd terminate the PAM transaction
.Sh LIBRARY
.Lb libpam
.Sh SYNOPSIS
.In sys/types.h
.In security/pam_appl.h
@ -31,8 +29,10 @@ The
.Fn pam_end
function returns one of the following values:
.Bl -tag -width 18n
.It Bq Er PAM_SYSTEM_ERR
System error.
.It Bq Er PAM_SUCCESS
Success.
.It Bq Er PAM_BAD_HANDLE
Invalid PAM handle.
.El
.Sh SEE ALSO
.Xr pam 3 ,
@ -55,4 +55,4 @@ DARPA/SPAWAR contract N66001-01-C-8035
as part of the DARPA CHATS research program.
.Pp
The OpenPAM library is maintained by
.An Dag-Erling Sm\(/orgrav Aq des@des.no .
.An Dag-Erling Sm\(/orgrav Aq Mt des@des.no .

View File

@ -1,15 +1,13 @@
.\" $NetBSD: pam_error.3,v 1.6 2014/10/24 18:25:14 christos Exp $
.\" $NetBSD: pam_error.3,v 1.7 2017/05/06 19:50:09 christos Exp $
.\"
.\" Generated from pam_error.c by gendoc.pl
.\" Id: pam_error.c 648 2013-03-05 17:54:27Z des
.Dd September 12, 2014
.\" $OpenPAM: pam_error.c 938 2017-04-30 21:34:42Z des $
.Dd April 30, 2017
.Dt PAM_ERROR 3
.Os
.Sh NAME
.Nm pam_error
.Nd display an error message
.Sh LIBRARY
.Lb libpam
.Sh SYNOPSIS
.In sys/types.h
.In security/pam_appl.h
@ -25,6 +23,8 @@ The
.Fn pam_error
function returns one of the following values:
.Bl -tag -width 18n
.It Bq Er PAM_SUCCESS
Success.
.It Bq Er PAM_BUF_ERR
Memory buffer error.
.It Bq Er PAM_CONV_ERR
@ -55,4 +55,4 @@ DARPA/SPAWAR contract N66001-01-C-8035
as part of the DARPA CHATS research program.
.Pp
The OpenPAM library is maintained by
.An Dag-Erling Sm\(/orgrav Aq des@des.no .
.An Dag-Erling Sm\(/orgrav Aq Mt des@des.no .

View File

@ -1,15 +1,13 @@
.\" $NetBSD: pam_get_authtok.3,v 1.7 2014/10/24 18:25:14 christos Exp $
.\" $NetBSD: pam_get_authtok.3,v 1.8 2017/05/06 19:50:09 christos Exp $
.\"
.\" Generated from pam_get_authtok.c by gendoc.pl
.\" Id: pam_get_authtok.c 807 2014-09-09 09:41:32Z des
.Dd September 12, 2014
.\" $OpenPAM: pam_get_authtok.c 938 2017-04-30 21:34:42Z des $
.Dd April 30, 2017
.Dt PAM_GET_AUTHTOK 3
.Os
.Sh NAME
.Nm pam_get_authtok
.Nd retrieve authentication token
.Sh LIBRARY
.Lb libpam
.Sh SYNOPSIS
.In sys/types.h
.In security/pam_appl.h
@ -125,6 +123,12 @@ The
.Fn pam_get_authtok
function returns one of the following values:
.Bl -tag -width 18n
.It Bq Er PAM_SUCCESS
Success.
.It Bq Er PAM_BAD_CONSTANT
Bad constant.
.It Bq Er PAM_BAD_ITEM
Unrecognized or restricted item.
.It Bq Er PAM_BUF_ERR
Memory buffer error.
.It Bq Er PAM_CONV_ERR
@ -159,4 +163,4 @@ DARPA/SPAWAR contract N66001-01-C-8035
as part of the DARPA CHATS research program.
.Pp
The OpenPAM library is maintained by
.An Dag-Erling Sm\(/orgrav Aq des@des.no .
.An Dag-Erling Sm\(/orgrav Aq Mt des@des.no .

View File

@ -1,15 +1,13 @@
.\" $NetBSD: pam_get_data.3,v 1.6 2014/10/24 18:25:14 christos Exp $
.\" $NetBSD: pam_get_data.3,v 1.7 2017/05/06 19:50:09 christos Exp $
.\"
.\" Generated from pam_get_data.c by gendoc.pl
.\" Id: pam_get_data.c 648 2013-03-05 17:54:27Z des
.Dd September 12, 2014
.\" $OpenPAM: pam_get_data.c 938 2017-04-30 21:34:42Z des $
.Dd April 30, 2017
.Dt PAM_GET_DATA 3
.Os
.Sh NAME
.Nm pam_get_data
.Nd get module information
.Sh LIBRARY
.Lb libpam
.Sh SYNOPSIS
.In sys/types.h
.In security/pam_appl.h
@ -43,10 +41,10 @@ The
.Fn pam_get_data
function returns one of the following values:
.Bl -tag -width 18n
.It Bq Er PAM_SUCCESS
Success.
.It Bq Er PAM_NO_MODULE_DATA
Module data not found.
.It Bq Er PAM_SYSTEM_ERR
System error.
.El
.Sh SEE ALSO
.Xr pam 3 ,
@ -70,4 +68,4 @@ DARPA/SPAWAR contract N66001-01-C-8035
as part of the DARPA CHATS research program.
.Pp
The OpenPAM library is maintained by
.An Dag-Erling Sm\(/orgrav Aq des@des.no .
.An Dag-Erling Sm\(/orgrav Aq Mt des@des.no .

View File

@ -1,15 +1,13 @@
.\" $NetBSD: pam_get_item.3,v 1.6 2014/10/24 18:25:14 christos Exp $
.\" $NetBSD: pam_get_item.3,v 1.7 2017/05/06 19:50:09 christos Exp $
.\"
.\" Generated from pam_get_item.c by gendoc.pl
.\" Id: pam_get_item.c 648 2013-03-05 17:54:27Z des
.Dd September 12, 2014
.\" $OpenPAM: pam_get_item.c 938 2017-04-30 21:34:42Z des $
.Dd April 30, 2017
.Dt PAM_GET_ITEM 3
.Os
.Sh NAME
.Nm pam_get_item
.Nd get PAM information
.Sh LIBRARY
.Lb libpam
.Sh SYNOPSIS
.In sys/types.h
.In security/pam_appl.h
@ -85,10 +83,10 @@ The
.Fn pam_get_item
function returns one of the following values:
.Bl -tag -width 18n
.It Bq Er PAM_SYMBOL_ERR
Invalid symbol.
.It Bq Er PAM_SYSTEM_ERR
System error.
.It Bq Er PAM_SUCCESS
Success.
.It Bq Er PAM_BAD_ITEM
Unrecognized or restricted item.
.El
.Sh SEE ALSO
.Xr pam 3 ,
@ -113,4 +111,4 @@ DARPA/SPAWAR contract N66001-01-C-8035
as part of the DARPA CHATS research program.
.Pp
The OpenPAM library is maintained by
.An Dag-Erling Sm\(/orgrav Aq des@des.no .
.An Dag-Erling Sm\(/orgrav Aq Mt des@des.no .

View File

@ -1,15 +1,13 @@
.\" $NetBSD: pam_get_user.3,v 1.7 2014/10/24 18:25:14 christos Exp $
.\" $NetBSD: pam_get_user.3,v 1.8 2017/05/06 19:50:09 christos Exp $
.\"
.\" Generated from pam_get_user.c by gendoc.pl
.\" Id: pam_get_user.c 670 2013-03-17 19:26:07Z des
.Dd September 12, 2014
.\" $OpenPAM: pam_get_user.c 938 2017-04-30 21:34:42Z des $
.Dd April 30, 2017
.Dt PAM_GET_USER 3
.Os
.Sh NAME
.Nm pam_get_user
.Nd retrieve user name
.Sh LIBRARY
.Lb libpam
.Sh SYNOPSIS
.In sys/types.h
.In security/pam_appl.h
@ -70,6 +68,10 @@ The
.Fn pam_get_user
function returns one of the following values:
.Bl -tag -width 18n
.It Bq Er PAM_SUCCESS
Success.
.It Bq Er PAM_BAD_ITEM
Unrecognized or restricted item.
.It Bq Er PAM_BUF_ERR
Memory buffer error.
.It Bq Er PAM_CONV_ERR
@ -105,4 +107,4 @@ DARPA/SPAWAR contract N66001-01-C-8035
as part of the DARPA CHATS research program.
.Pp
The OpenPAM library is maintained by
.An Dag-Erling Sm\(/orgrav Aq des@des.no .
.An Dag-Erling Sm\(/orgrav Aq Mt des@des.no .

View File

@ -1,15 +1,13 @@
.\" $NetBSD: pam_getenv.3,v 1.6 2014/10/24 18:25:14 christos Exp $
.\" $NetBSD: pam_getenv.3,v 1.7 2017/05/06 19:50:09 christos Exp $
.\"
.\" Generated from pam_getenv.c by gendoc.pl
.\" Id: pam_getenv.c 648 2013-03-05 17:54:27Z des
.Dd September 12, 2014
.\" $OpenPAM: pam_getenv.c 938 2017-04-30 21:34:42Z des $
.Dd April 30, 2017
.Dt PAM_GETENV 3
.Os
.Sh NAME
.Nm pam_getenv
.Nd retrieve the value of a PAM environment variable
.Sh LIBRARY
.Lb libpam
.Sh SYNOPSIS
.In sys/types.h
.In security/pam_appl.h
@ -53,4 +51,4 @@ DARPA/SPAWAR contract N66001-01-C-8035
as part of the DARPA CHATS research program.
.Pp
The OpenPAM library is maintained by
.An Dag-Erling Sm\(/orgrav Aq des@des.no .
.An Dag-Erling Sm\(/orgrav Aq Mt des@des.no .

View File

@ -1,15 +1,13 @@
.\" $NetBSD: pam_getenvlist.3,v 1.6 2014/10/24 18:25:14 christos Exp $
.\" $NetBSD: pam_getenvlist.3,v 1.7 2017/05/06 19:50:09 christos Exp $
.\"
.\" Generated from pam_getenvlist.c by gendoc.pl
.\" Id: pam_getenvlist.c 648 2013-03-05 17:54:27Z des
.Dd September 12, 2014
.\" $OpenPAM: pam_getenvlist.c 938 2017-04-30 21:34:42Z des $
.Dd April 30, 2017
.Dt PAM_GETENVLIST 3
.Os
.Sh NAME
.Nm pam_getenvlist
.Nd returns a list of all the PAM environment variables
.Sh LIBRARY
.Lb libpam
.Sh SYNOPSIS
.In sys/types.h
.In security/pam_appl.h
@ -75,4 +73,4 @@ DARPA/SPAWAR contract N66001-01-C-8035
as part of the DARPA CHATS research program.
.Pp
The OpenPAM library is maintained by
.An Dag-Erling Sm\(/orgrav Aq des@des.no .
.An Dag-Erling Sm\(/orgrav Aq Mt des@des.no .

View File

@ -1,15 +1,13 @@
.\" $NetBSD: pam_info.3,v 1.6 2014/10/24 18:25:14 christos Exp $
.\" $NetBSD: pam_info.3,v 1.7 2017/05/06 19:50:09 christos Exp $
.\"
.\" Generated from pam_info.c by gendoc.pl
.\" Id: pam_info.c 648 2013-03-05 17:54:27Z des
.Dd September 12, 2014
.\" $OpenPAM: pam_info.c 938 2017-04-30 21:34:42Z des $
.Dd April 30, 2017
.Dt PAM_INFO 3
.Os
.Sh NAME
.Nm pam_info
.Nd display an information message
.Sh LIBRARY
.Lb libpam
.Sh SYNOPSIS
.In sys/types.h
.In security/pam_appl.h
@ -25,6 +23,8 @@ The
.Fn pam_info
function returns one of the following values:
.Bl -tag -width 18n
.It Bq Er PAM_SUCCESS
Success.
.It Bq Er PAM_BUF_ERR
Memory buffer error.
.It Bq Er PAM_CONV_ERR
@ -55,4 +55,4 @@ DARPA/SPAWAR contract N66001-01-C-8035
as part of the DARPA CHATS research program.
.Pp
The OpenPAM library is maintained by
.An Dag-Erling Sm\(/orgrav Aq des@des.no .
.An Dag-Erling Sm\(/orgrav Aq Mt des@des.no .

View File

@ -1,15 +1,13 @@
.\" $NetBSD: pam_open_session.3,v 1.6 2014/10/24 18:25:14 christos Exp $
.\" $NetBSD: pam_open_session.3,v 1.7 2017/05/06 19:50:09 christos Exp $
.\"
.\" Generated from pam_open_session.c by gendoc.pl
.\" Id: pam_open_session.c 648 2013-03-05 17:54:27Z des
.Dd September 12, 2014
.\" $OpenPAM: pam_open_session.c 938 2017-04-30 21:34:42Z des $
.Dd April 30, 2017
.Dt PAM_OPEN_SESSION 3
.Os
.Sh NAME
.Nm pam_open_session
.Nd open a user session
.Sh LIBRARY
.Lb libpam
.Sh SYNOPSIS
.In sys/types.h
.In security/pam_appl.h
@ -35,14 +33,18 @@ Do not emit any messages.
If any other bits are set,
.Fn pam_open_session
will return
.Dv PAM_SYMBOL_ERR .
.Dv PAM_BAD_CONSTANT .
.Sh RETURN VALUES
The
.Fn pam_open_session
function returns one of the following values:
.Bl -tag -width 18n
.It Bq Er PAM_SUCCESS
Success.
.It Bq Er PAM_ABORT
General failure.
.It Bq Er PAM_BAD_CONSTANT
Bad constant.
.It Bq Er PAM_BUF_ERR
Memory buffer error.
.It Bq Er PAM_CONV_ERR
@ -53,8 +55,6 @@ Permission denied.
Error in service module.
.It Bq Er PAM_SESSION_ERR
Session failure.
.It Bq Er PAM_SYMBOL_ERR
Invalid symbol.
.It Bq Er PAM_SYSTEM_ERR
System error.
.El
@ -80,4 +80,4 @@ DARPA/SPAWAR contract N66001-01-C-8035
as part of the DARPA CHATS research program.
.Pp
The OpenPAM library is maintained by
.An Dag-Erling Sm\(/orgrav Aq des@des.no .
.An Dag-Erling Sm\(/orgrav Aq Mt des@des.no .

View File

@ -1,15 +1,13 @@
.\" $NetBSD: pam_prompt.3,v 1.6 2014/10/24 18:25:14 christos Exp $
.\" $NetBSD: pam_prompt.3,v 1.7 2017/05/06 19:50:09 christos Exp $
.\"
.\" Generated from pam_prompt.c by gendoc.pl
.\" Id: pam_prompt.c 648 2013-03-05 17:54:27Z des
.Dd September 12, 2014
.\" $OpenPAM: pam_prompt.c 938 2017-04-30 21:34:42Z des $
.Dd April 30, 2017
.Dt PAM_PROMPT 3
.Os
.Sh NAME
.Nm pam_prompt
.Nd call the conversation function
.Sh LIBRARY
.Lb libpam
.Sh SYNOPSIS
.In sys/types.h
.In security/pam_appl.h
@ -37,6 +35,8 @@ The
.Fn pam_prompt
function returns one of the following values:
.Bl -tag -width 18n
.It Bq Er PAM_SUCCESS
Success.
.It Bq Er PAM_BUF_ERR
Memory buffer error.
.It Bq Er PAM_CONV_ERR
@ -67,4 +67,4 @@ DARPA/SPAWAR contract N66001-01-C-8035
as part of the DARPA CHATS research program.
.Pp
The OpenPAM library is maintained by
.An Dag-Erling Sm\(/orgrav Aq des@des.no .
.An Dag-Erling Sm\(/orgrav Aq Mt des@des.no .

View File

@ -1,15 +1,13 @@
.\" $NetBSD: pam_putenv.3,v 1.6 2014/10/24 18:25:14 christos Exp $
.\" $NetBSD: pam_putenv.3,v 1.7 2017/05/06 19:50:09 christos Exp $
.\"
.\" Generated from pam_putenv.c by gendoc.pl
.\" Id: pam_putenv.c 648 2013-03-05 17:54:27Z des
.Dd September 12, 2014
.\" $OpenPAM: pam_putenv.c 938 2017-04-30 21:34:42Z des $
.Dd April 30, 2017
.Dt PAM_PUTENV 3
.Os
.Sh NAME
.Nm pam_putenv
.Nd set the value of an environment variable
.Sh LIBRARY
.Lb libpam
.Sh SYNOPSIS
.In sys/types.h
.In security/pam_appl.h
@ -28,6 +26,8 @@ The
.Fn pam_putenv
function returns one of the following values:
.Bl -tag -width 18n
.It Bq Er PAM_SUCCESS
Success.
.It Bq Er PAM_BUF_ERR
Memory buffer error.
.It Bq Er PAM_SYSTEM_ERR
@ -58,4 +58,4 @@ DARPA/SPAWAR contract N66001-01-C-8035
as part of the DARPA CHATS research program.
.Pp
The OpenPAM library is maintained by
.An Dag-Erling Sm\(/orgrav Aq des@des.no .
.An Dag-Erling Sm\(/orgrav Aq Mt des@des.no .

View File

@ -1,15 +1,13 @@
.\" $NetBSD: pam_set_data.3,v 1.6 2014/10/24 18:25:14 christos Exp $
.\" $NetBSD: pam_set_data.3,v 1.7 2017/05/06 19:50:09 christos Exp $
.\"
.\" Generated from pam_set_data.c by gendoc.pl
.\" Id: pam_set_data.c 648 2013-03-05 17:54:27Z des
.Dd September 12, 2014
.\" $OpenPAM: pam_set_data.c 938 2017-04-30 21:34:42Z des $
.Dd April 30, 2017
.Dt PAM_SET_DATA 3
.Os
.Sh NAME
.Nm pam_set_data
.Nd set module information
.Sh LIBRARY
.Lb libpam
.Sh SYNOPSIS
.In sys/types.h
.In security/pam_appl.h
@ -42,6 +40,8 @@ The
.Fn pam_set_data
function returns one of the following values:
.Bl -tag -width 18n
.It Bq Er PAM_SUCCESS
Success.
.It Bq Er PAM_BUF_ERR
Memory buffer error.
.It Bq Er PAM_SYSTEM_ERR
@ -70,4 +70,4 @@ DARPA/SPAWAR contract N66001-01-C-8035
as part of the DARPA CHATS research program.
.Pp
The OpenPAM library is maintained by
.An Dag-Erling Sm\(/orgrav Aq des@des.no .
.An Dag-Erling Sm\(/orgrav Aq Mt des@des.no .

View File

@ -1,15 +1,13 @@
.\" $NetBSD: pam_set_item.3,v 1.6 2014/10/24 18:25:14 christos Exp $
.\" $NetBSD: pam_set_item.3,v 1.7 2017/05/06 19:50:09 christos Exp $
.\"
.\" Generated from pam_set_item.c by gendoc.pl
.\" Id: pam_set_item.c 648 2013-03-05 17:54:27Z des
.Dd September 12, 2014
.\" $OpenPAM: pam_set_item.c 938 2017-04-30 21:34:42Z des $
.Dd April 30, 2017
.Dt PAM_SET_ITEM 3
.Os
.Sh NAME
.Nm pam_set_item
.Nd set authentication information
.Sh LIBRARY
.Lb libpam
.Sh SYNOPSIS
.In sys/types.h
.In security/pam_appl.h
@ -34,12 +32,12 @@ The
.Fn pam_set_item
function returns one of the following values:
.Bl -tag -width 18n
.It Bq Er PAM_SUCCESS
Success.
.It Bq Er PAM_BAD_ITEM
Unrecognized or restricted item.
.It Bq Er PAM_BUF_ERR
Memory buffer error.
.It Bq Er PAM_SYMBOL_ERR
Invalid symbol.
.It Bq Er PAM_SYSTEM_ERR
System error.
.El
.Sh SEE ALSO
.Xr pam 3 ,
@ -63,4 +61,4 @@ DARPA/SPAWAR contract N66001-01-C-8035
as part of the DARPA CHATS research program.
.Pp
The OpenPAM library is maintained by
.An Dag-Erling Sm\(/orgrav Aq des@des.no .
.An Dag-Erling Sm\(/orgrav Aq Mt des@des.no .

View File

@ -1,15 +1,13 @@
.\" $NetBSD: pam_setcred.3,v 1.6 2014/10/24 18:25:14 christos Exp $
.\" $NetBSD: pam_setcred.3,v 1.7 2017/05/06 19:50:09 christos Exp $
.\"
.\" Generated from pam_setcred.c by gendoc.pl
.\" Id: pam_setcred.c 648 2013-03-05 17:54:27Z des
.Dd September 12, 2014
.\" $OpenPAM: pam_setcred.c 938 2017-04-30 21:34:42Z des $
.Dd April 30, 2017
.Dt PAM_SETCRED 3
.Os
.Sh NAME
.Nm pam_setcred
.Nd modify / delete user credentials for an authentication service
.Sh LIBRARY
.Lb libpam
.Sh SYNOPSIS
.In sys/types.h
.In security/pam_appl.h
@ -42,14 +40,18 @@ The latter four are mutually exclusive.
If any other bits are set,
.Fn pam_setcred
will return
.Dv PAM_SYMBOL_ERR .
.Dv PAM_BAD_CONSTANT .
.Sh RETURN VALUES
The
.Fn pam_setcred
function returns one of the following values:
.Bl -tag -width 18n
.It Bq Er PAM_SUCCESS
Success.
.It Bq Er PAM_ABORT
General failure.
.It Bq Er PAM_BAD_CONSTANT
Bad constant.
.It Bq Er PAM_BUF_ERR
Memory buffer error.
.It Bq Er PAM_CONV_ERR
@ -64,8 +66,6 @@ Failed to retrieve user credentials.
Permission denied.
.It Bq Er PAM_SERVICE_ERR
Error in service module.
.It Bq Er PAM_SYMBOL_ERR
Invalid symbol.
.It Bq Er PAM_SYSTEM_ERR
System error.
.It Bq Er PAM_USER_UNKNOWN
@ -92,4 +92,4 @@ DARPA/SPAWAR contract N66001-01-C-8035
as part of the DARPA CHATS research program.
.Pp
The OpenPAM library is maintained by
.An Dag-Erling Sm\(/orgrav Aq des@des.no .
.An Dag-Erling Sm\(/orgrav Aq Mt des@des.no .

View File

@ -1,15 +1,13 @@
.\" $NetBSD: pam_setenv.3,v 1.6 2014/10/24 18:25:14 christos Exp $
.\" $NetBSD: pam_setenv.3,v 1.7 2017/05/06 19:50:09 christos Exp $
.\"
.\" Generated from pam_setenv.c by gendoc.pl
.\" Id: pam_setenv.c 648 2013-03-05 17:54:27Z des
.Dd September 12, 2014
.\" $OpenPAM: pam_setenv.c 938 2017-04-30 21:34:42Z des $
.Dd April 30, 2017
.Dt PAM_SETENV 3
.Os
.Sh NAME
.Nm pam_setenv
.Nd mirrors setenv(3)
.Sh LIBRARY
.Lb libpam
.Sh SYNOPSIS
.In sys/types.h
.In security/pam_appl.h
@ -28,6 +26,8 @@ The
.Fn pam_setenv
function returns one of the following values:
.Bl -tag -width 18n
.It Bq Er PAM_SUCCESS
Success.
.It Bq Er PAM_BUF_ERR
Memory buffer error.
.It Bq Er PAM_SYSTEM_ERR
@ -57,4 +57,4 @@ DARPA/SPAWAR contract N66001-01-C-8035
as part of the DARPA CHATS research program.
.Pp
The OpenPAM library is maintained by
.An Dag-Erling Sm\(/orgrav Aq des@des.no .
.An Dag-Erling Sm\(/orgrav Aq Mt des@des.no .

View File

@ -1,15 +1,13 @@
.\" $NetBSD: pam_sm_acct_mgmt.3,v 1.6 2014/10/24 18:25:14 christos Exp $
.\" $NetBSD: pam_sm_acct_mgmt.3,v 1.7 2017/05/06 19:50:09 christos Exp $
.\"
.\" Generated from pam_sm_acct_mgmt.c by gendoc.pl
.\" Id: pam_sm_acct_mgmt.c 648 2013-03-05 17:54:27Z des
.Dd September 12, 2014
.\" $OpenPAM: pam_sm_acct_mgmt.c 938 2017-04-30 21:34:42Z des $
.Dd April 30, 2017
.Dt PAM_SM_ACCT_MGMT 3
.Os
.Sh NAME
.Nm pam_sm_acct_mgmt
.Nd service module implementation for pam_acct_mgmt
.Sh LIBRARY
.Lb libpam
.Sh SYNOPSIS
.In sys/types.h
.In security/pam_appl.h
@ -28,6 +26,8 @@ The
.Fn pam_sm_acct_mgmt
function returns one of the following values:
.Bl -tag -width 18n
.It Bq Er PAM_SUCCESS
Success.
.It Bq Er PAM_ABORT
General failure.
.It Bq Er PAM_ACCT_EXPIRED
@ -73,4 +73,4 @@ DARPA/SPAWAR contract N66001-01-C-8035
as part of the DARPA CHATS research program.
.Pp
The OpenPAM library is maintained by
.An Dag-Erling Sm\(/orgrav Aq des@des.no .
.An Dag-Erling Sm\(/orgrav Aq Mt des@des.no .

View File

@ -1,15 +1,13 @@
.\" $NetBSD: pam_sm_authenticate.3,v 1.6 2014/10/24 18:25:14 christos Exp $
.\" $NetBSD: pam_sm_authenticate.3,v 1.7 2017/05/06 19:50:09 christos Exp $
.\"
.\" Generated from pam_sm_authenticate.c by gendoc.pl
.\" Id: pam_sm_authenticate.c 648 2013-03-05 17:54:27Z des
.Dd September 12, 2014
.\" $OpenPAM: pam_sm_authenticate.c 938 2017-04-30 21:34:42Z des $
.Dd April 30, 2017
.Dt PAM_SM_AUTHENTICATE 3
.Os
.Sh NAME
.Nm pam_sm_authenticate
.Nd service module implementation for pam_authenticate
.Sh LIBRARY
.Lb libpam
.Sh SYNOPSIS
.In sys/types.h
.In security/pam_appl.h
@ -28,6 +26,8 @@ The
.Fn pam_sm_authenticate
function returns one of the following values:
.Bl -tag -width 18n
.It Bq Er PAM_SUCCESS
Success.
.It Bq Er PAM_ABORT
General failure.
.It Bq Er PAM_AUTHINFO_UNAVAIL
@ -75,4 +75,4 @@ DARPA/SPAWAR contract N66001-01-C-8035
as part of the DARPA CHATS research program.
.Pp
The OpenPAM library is maintained by
.An Dag-Erling Sm\(/orgrav Aq des@des.no .
.An Dag-Erling Sm\(/orgrav Aq Mt des@des.no .

View File

@ -1,15 +1,13 @@
.\" $NetBSD: pam_sm_chauthtok.3,v 1.6 2014/10/24 18:25:14 christos Exp $
.\" $NetBSD: pam_sm_chauthtok.3,v 1.7 2017/05/06 19:50:09 christos Exp $
.\"
.\" Generated from pam_sm_chauthtok.c by gendoc.pl
.\" Id: pam_sm_chauthtok.c 648 2013-03-05 17:54:27Z des
.Dd September 12, 2014
.\" $OpenPAM: pam_sm_chauthtok.c 938 2017-04-30 21:34:42Z des $
.Dd April 30, 2017
.Dt PAM_SM_CHAUTHTOK 3
.Os
.Sh NAME
.Nm pam_sm_chauthtok
.Nd service module implementation for pam_chauthtok
.Sh LIBRARY
.Lb libpam
.Sh SYNOPSIS
.In sys/types.h
.In security/pam_appl.h
@ -38,6 +36,8 @@ The
.Fn pam_sm_chauthtok
function returns one of the following values:
.Bl -tag -width 18n
.It Bq Er PAM_SUCCESS
Success.
.It Bq Er PAM_ABORT
General failure.
.It Bq Er PAM_AUTHTOK_DISABLE_AGING
@ -85,4 +85,4 @@ DARPA/SPAWAR contract N66001-01-C-8035
as part of the DARPA CHATS research program.
.Pp
The OpenPAM library is maintained by
.An Dag-Erling Sm\(/orgrav Aq des@des.no .
.An Dag-Erling Sm\(/orgrav Aq Mt des@des.no .

View File

@ -1,15 +1,13 @@
.\" $NetBSD: pam_sm_close_session.3,v 1.6 2014/10/24 18:25:14 christos Exp $
.\" $NetBSD: pam_sm_close_session.3,v 1.7 2017/05/06 19:50:09 christos Exp $
.\"
.\" Generated from pam_sm_close_session.c by gendoc.pl
.\" Id: pam_sm_close_session.c 648 2013-03-05 17:54:27Z des
.Dd September 12, 2014
.\" $OpenPAM: pam_sm_close_session.c 938 2017-04-30 21:34:42Z des $
.Dd April 30, 2017
.Dt PAM_SM_CLOSE_SESSION 3
.Os
.Sh NAME
.Nm pam_sm_close_session
.Nd service module implementation for pam_close_session
.Sh LIBRARY
.Lb libpam
.Sh SYNOPSIS
.In sys/types.h
.In security/pam_appl.h
@ -28,6 +26,8 @@ The
.Fn pam_sm_close_session
function returns one of the following values:
.Bl -tag -width 18n
.It Bq Er PAM_SUCCESS
Success.
.It Bq Er PAM_ABORT
General failure.
.It Bq Er PAM_BUF_ERR
@ -67,4 +67,4 @@ DARPA/SPAWAR contract N66001-01-C-8035
as part of the DARPA CHATS research program.
.Pp
The OpenPAM library is maintained by
.An Dag-Erling Sm\(/orgrav Aq des@des.no .
.An Dag-Erling Sm\(/orgrav Aq Mt des@des.no .

View File

@ -1,15 +1,13 @@
.\" $NetBSD: pam_sm_open_session.3,v 1.6 2014/10/24 18:25:14 christos Exp $
.\" $NetBSD: pam_sm_open_session.3,v 1.7 2017/05/06 19:50:09 christos Exp $
.\"
.\" Generated from pam_sm_open_session.c by gendoc.pl
.\" Id: pam_sm_open_session.c 648 2013-03-05 17:54:27Z des
.Dd September 12, 2014
.\" $OpenPAM: pam_sm_open_session.c 938 2017-04-30 21:34:42Z des $
.Dd April 30, 2017
.Dt PAM_SM_OPEN_SESSION 3
.Os
.Sh NAME
.Nm pam_sm_open_session
.Nd service module implementation for pam_open_session
.Sh LIBRARY
.Lb libpam
.Sh SYNOPSIS
.In sys/types.h
.In security/pam_appl.h
@ -28,6 +26,8 @@ The
.Fn pam_sm_open_session
function returns one of the following values:
.Bl -tag -width 18n
.It Bq Er PAM_SUCCESS
Success.
.It Bq Er PAM_ABORT
General failure.
.It Bq Er PAM_BUF_ERR
@ -67,4 +67,4 @@ DARPA/SPAWAR contract N66001-01-C-8035
as part of the DARPA CHATS research program.
.Pp
The OpenPAM library is maintained by
.An Dag-Erling Sm\(/orgrav Aq des@des.no .
.An Dag-Erling Sm\(/orgrav Aq Mt des@des.no .

View File

@ -1,15 +1,13 @@
.\" $NetBSD: pam_sm_setcred.3,v 1.6 2014/10/24 18:25:14 christos Exp $
.\" $NetBSD: pam_sm_setcred.3,v 1.7 2017/05/06 19:50:09 christos Exp $
.\"
.\" Generated from pam_sm_setcred.c by gendoc.pl
.\" Id: pam_sm_setcred.c 648 2013-03-05 17:54:27Z des
.Dd September 12, 2014
.\" $OpenPAM: pam_sm_setcred.c 938 2017-04-30 21:34:42Z des $
.Dd April 30, 2017
.Dt PAM_SM_SETCRED 3
.Os
.Sh NAME
.Nm pam_sm_setcred
.Nd service module implementation for pam_setcred
.Sh LIBRARY
.Lb libpam
.Sh SYNOPSIS
.In sys/types.h
.In security/pam_appl.h
@ -28,6 +26,8 @@ The
.Fn pam_sm_setcred
function returns one of the following values:
.Bl -tag -width 18n
.It Bq Er PAM_SUCCESS
Success.
.It Bq Er PAM_ABORT
General failure.
.It Bq Er PAM_BUF_ERR
@ -73,4 +73,4 @@ DARPA/SPAWAR contract N66001-01-C-8035
as part of the DARPA CHATS research program.
.Pp
The OpenPAM library is maintained by
.An Dag-Erling Sm\(/orgrav Aq des@des.no .
.An Dag-Erling Sm\(/orgrav Aq Mt des@des.no .

View File

@ -1,15 +1,13 @@
.\" $NetBSD: pam_start.3,v 1.6 2014/10/24 18:25:14 christos Exp $
.\" $NetBSD: pam_start.3,v 1.7 2017/05/06 19:50:09 christos Exp $
.\"
.\" Generated from pam_start.c by gendoc.pl
.\" Id: pam_start.c 648 2013-03-05 17:54:27Z des
.Dd September 12, 2014
.\" $OpenPAM: pam_start.c 938 2017-04-30 21:34:42Z des $
.Dd April 30, 2017
.Dt PAM_START 3
.Os
.Sh NAME
.Nm pam_start
.Nd initiate a PAM transaction
.Sh LIBRARY
.Lb libpam
.Sh SYNOPSIS
.In sys/types.h
.In security/pam_appl.h
@ -48,6 +46,10 @@ The
.Fn pam_start
function returns one of the following values:
.Bl -tag -width 18n
.It Bq Er PAM_SUCCESS
Success.
.It Bq Er PAM_BAD_ITEM
Unrecognized or restricted item.
.It Bq Er PAM_BUF_ERR
Memory buffer error.
.It Bq Er PAM_SYSTEM_ERR
@ -77,4 +79,4 @@ DARPA/SPAWAR contract N66001-01-C-8035
as part of the DARPA CHATS research program.
.Pp
The OpenPAM library is maintained by
.An Dag-Erling Sm\(/orgrav Aq des@des.no .
.An Dag-Erling Sm\(/orgrav Aq Mt des@des.no .

View File

@ -1,15 +1,13 @@
.\" $NetBSD: pam_strerror.3,v 1.7 2015/06/05 20:41:46 joerg Exp $
.\" $NetBSD: pam_strerror.3,v 1.8 2017/05/06 19:50:09 christos Exp $
.\"
.\" Generated from pam_strerror.c by gendoc.pl
.\" Id: pam_strerror.c 648 2013-03-05 17:54:27Z des
.Dd September 12, 2014
.\" $OpenPAM: pam_strerror.c 938 2017-04-30 21:34:42Z des $
.Dd April 30, 2017
.Dt PAM_STRERROR 3
.Os
.Sh NAME
.Nm pam_strerror
.Nd get PAM standard error message string
.Sh LIBRARY
.Lb libpam
.Sh SYNOPSIS
.In sys/types.h
.In security/pam_appl.h
@ -58,4 +56,4 @@ DARPA/SPAWAR contract N66001-01-C-8035
as part of the DARPA CHATS research program.
.Pp
The OpenPAM library is maintained by
.An Dag-Erling Sm\(/orgrav Aq des@des.no .
.An Dag-Erling Sm\(/orgrav Aq Mt des@des.no .

View File

@ -1,15 +1,13 @@
.\" $NetBSD: pam_verror.3,v 1.6 2014/10/24 18:25:14 christos Exp $
.\" $NetBSD: pam_verror.3,v 1.7 2017/05/06 19:50:09 christos Exp $
.\"
.\" Generated from pam_verror.c by gendoc.pl
.\" Id: pam_verror.c 648 2013-03-05 17:54:27Z des
.Dd September 12, 2014
.\" $OpenPAM: pam_verror.c 938 2017-04-30 21:34:42Z des $
.Dd April 30, 2017
.Dt PAM_VERROR 3
.Os
.Sh NAME
.Nm pam_verror
.Nd display an error message
.Sh LIBRARY
.Lb libpam
.Sh SYNOPSIS
.In sys/types.h
.In security/pam_appl.h
@ -29,6 +27,8 @@ The
.Fn pam_verror
function returns one of the following values:
.Bl -tag -width 18n
.It Bq Er PAM_SUCCESS
Success.
.It Bq Er PAM_BUF_ERR
Memory buffer error.
.It Bq Er PAM_CONV_ERR
@ -59,4 +59,4 @@ DARPA/SPAWAR contract N66001-01-C-8035
as part of the DARPA CHATS research program.
.Pp
The OpenPAM library is maintained by
.An Dag-Erling Sm\(/orgrav Aq des@des.no .
.An Dag-Erling Sm\(/orgrav Aq Mt des@des.no .

View File

@ -1,15 +1,13 @@
.\" $NetBSD: pam_vinfo.3,v 1.6 2014/10/24 18:25:14 christos Exp $
.\" $NetBSD: pam_vinfo.3,v 1.7 2017/05/06 19:50:09 christos Exp $
.\"
.\" Generated from pam_vinfo.c by gendoc.pl
.\" Id: pam_vinfo.c 648 2013-03-05 17:54:27Z des
.Dd September 12, 2014
.\" $OpenPAM: pam_vinfo.c 938 2017-04-30 21:34:42Z des $
.Dd April 30, 2017
.Dt PAM_VINFO 3
.Os
.Sh NAME
.Nm pam_vinfo
.Nd display an information message
.Sh LIBRARY
.Lb libpam
.Sh SYNOPSIS
.In sys/types.h
.In security/pam_appl.h
@ -29,6 +27,8 @@ The
.Fn pam_vinfo
function returns one of the following values:
.Bl -tag -width 18n
.It Bq Er PAM_SUCCESS
Success.
.It Bq Er PAM_BUF_ERR
Memory buffer error.
.It Bq Er PAM_CONV_ERR
@ -59,4 +59,4 @@ DARPA/SPAWAR contract N66001-01-C-8035
as part of the DARPA CHATS research program.
.Pp
The OpenPAM library is maintained by
.An Dag-Erling Sm\(/orgrav Aq des@des.no .
.An Dag-Erling Sm\(/orgrav Aq Mt des@des.no .

View File

@ -1,15 +1,13 @@
.\" $NetBSD: pam_vprompt.3,v 1.6 2014/10/24 18:25:14 christos Exp $
.\" $NetBSD: pam_vprompt.3,v 1.7 2017/05/06 19:50:09 christos Exp $
.\"
.\" Generated from pam_vprompt.c by gendoc.pl
.\" Id: pam_vprompt.c 648 2013-03-05 17:54:27Z des
.Dd September 12, 2014
.\" $OpenPAM: pam_vprompt.c 938 2017-04-30 21:34:42Z des $
.Dd April 30, 2017
.Dt PAM_VPROMPT 3
.Os
.Sh NAME
.Nm pam_vprompt
.Nd call the conversation function
.Sh LIBRARY
.Lb libpam
.Sh SYNOPSIS
.In sys/types.h
.In security/pam_appl.h
@ -63,6 +61,8 @@ The
.Fn pam_vprompt
function returns one of the following values:
.Bl -tag -width 18n
.It Bq Er PAM_SUCCESS
Success.
.It Bq Er PAM_BUF_ERR
Memory buffer error.
.It Bq Er PAM_CONV_ERR
@ -96,4 +96,4 @@ DARPA/SPAWAR contract N66001-01-C-8035
as part of the DARPA CHATS research program.
.Pp
The OpenPAM library is maintained by
.An Dag-Erling Sm\(/orgrav Aq des@des.no .
.An Dag-Erling Sm\(/orgrav Aq Mt des@des.no .

View File

@ -1,8 +1,8 @@
/* $NetBSD: openpam.h,v 1.8 2015/10/14 15:54:55 christos Exp $ */
/* $NetBSD: openpam.h,v 1.9 2017/05/06 19:50:09 christos Exp $ */
/*-
* Copyright (c) 2002-2003 Networks Associates Technology, Inc.
* Copyright (c) 2004-2011 Dag-Erling Smørgrav
* Copyright (c) 2004-2015 Dag-Erling Smørgrav
* All rights reserved.
*
* This software was developed for the FreeBSD Project by ThinkSec AS and
@ -34,7 +34,7 @@
* OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF
* SUCH DAMAGE.
*
* Id: openpam.h 648 2013-03-05 17:54:27Z des
* $OpenPAM: openpam.h 938 2017-04-30 21:34:42Z des $
*/
#ifndef SECURITY_OPENPAM_H_INCLUDED
@ -188,6 +188,7 @@ enum {
OPENPAM_VERIFY_POLICY_FILE,
OPENPAM_RESTRICT_MODULE_NAME,
OPENPAM_VERIFY_MODULE_FILE,
OPENPAM_FALLBACK_TO_OTHER,
OPENPAM_NUM_FEATURES
};

View File

@ -1,7 +1,7 @@
/* $NetBSD: openpam_attr.h,v 1.5 2014/10/24 18:17:56 christos Exp $ */
/* $NetBSD: openpam_attr.h,v 1.6 2017/05/06 19:50:09 christos Exp $ */
/*
* Id: openpam_attr.h 656 2013-03-06 22:58:45Z des
* $OpenPAM: openpam_attr.h 938 2017-04-30 21:34:42Z des $
*/
#ifndef SECURITY_OPENPAM_ATTR_H_INCLUDED

View File

@ -1,8 +1,8 @@
/* $NetBSD: openpam_version.h,v 1.5 2014/10/24 18:17:56 christos Exp $ */
/* $NetBSD: openpam_version.h,v 1.6 2017/05/06 19:50:09 christos Exp $ */
/*-
* Copyright (c) 2002-2003 Networks Associates Technology, Inc.
* Copyright (c) 2004-2011 Dag-Erling Smørgrav
* Copyright (c) 2004-2017 Dag-Erling Smørgrav
* All rights reserved.
*
* This software was developed for the FreeBSD Project by ThinkSec AS and
@ -34,14 +34,14 @@
* OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF
* SUCH DAMAGE.
*
* Id: openpam_version.h 812 2014-09-12 07:24:23Z des
* $OpenPAM: openpam_version.h 938 2017-04-30 21:34:42Z des $
*/
#ifndef SECURITY_OPENPAM_VERSION_H_INCLUDED
#define SECURITY_OPENPAM_VERSION_H_INCLUDED
#define OPENPAM
#define OPENPAM_VERSION 20140912
#define OPENPAM_RELEASE "Ourouparia"
#define OPENPAM_VERSION 20170430
#define OPENPAM_RELEASE "Resedacea"
#endif /* !SECURITY_OPENPAM_VERSION_H_INCLUDED */

View File

@ -1,8 +1,8 @@
/* $NetBSD: pam_appl.h,v 1.5 2014/10/24 18:17:56 christos Exp $ */
/* $NetBSD: pam_appl.h,v 1.6 2017/05/06 19:50:09 christos Exp $ */
/*-
* Copyright (c) 2002-2003 Networks Associates Technology, Inc.
* Copyright (c) 2004-2011 Dag-Erling Smørgrav
* Copyright (c) 2004-2017 Dag-Erling Smørgrav
* All rights reserved.
*
* This software was developed for the FreeBSD Project by ThinkSec AS and
@ -34,7 +34,7 @@
* OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF
* SUCH DAMAGE.
*
* Id: pam_appl.h 648 2013-03-05 17:54:27Z des
* $OpenPAM: pam_appl.h 938 2017-04-30 21:34:42Z des $
*/
#ifndef SECURITY_PAM_APPL_H_INCLUDED

View File

@ -1,8 +1,8 @@
/* $NetBSD: pam_constants.h,v 1.5 2014/10/24 18:17:56 christos Exp $ */
/* $NetBSD: pam_constants.h,v 1.6 2017/05/06 19:50:09 christos Exp $ */
/*-
* Copyright (c) 2002-2003 Networks Associates Technology, Inc.
* Copyright (c) 2004-2011 Dag-Erling Smørgrav
* Copyright (c) 2004-2017 Dag-Erling Smørgrav
* All rights reserved.
*
* This software was developed for the FreeBSD Project by ThinkSec AS and
@ -34,7 +34,7 @@
* OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF
* SUCH DAMAGE.
*
* Id: pam_constants.h 648 2013-03-05 17:54:27Z des
* $OpenPAM: pam_constants.h 938 2017-04-30 21:34:42Z des $
*/
#ifndef SECURITY_PAM_CONSTANTS_H_INCLUDED
@ -80,6 +80,10 @@ enum {
PAM_TRY_AGAIN = 27,
PAM_MODULE_UNKNOWN = 28,
PAM_DOMAIN_UNKNOWN = 29,
PAM_BAD_HANDLE = 30, /* OpenPAM extension */
PAM_BAD_ITEM = 31, /* OpenPAM extension */
PAM_BAD_FEATURE = 32, /* OpenPAM extension */
PAM_BAD_CONSTANT = 33, /* OpenPAM extension */
PAM_NUM_ERRORS /* OpenPAM extension */
};

View File

@ -1,4 +1,4 @@
/* $NetBSD: pam_modules.h,v 1.5 2014/10/24 18:17:56 christos Exp $ */
/* $NetBSD: pam_modules.h,v 1.6 2017/05/06 19:50:09 christos Exp $ */
/*-
* Copyright (c) 2002-2003 Networks Associates Technology, Inc.
@ -34,7 +34,7 @@
* OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF
* SUCH DAMAGE.
*
* Id: pam_modules.h 648 2013-03-05 17:54:27Z des
* $OpenPAM: pam_modules.h 938 2017-04-30 21:34:42Z des $
*/
#ifndef SECURITY_PAM_MODULES_H_INCLUDED

View File

@ -1,4 +1,4 @@
/* $NetBSD: pam_types.h,v 1.5 2014/10/24 18:17:56 christos Exp $ */
/* $NetBSD: pam_types.h,v 1.6 2017/05/06 19:50:09 christos Exp $ */
/*-
* Copyright (c) 2002-2003 Networks Associates Technology, Inc.
@ -34,7 +34,7 @@
* OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF
* SUCH DAMAGE.
*
* Id: pam_types.h 648 2013-03-05 17:54:27Z des
* $OpenPAM: pam_types.h 938 2017-04-30 21:34:42Z des $
*/
#ifndef SECURITY_PAM_TYPES_H_INCLUDED

View File

@ -1,4 +1,4 @@
/* $NetBSD: openpam_asprintf.c,v 1.2 2014/10/24 18:17:56 christos Exp $ */
/* $NetBSD: openpam_asprintf.c,v 1.3 2017/05/06 19:50:09 christos Exp $ */
/*-
* Copyright (c) 2012 Dag-Erling Smørgrav
@ -28,7 +28,7 @@
* OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF
* SUCH DAMAGE.
*
* Id: openpam_asprintf.c 648 2013-03-05 17:54:27Z des
* $OpenPAM: openpam_asprintf.c 938 2017-04-30 21:34:42Z des $
*/
#ifdef HAVE_CONFIG_H
@ -36,7 +36,7 @@
#endif
#include <sys/cdefs.h>
__RCSID("$NetBSD: openpam_asprintf.c,v 1.2 2014/10/24 18:17:56 christos Exp $");
__RCSID("$NetBSD: openpam_asprintf.c,v 1.3 2017/05/06 19:50:09 christos Exp $");
#ifndef HAVE_ASPRINTF

View File

@ -1,4 +1,4 @@
/* $NetBSD: openpam_asprintf.h,v 1.2 2014/10/24 18:17:56 christos Exp $ */
/* $NetBSD: openpam_asprintf.h,v 1.3 2017/05/06 19:50:09 christos Exp $ */
/*-
* Copyright (c) 2012 Dag-Erling Smørgrav
@ -28,7 +28,7 @@
* OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF
* SUCH DAMAGE.
*
* Id: openpam_asprintf.h 648 2013-03-05 17:54:27Z des
* $OpenPAM: openpam_asprintf.h 938 2017-04-30 21:34:42Z des $
*/
#ifndef OPENPAM_ASPRINTF_H_INCLUDED

View File

@ -1,4 +1,4 @@
/* $NetBSD: openpam_borrow_cred.c,v 1.2 2014/10/24 18:17:56 christos Exp $ */
/* $NetBSD: openpam_borrow_cred.c,v 1.3 2017/05/06 19:50:09 christos Exp $ */
/*-
* Copyright (c) 2002-2003 Networks Associates Technology, Inc.
@ -34,7 +34,7 @@
* OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF
* SUCH DAMAGE.
*
* Id: openpam_borrow_cred.c 649 2013-03-05 17:58:33Z des
* $OpenPAM: openpam_borrow_cred.c 938 2017-04-30 21:34:42Z des $
*/
#ifdef HAVE_CONFIG_H
@ -42,7 +42,7 @@
#endif
#include <sys/cdefs.h>
__RCSID("$NetBSD: openpam_borrow_cred.c,v 1.2 2014/10/24 18:17:56 christos Exp $");
__RCSID("$NetBSD: openpam_borrow_cred.c,v 1.3 2017/05/06 19:50:09 christos Exp $");
#include <sys/param.h>

View File

@ -1,4 +1,4 @@
/* $NetBSD: openpam_check_owner_perms.c,v 1.2 2014/10/24 18:17:56 christos Exp $ */
/* $NetBSD: openpam_check_owner_perms.c,v 1.3 2017/05/06 19:50:09 christos Exp $ */
/*-
* Copyright (c) 2011 Dag-Erling Smørgrav
@ -28,7 +28,7 @@
* OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF
* SUCH DAMAGE.
*
* Id: openpam_check_owner_perms.c 648 2013-03-05 17:54:27Z des
* $OpenPAM: openpam_check_owner_perms.c 938 2017-04-30 21:34:42Z des $
*/
#ifdef HAVE_CONFIG_H
@ -36,7 +36,7 @@
#endif
#include <sys/cdefs.h>
__RCSID("$NetBSD: openpam_check_owner_perms.c,v 1.2 2014/10/24 18:17:56 christos Exp $");
__RCSID("$NetBSD: openpam_check_owner_perms.c,v 1.3 2017/05/06 19:50:09 christos Exp $");
#include <sys/types.h>
#include <sys/stat.h>

View File

@ -1,8 +1,8 @@
/* $NetBSD: openpam_configure.c,v 1.2 2014/10/24 18:17:56 christos Exp $ */
/* $NetBSD: openpam_configure.c,v 1.3 2017/05/06 19:50:09 christos Exp $ */
/*-
* Copyright (c) 2001-2003 Networks Associates Technology, Inc.
* Copyright (c) 2004-2014 Dag-Erling Smørgrav
* Copyright (c) 2004-2015 Dag-Erling Smørgrav
* All rights reserved.
*
* This software was developed for the FreeBSD Project by ThinkSec AS and
@ -34,7 +34,7 @@
* OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF
* SUCH DAMAGE.
*
* Id: openpam_configure.c 796 2014-06-03 21:30:08Z des
* $OpenPAM: openpam_configure.c 938 2017-04-30 21:34:42Z des $
*/
#ifdef HAVE_CONFIG_H
@ -42,7 +42,7 @@
#endif
#include <sys/cdefs.h>
__RCSID("$NetBSD: openpam_configure.c,v 1.2 2014/10/24 18:17:56 christos Exp $");
__RCSID("$NetBSD: openpam_configure.c,v 1.3 2017/05/06 19:50:09 christos Exp $");
#include <sys/param.h>
@ -415,6 +415,10 @@ openpam_load_chain(pam_handle_t *pamh,
for (path = openpam_policy_path; *path != NULL; ++path) {
/* construct filename */
len = strlcpy(filename, *path, sizeof filename);
if (len >= sizeof filename) {
errno = ENAMETOOLONG;
RETURNN(-1);
}
if (filename[len - 1] == '/') {
len = strlcat(filename, service, sizeof filename);
if (len >= sizeof filename) {
@ -468,8 +472,10 @@ openpam_configure(pam_handle_t *pamh,
for (fclt = 0; fclt < PAM_NUM_FACILITIES; ++fclt) {
if (pamh->chains[fclt] != NULL)
continue;
if (openpam_load_chain(pamh, PAM_OTHER, fclt) < 0)
goto load_err;
if (OPENPAM_FEATURE(FALLBACK_TO_OTHER)) {
if (openpam_load_chain(pamh, PAM_OTHER, fclt) < 0)
goto load_err;
}
}
#ifdef __NetBSD__
/*

View File

@ -1,8 +1,8 @@
/* $NetBSD: openpam_constants.c,v 1.2 2014/10/24 18:17:56 christos Exp $ */
/* $NetBSD: openpam_constants.c,v 1.3 2017/05/06 19:50:09 christos Exp $ */
/*-
* Copyright (c) 2001-2003 Networks Associates Technology, Inc.
* Copyright (c) 2004-2011 Dag-Erling Smørgrav
* Copyright (c) 2004-2017 Dag-Erling Smørgrav
* All rights reserved.
*
* This software was developed for the FreeBSD Project by ThinkSec AS and
@ -34,7 +34,7 @@
* OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF
* SUCH DAMAGE.
*
* Id: openpam_constants.c 690 2013-08-15 13:22:51Z des
* $OpenPAM: openpam_constants.c 938 2017-04-30 21:34:42Z des $
*/
#ifdef HAVE_CONFIG_H
@ -42,95 +42,133 @@
#endif
#include <sys/cdefs.h>
__RCSID("$NetBSD: openpam_constants.c,v 1.2 2014/10/24 18:17:56 christos Exp $");
__RCSID("$NetBSD: openpam_constants.c,v 1.3 2017/05/06 19:50:09 christos Exp $");
#include <security/pam_appl.h>
#include "openpam_impl.h"
const char *pam_err_name[PAM_NUM_ERRORS] = {
"PAM_SUCCESS",
"PAM_OPEN_ERR",
"PAM_SYMBOL_ERR",
"PAM_SERVICE_ERR",
"PAM_SYSTEM_ERR",
"PAM_BUF_ERR",
"PAM_CONV_ERR",
"PAM_PERM_DENIED",
"PAM_MAXTRIES",
"PAM_AUTH_ERR",
"PAM_NEW_AUTHTOK_REQD",
"PAM_CRED_INSUFFICIENT",
"PAM_AUTHINFO_UNAVAIL",
"PAM_USER_UNKNOWN",
"PAM_CRED_UNAVAIL",
"PAM_CRED_EXPIRED",
"PAM_CRED_ERR",
"PAM_ACCT_EXPIRED",
"PAM_AUTHTOK_EXPIRED",
"PAM_SESSION_ERR",
"PAM_AUTHTOK_ERR",
"PAM_AUTHTOK_RECOVERY_ERR",
"PAM_AUTHTOK_LOCK_BUSY",
"PAM_AUTHTOK_DISABLE_AGING",
"PAM_NO_MODULE_DATA",
"PAM_IGNORE",
"PAM_ABORT",
"PAM_TRY_AGAIN",
"PAM_MODULE_UNKNOWN",
"PAM_DOMAIN_UNKNOWN"
[PAM_SUCCESS] = "PAM_SUCCESS",
[PAM_OPEN_ERR] = "PAM_OPEN_ERR",
[PAM_SYMBOL_ERR] = "PAM_SYMBOL_ERR",
[PAM_SERVICE_ERR] = "PAM_SERVICE_ERR",
[PAM_SYSTEM_ERR] = "PAM_SYSTEM_ERR",
[PAM_BUF_ERR] = "PAM_BUF_ERR",
[PAM_CONV_ERR] = "PAM_CONV_ERR",
[PAM_PERM_DENIED] = "PAM_PERM_DENIED",
[PAM_MAXTRIES] = "PAM_MAXTRIES",
[PAM_AUTH_ERR] = "PAM_AUTH_ERR",
[PAM_NEW_AUTHTOK_REQD] = "PAM_NEW_AUTHTOK_REQD",
[PAM_CRED_INSUFFICIENT] = "PAM_CRED_INSUFFICIENT",
[PAM_AUTHINFO_UNAVAIL] = "PAM_AUTHINFO_UNAVAIL",
[PAM_USER_UNKNOWN] = "PAM_USER_UNKNOWN",
[PAM_CRED_UNAVAIL] = "PAM_CRED_UNAVAIL",
[PAM_CRED_EXPIRED] = "PAM_CRED_EXPIRED",
[PAM_CRED_ERR] = "PAM_CRED_ERR",
[PAM_ACCT_EXPIRED] = "PAM_ACCT_EXPIRED",
[PAM_AUTHTOK_EXPIRED] = "PAM_AUTHTOK_EXPIRED",
[PAM_SESSION_ERR] = "PAM_SESSION_ERR",
[PAM_AUTHTOK_ERR] = "PAM_AUTHTOK_ERR",
[PAM_AUTHTOK_RECOVERY_ERR] = "PAM_AUTHTOK_RECOVERY_ERR",
[PAM_AUTHTOK_LOCK_BUSY] = "PAM_AUTHTOK_LOCK_BUSY",
[PAM_AUTHTOK_DISABLE_AGING] = "PAM_AUTHTOK_DISABLE_AGING",
[PAM_NO_MODULE_DATA] = "PAM_NO_MODULE_DATA",
[PAM_IGNORE] = "PAM_IGNORE",
[PAM_ABORT] = "PAM_ABORT",
[PAM_TRY_AGAIN] = "PAM_TRY_AGAIN",
[PAM_MODULE_UNKNOWN] = "PAM_MODULE_UNKNOWN",
[PAM_DOMAIN_UNKNOWN] = "PAM_DOMAIN_UNKNOWN",
[PAM_BAD_HANDLE] = "PAM_BAD_HANDLE",
[PAM_BAD_ITEM] = "PAM_BAD_ITEM",
[PAM_BAD_FEATURE] = "PAM_BAD_FEATURE",
[PAM_BAD_CONSTANT] = "PAM_BAD_CONSTANT",
};
const char *pam_err_text[PAM_NUM_ERRORS] = {
[PAM_SUCCESS] = "Success",
[PAM_OPEN_ERR] = "Failed to load module",
[PAM_SYMBOL_ERR] = "Invalid symbol",
[PAM_SERVICE_ERR] = "Error in service module",
[PAM_SYSTEM_ERR] = "System error",
[PAM_BUF_ERR] = "Memory buffer error",
[PAM_CONV_ERR] = "Conversation failure",
[PAM_PERM_DENIED] = "Permission denied",
[PAM_MAXTRIES] = "Maximum number of tries exceeded",
[PAM_AUTH_ERR] = "Authentication error",
[PAM_NEW_AUTHTOK_REQD] = "New authentication token required",
[PAM_CRED_INSUFFICIENT] = "Insufficient credentials",
[PAM_AUTHINFO_UNAVAIL] = "Authentication information is unavailable",
[PAM_USER_UNKNOWN] = "Unknown user",
[PAM_CRED_UNAVAIL] = "Failed to retrieve user credentials",
[PAM_CRED_EXPIRED] = "User credentials have expired",
[PAM_CRED_ERR] = "Failed to set user credentials",
[PAM_ACCT_EXPIRED] = "User account has expired",
[PAM_AUTHTOK_EXPIRED] = "Password has expired",
[PAM_SESSION_ERR] = "Session failure",
[PAM_AUTHTOK_ERR] = "Authentication token failure",
[PAM_AUTHTOK_RECOVERY_ERR] = "Failed to recover old authentication token",
[PAM_AUTHTOK_LOCK_BUSY] = "Authentication token lock busy",
[PAM_AUTHTOK_DISABLE_AGING] = "Authentication token aging disabled",
[PAM_NO_MODULE_DATA] = "Module data not found",
[PAM_IGNORE] = "Ignore this module",
[PAM_ABORT] = "General failure",
[PAM_TRY_AGAIN] = "Try again",
[PAM_MODULE_UNKNOWN] = "Unknown module type",
[PAM_DOMAIN_UNKNOWN] = "Unknown authentication domain",
[PAM_BAD_HANDLE] = "Invalid PAM handle",
[PAM_BAD_ITEM] = "Unrecognized or restricted item",
[PAM_BAD_FEATURE] = "Unrecognized or restricted feature",
[PAM_BAD_CONSTANT] = "Invalid constant",
};
const char *pam_item_name[PAM_NUM_ITEMS] = {
"(NO ITEM)",
"PAM_SERVICE",
"PAM_USER",
"PAM_TTY",
"PAM_RHOST",
"PAM_CONV",
"PAM_AUTHTOK",
"PAM_OLDAUTHTOK",
"PAM_RUSER",
"PAM_USER_PROMPT",
"PAM_REPOSITORY",
"PAM_AUTHTOK_PROMPT",
"PAM_OLDAUTHTOK_PROMPT",
"PAM_HOST",
"PAM_SOCKADDR",
"PAM_NUSER"
[PAM_SERVICE] = "PAM_SERVICE",
[PAM_USER] = "PAM_USER",
[PAM_TTY] = "PAM_TTY",
[PAM_RHOST] = "PAM_RHOST",
[PAM_CONV] = "PAM_CONV",
[PAM_AUTHTOK] = "PAM_AUTHTOK",
[PAM_OLDAUTHTOK] = "PAM_OLDAUTHTOK",
[PAM_RUSER] = "PAM_RUSER",
[PAM_USER_PROMPT] = "PAM_USER_PROMPT",
[PAM_REPOSITORY] = "PAM_REPOSITORY",
[PAM_AUTHTOK_PROMPT] = "PAM_AUTHTOK_PROMPT",
[PAM_OLDAUTHTOK_PROMPT] = "PAM_OLDAUTHTOK_PROMPT",
[PAM_HOST] = "PAM_HOST",
};
const char *pam_facility_name[PAM_NUM_FACILITIES] = {
[PAM_ACCOUNT] = "account",
[PAM_AUTH] = "auth",
[PAM_PASSWORD] = "password",
[PAM_SESSION] = "session",
[PAM_ACCOUNT] = "account",
[PAM_AUTH] = "auth",
[PAM_PASSWORD] = "password",
[PAM_SESSION] = "session",
};
const char *pam_control_flag_name[PAM_NUM_CONTROL_FLAGS] = {
[PAM_BINDING] = "binding",
[PAM_OPTIONAL] = "optional",
[PAM_REQUIRED] = "required",
[PAM_REQUISITE] = "requisite",
[PAM_SUFFICIENT] = "sufficient",
[PAM_BINDING] = "binding",
[PAM_OPTIONAL] = "optional",
[PAM_REQUIRED] = "required",
[PAM_REQUISITE] = "requisite",
[PAM_SUFFICIENT] = "sufficient",
};
const char *pam_func_name[PAM_NUM_PRIMITIVES] = {
"pam_authenticate",
"pam_setcred",
"pam_acct_mgmt",
"pam_open_session",
"pam_close_session",
"pam_chauthtok"
[PAM_SM_AUTHENTICATE] = "pam_authenticate",
[PAM_SM_SETCRED] = "pam_setcred",
[PAM_SM_ACCT_MGMT] = "pam_acct_mgmt",
[PAM_SM_OPEN_SESSION] = "pam_open_session",
[PAM_SM_CLOSE_SESSION] = "pam_close_session",
[PAM_SM_CHAUTHTOK] = "pam_chauthtok"
};
const char *pam_sm_func_name[PAM_NUM_PRIMITIVES] = {
"pam_sm_authenticate",
"pam_sm_setcred",
"pam_sm_acct_mgmt",
"pam_sm_open_session",
"pam_sm_close_session",
"pam_sm_chauthtok"
[PAM_SM_AUTHENTICATE] = "pam_sm_authenticate",
[PAM_SM_SETCRED] = "pam_sm_setcred",
[PAM_SM_ACCT_MGMT] = "pam_sm_acct_mgmt",
[PAM_SM_OPEN_SESSION] = "pam_sm_open_session",
[PAM_SM_CLOSE_SESSION] = "pam_sm_close_session",
[PAM_SM_CHAUTHTOK] = "pam_sm_chauthtok"
};
const char *openpam_policy_path[] = {

View File

@ -1,7 +1,7 @@
/* $NetBSD: openpam_constants.h,v 1.2 2014/10/24 18:17:56 christos Exp $ */
/* $NetBSD: openpam_constants.h,v 1.3 2017/05/06 19:50:09 christos Exp $ */
/*-
* Copyright (c) 2011 Dag-Erling Smørgrav
* Copyright (c) 2011-2017 Dag-Erling Smørgrav
* All rights reserved.
*
* Redistribution and use in source and binary forms, with or without
@ -28,13 +28,14 @@
* OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF
* SUCH DAMAGE.
*
* Id: openpam_constants.h 659 2013-03-11 14:10:13Z des
* $OpenPAM: openpam_constants.h 938 2017-04-30 21:34:42Z des $
*/
#ifndef OPENPAM_CONSTANTS_H_INCLUDED
#define OPENPAM_CONSTANTS_H_INCLUDED
extern const char *pam_err_name[PAM_NUM_ERRORS];
extern const char *pam_err_text[PAM_NUM_ERRORS];
extern const char *pam_item_name[PAM_NUM_ITEMS];
extern const char *pam_facility_name[PAM_NUM_FACILITIES];
extern const char *pam_control_flag_name[PAM_NUM_CONTROL_FLAGS];

View File

@ -1,4 +1,4 @@
/* $NetBSD: openpam_cred.h,v 1.2 2014/10/24 18:17:56 christos Exp $ */
/* $NetBSD: openpam_cred.h,v 1.3 2017/05/06 19:50:09 christos Exp $ */
/*-
* Copyright (c) 2001-2003 Networks Associates Technology, Inc.
@ -34,7 +34,7 @@
* OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF
* SUCH DAMAGE.
*
* Id: openpam_cred.h 648 2013-03-05 17:54:27Z des
* $OpenPAM: openpam_cred.h 938 2017-04-30 21:34:42Z des $
*/
#ifndef OPENPAM_CRED_H_INCLUDED

View File

@ -1,7 +1,7 @@
/* $NetBSD: openpam_ctype.h,v 1.2 2014/10/24 18:17:56 christos Exp $ */
/* $NetBSD: openpam_ctype.h,v 1.3 2017/05/06 19:50:09 christos Exp $ */
/*-
* Copyright (c) 2012 Dag-Erling Smørgrav
* Copyright (c) 2012-2014 Dag-Erling Smørgrav
* All rights reserved.
*
* Redistribution and use in source and binary forms, with or without
@ -28,7 +28,7 @@
* OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF
* SUCH DAMAGE.
*
* Id: openpam_ctype.h 763 2014-02-26 16:29:16Z des
* $OpenPAM: openpam_ctype.h 938 2017-04-30 21:34:42Z des $
*/
#ifndef OPENPAM_CTYPE_H_INCLUDED

View File

@ -1,4 +1,4 @@
/* $NetBSD: openpam_debug.h,v 1.2 2014/10/24 18:17:56 christos Exp $ */
/* $NetBSD: openpam_debug.h,v 1.3 2017/05/06 19:50:09 christos Exp $ */
/*-
* Copyright (c) 2001-2003 Networks Associates Technology, Inc.
@ -34,7 +34,7 @@
* OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF
* SUCH DAMAGE.
*
* Id: openpam_debug.h 648 2013-03-05 17:54:27Z des
* $OpenPAM: openpam_debug.h 938 2017-04-30 21:34:42Z des $
*/
#ifndef OPENPAM_DEBUG_H_INCLUDED

View File

@ -1,8 +1,8 @@
/* $NetBSD: openpam_dispatch.c,v 1.2 2014/10/24 18:17:56 christos Exp $ */
/* $NetBSD: openpam_dispatch.c,v 1.3 2017/05/06 19:50:09 christos Exp $ */
/*-
* Copyright (c) 2002-2003 Networks Associates Technology, Inc.
* Copyright (c) 2004-2011 Dag-Erling Smørgrav
* Copyright (c) 2004-2017 Dag-Erling Smørgrav
* All rights reserved.
*
* This software was developed for the FreeBSD Project by ThinkSec AS and
@ -34,7 +34,7 @@
* OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF
* SUCH DAMAGE.
*
* Id: openpam_dispatch.c 807 2014-09-09 09:41:32Z des
* $OpenPAM: openpam_dispatch.c 938 2017-04-30 21:34:42Z des $
*/
#ifdef HAVE_CONFIG_H
@ -42,10 +42,12 @@
#endif
#include <sys/cdefs.h>
__RCSID("$NetBSD: openpam_dispatch.c,v 1.2 2014/10/24 18:17:56 christos Exp $");
__RCSID("$NetBSD: openpam_dispatch.c,v 1.3 2017/05/06 19:50:09 christos Exp $");
#include <sys/param.h>
#include <stdint.h>
#include <security/pam_appl.h>
#include "openpam_impl.h"
@ -72,8 +74,6 @@ openpam_dispatch(pam_handle_t *pamh,
int debug;
ENTER();
if (pamh == NULL)
RETURNC(PAM_SYSTEM_ERR);
/* prevent recursion */
if (pamh->current != NULL) {
@ -112,7 +112,7 @@ openpam_dispatch(pam_handle_t *pamh,
if (chain->module->func[primitive] == NULL) {
openpam_log(PAM_LOG_ERROR, "%s: no %s()",
chain->module->path, pam_sm_func_name[primitive]);
r = PAM_SYSTEM_ERR;
r = PAM_SYMBOL_ERR;
} else {
pamh->primitive = primitive;
pamh->current = chain;
@ -122,7 +122,7 @@ openpam_dispatch(pam_handle_t *pamh,
openpam_log(PAM_LOG_LIBDEBUG, "calling %s() in %s",
pam_sm_func_name[primitive], chain->module->path);
r = (chain->module->func[primitive])(pamh, flags,
chain->optc, (void *)chain->optv);
chain->optc, (const char **)(intptr_t)chain->optv);
pamh->current = NULL;
openpam_log(PAM_LOG_LIBDEBUG, "%s: %s(): %s",
chain->module->path, pam_sm_func_name[primitive],
@ -133,7 +133,7 @@ openpam_dispatch(pam_handle_t *pamh,
if (r == PAM_IGNORE)
continue;
if (r == PAM_SUCCESS) {
if (r == PAM_SUCCESS) {
++nsuccess;
/*
* For pam_setcred() and pam_chauthtok() with the

View File

@ -1,4 +1,4 @@
/* $NetBSD: openpam_dlfunc.h,v 1.2 2014/10/24 18:17:56 christos Exp $ */
/* $NetBSD: openpam_dlfunc.h,v 1.3 2017/05/06 19:50:09 christos Exp $ */
/*-
* Copyright (c) 2013 Dag-Erling Smørgrav
@ -12,6 +12,9 @@
* 2. Redistributions in binary form must reproduce the above copyright
* notice, this list of conditions and the following disclaimer in the
* documentation and/or other materials provided with the distribution.
* 3. The name of the author may not be used to endorse or promote
* products derived from this software without specific prior written
* permission.
*
* THIS SOFTWARE IS PROVIDED BY THE AUTHOR AND CONTRIBUTORS ``AS IS'' AND
* ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE
@ -25,7 +28,7 @@
* OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF
* SUCH DAMAGE.
*
* Id: openpam_dlfunc.h 660 2013-03-11 15:08:52Z des
* $OpenPAM: openpam_dlfunc.h 938 2017-04-30 21:34:42Z des $
*/
#ifndef OPENPAM_DLFCN_H_INCLUDED

View File

@ -1,4 +1,4 @@
/* $NetBSD: openpam_dynamic.c,v 1.2 2014/10/24 18:17:56 christos Exp $ */
/* $NetBSD: openpam_dynamic.c,v 1.3 2017/05/06 19:50:09 christos Exp $ */
/*-
* Copyright (c) 2002-2003 Networks Associates Technology, Inc.
@ -34,7 +34,7 @@
* OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF
* SUCH DAMAGE.
*
* Id: openpam_dynamic.c 683 2013-04-14 14:49:59Z des
* $OpenPAM: openpam_dynamic.c 938 2017-04-30 21:34:42Z des $
*/
#ifdef HAVE_CONFIG_H
@ -42,7 +42,7 @@
#endif
#include <sys/cdefs.h>
__RCSID("$NetBSD: openpam_dynamic.c,v 1.2 2014/10/24 18:17:56 christos Exp $");
__RCSID("$NetBSD: openpam_dynamic.c,v 1.3 2017/05/06 19:50:09 christos Exp $");
#include <sys/param.h>

View File

@ -1,7 +1,7 @@
/* $NetBSD: openpam_features.c,v 1.2 2014/10/24 18:17:56 christos Exp $ */
/* $NetBSD: openpam_features.c,v 1.3 2017/05/06 19:50:09 christos Exp $ */
/*-
* Copyright (c) 2012 Dag-Erling Smørgrav
* Copyright (c) 2012-2015 Dag-Erling Smørgrav
* All rights reserved.
*
* Redistribution and use in source and binary forms, with or without
@ -28,7 +28,7 @@
* OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF
* SUCH DAMAGE.
*
* Id: openpam_features.c 648 2013-03-05 17:54:27Z des
* $OpenPAM: openpam_features.c 938 2017-04-30 21:34:42Z des $
*/
#ifdef HAVE_CONFIG_H
@ -36,7 +36,7 @@
#endif
#include <sys/cdefs.h>
__RCSID("$NetBSD: openpam_features.c,v 1.2 2014/10/24 18:17:56 christos Exp $");
__RCSID("$NetBSD: openpam_features.c,v 1.3 2017/05/06 19:50:09 christos Exp $");
#include <security/pam_appl.h>
@ -70,4 +70,9 @@ struct openpam_feature openpam_features[OPENPAM_NUM_FEATURES] = {
"Verify ownership and permissions of module files",
1
),
STRUCT_OPENPAM_FEATURE(
FALLBACK_TO_OTHER,
"Fall back to \"other\" policy for empty chains",
1
),
};

View File

@ -1,4 +1,4 @@
/* $NetBSD: openpam_features.h,v 1.2 2014/10/24 18:17:56 christos Exp $ */
/* $NetBSD: openpam_features.h,v 1.3 2017/05/06 19:50:09 christos Exp $ */
/*-
* Copyright (c) 2012 Dag-Erling Smørgrav
@ -28,7 +28,7 @@
* OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF
* SUCH DAMAGE.
*
* Id: openpam_features.h 648 2013-03-05 17:54:27Z des
* $OpenPAM: openpam_features.h 938 2017-04-30 21:34:42Z des $
*/
#ifndef OPENPAM_FEATURES_H_INCLUDED

View File

@ -1,8 +1,8 @@
/* $NetBSD: openpam_findenv.c,v 1.2 2014/10/24 18:17:56 christos Exp $ */
/* $NetBSD: openpam_findenv.c,v 1.3 2017/05/06 19:50:09 christos Exp $ */
/*-
* Copyright (c) 2002-2003 Networks Associates Technology, Inc.
* Copyright (c) 2004-2011 Dag-Erling Smørgrav
* Copyright (c) 2004-2017 Dag-Erling Smørgrav
* All rights reserved.
*
* This software was developed for the FreeBSD Project by ThinkSec AS and
@ -34,7 +34,7 @@
* OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF
* SUCH DAMAGE.
*
* Id: openpam_findenv.c 648 2013-03-05 17:54:27Z des
* $OpenPAM: openpam_findenv.c 938 2017-04-30 21:34:42Z des $
*/
#ifdef HAVE_CONFIG_H
@ -42,8 +42,9 @@
#endif
#include <sys/cdefs.h>
__RCSID("$NetBSD: openpam_findenv.c,v 1.2 2014/10/24 18:17:56 christos Exp $");
__RCSID("$NetBSD: openpam_findenv.c,v 1.3 2017/05/06 19:50:09 christos Exp $");
#include <errno.h>
#include <string.h>
#include <security/pam_appl.h>
@ -61,15 +62,14 @@ openpam_findenv(pam_handle_t *pamh,
const char *name,
size_t len)
{
int i;
size_t i;
ENTER();
if (pamh == NULL)
RETURNN(-1);
for (i = 0; i < pamh->env_count; ++i)
if (strncmp(pamh->env[i], name, len) == 0 &&
pamh->env[i][len] == '=')
RETURNN(i);
RETURNN((int)i);
errno = ENOENT;
RETURNN(-1);
}

View File

@ -1,4 +1,4 @@
/* $NetBSD: openpam_free_data.c,v 1.2 2014/10/24 18:17:56 christos Exp $ */
/* $NetBSD: openpam_free_data.c,v 1.3 2017/05/06 19:50:09 christos Exp $ */
/*-
* Copyright (c) 2002-2003 Networks Associates Technology, Inc.
@ -34,7 +34,7 @@
* OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF
* SUCH DAMAGE.
*
* Id: openpam_free_data.c 648 2013-03-05 17:54:27Z des
* $OpenPAM: openpam_free_data.c 938 2017-04-30 21:34:42Z des $
*/
#ifdef HAVE_CONFIG_H
@ -42,7 +42,7 @@
#endif
#include <sys/cdefs.h>
__RCSID("$NetBSD: openpam_free_data.c,v 1.2 2014/10/24 18:17:56 christos Exp $");
__RCSID("$NetBSD: openpam_free_data.c,v 1.3 2017/05/06 19:50:09 christos Exp $");
#include <stdlib.h>
#include <string.h>

View File

@ -1,4 +1,4 @@
/* $NetBSD: openpam_free_envlist.c,v 1.2 2014/10/24 18:17:56 christos Exp $ */
/* $NetBSD: openpam_free_envlist.c,v 1.3 2017/05/06 19:50:09 christos Exp $ */
/*-
* Copyright (c) 2005-2011 Dag-Erling Smørgrav
@ -26,7 +26,7 @@
* (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF
* THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
*
* Id: openpam_free_envlist.c 648 2013-03-05 17:54:27Z des
* $OpenPAM: openpam_free_envlist.c 938 2017-04-30 21:34:42Z des $
*/
#ifdef HAVE_CONFIG_H
@ -34,7 +34,7 @@
#endif
#include <sys/cdefs.h>
__RCSID("$NetBSD: openpam_free_envlist.c,v 1.2 2014/10/24 18:17:56 christos Exp $");
__RCSID("$NetBSD: openpam_free_envlist.c,v 1.3 2017/05/06 19:50:09 christos Exp $");
#include <stdlib.h>

View File

@ -1,7 +1,7 @@
/* $NetBSD: openpam_get_feature.c,v 1.2 2014/10/24 18:17:56 christos Exp $ */
/* $NetBSD: openpam_get_feature.c,v 1.3 2017/05/06 19:50:09 christos Exp $ */
/*-
* Copyright (c) 2012 Dag-Erling Smørgrav
* Copyright (c) 2012-2017 Dag-Erling Smørgrav
* All rights reserved.
*
* Redistribution and use in source and binary forms, with or without
@ -28,7 +28,7 @@
* OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF
* SUCH DAMAGE.
*
* Id: openpam_get_feature.c 648 2013-03-05 17:54:27Z des
* $OpenPAM: openpam_get_feature.c 938 2017-04-30 21:34:42Z des $
*/
#ifdef HAVE_CONFIG_H
@ -36,7 +36,7 @@
#endif
#include <sys/cdefs.h>
__RCSID("$NetBSD: openpam_get_feature.c,v 1.2 2014/10/24 18:17:56 christos Exp $");
__RCSID("$NetBSD: openpam_get_feature.c,v 1.3 2017/05/06 19:50:09 christos Exp $");
#include <security/pam_appl.h>
#include <security/openpam.h>
@ -55,7 +55,7 @@ openpam_get_feature(int feature, int *onoff)
ENTERF(feature);
if (feature < 0 || feature >= OPENPAM_NUM_FEATURES)
RETURNC(PAM_SYMBOL_ERR);
RETURNC(PAM_BAD_FEATURE);
*onoff = openpam_features[feature].onoff;
RETURNC(PAM_SUCCESS);
}
@ -63,7 +63,7 @@ openpam_get_feature(int feature, int *onoff)
/*
* Error codes:
*
* PAM_SYMBOL_ERR
* PAM_BAD_FEATURE
*/
/**

View File

@ -1,4 +1,4 @@
/* $NetBSD: openpam_get_option.c,v 1.2 2014/10/24 18:17:56 christos Exp $ */
/* $NetBSD: openpam_get_option.c,v 1.3 2017/05/06 19:50:09 christos Exp $ */
/*-
* Copyright (c) 2002-2003 Networks Associates Technology, Inc.
@ -34,7 +34,7 @@
* OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF
* SUCH DAMAGE.
*
* Id: openpam_get_option.c 648 2013-03-05 17:54:27Z des
* $OpenPAM: openpam_get_option.c 938 2017-04-30 21:34:42Z des $
*/
#ifdef HAVE_CONFIG_H
@ -42,7 +42,7 @@
#endif
#include <sys/cdefs.h>
__RCSID("$NetBSD: openpam_get_option.c,v 1.2 2014/10/24 18:17:56 christos Exp $");
__RCSID("$NetBSD: openpam_get_option.c,v 1.3 2017/05/06 19:50:09 christos Exp $");
#include <sys/param.h>

View File

@ -1,8 +1,8 @@
/* $NetBSD: openpam_impl.h,v 1.2 2014/10/24 18:17:56 christos Exp $ */
/* $NetBSD: openpam_impl.h,v 1.3 2017/05/06 19:50:09 christos Exp $ */
/*-
* Copyright (c) 2001-2003 Networks Associates Technology, Inc.
* Copyright (c) 2004-2011 Dag-Erling Smørgrav
* Copyright (c) 2004-2017 Dag-Erling Smørgrav
* All rights reserved.
*
* This software was developed for the FreeBSD Project by ThinkSec AS and
@ -34,7 +34,7 @@
* OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF
* SUCH DAMAGE.
*
* Id: openpam_impl.h 648 2013-03-05 17:54:27Z des
* $OpenPAM: openpam_impl.h 938 2017-04-30 21:34:42Z des $
*/
#ifndef OPENPAM_IMPL_H_INCLUDED
@ -120,8 +120,8 @@ struct pam_handle {
/* environment list */
char **env;
int env_count;
int env_size;
size_t env_count;
size_t env_size;
};
/*
@ -132,19 +132,28 @@ struct pam_handle {
/*
* Internal functions
*/
int openpam_configure(pam_handle_t *, const char *);
int openpam_dispatch(pam_handle_t *, int, int);
int openpam_findenv(pam_handle_t *, const char *, size_t);
pam_module_t *openpam_load_module(const char *);
void openpam_clear_chains(pam_chain_t **);
int openpam_configure(pam_handle_t *, const char *)
OPENPAM_NONNULL((1));
int openpam_dispatch(pam_handle_t *, int, int)
OPENPAM_NONNULL((1));
int openpam_findenv(pam_handle_t *, const char *, size_t)
OPENPAM_NONNULL((1,2));
pam_module_t *openpam_load_module(const char *)
OPENPAM_NONNULL((1));
void openpam_clear_chains(pam_chain_t **)
OPENPAM_NONNULL((1));
int openpam_check_desc_owner_perms(const char *, int);
int openpam_check_path_owner_perms(const char *);
int openpam_check_desc_owner_perms(const char *, int)
OPENPAM_NONNULL((1));
int openpam_check_path_owner_perms(const char *)
OPENPAM_NONNULL((1));
#ifdef OPENPAM_STATIC_MODULES
pam_module_t *openpam_static(const char *);
pam_module_t *openpam_static(const char *)
OPENPAM_NONNULL((1));
#endif
pam_module_t *openpam_dynamic(const char *);
pam_module_t *openpam_dynamic(const char *)
OPENPAM_NONNULL((1));
#define FREE(p) \
do { \
@ -154,11 +163,11 @@ pam_module_t *openpam_dynamic(const char *);
#define FREEV(c, v) \
do { \
while (c) { \
--(c); \
FREE((v)[(c)]); \
if ((v) != NULL) { \
while ((c)-- > 0) \
FREE((v)[(c)]); \
FREE(v); \
} \
FREE(v); \
} while (/*CONSTCOND*/0)
#include "openpam_constants.h"

View File

@ -1,8 +1,8 @@
/* $NetBSD: openpam_load.c,v 1.2 2014/10/24 18:17:56 christos Exp $ */
/* $NetBSD: openpam_load.c,v 1.3 2017/05/06 19:50:09 christos Exp $ */
/*-
* Copyright (c) 2002-2003 Networks Associates Technology, Inc.
* Copyright (c) 2004-2011 Dag-Erling Smørgrav
* Copyright (c) 2004-2013 Dag-Erling Smørgrav
* All rights reserved.
*
* This software was developed for the FreeBSD Project by ThinkSec AS and
@ -34,7 +34,7 @@
* OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF
* SUCH DAMAGE.
*
* Id: openpam_load.c 664 2013-03-17 10:56:15Z des
* $OpenPAM: openpam_load.c 938 2017-04-30 21:34:42Z des $
*/
#ifdef HAVE_CONFIG_H
@ -42,7 +42,7 @@
#endif
#include <sys/cdefs.h>
__RCSID("$NetBSD: openpam_load.c,v 1.2 2014/10/24 18:17:56 christos Exp $");
__RCSID("$NetBSD: openpam_load.c,v 1.3 2017/05/06 19:50:09 christos Exp $");
#include <dlfcn.h>
#include <stdlib.h>
@ -89,6 +89,7 @@ openpam_load_module(const char *modulename)
static void
openpam_release_module(pam_module_t *module)
{
if (module == NULL)
return;
if (module->dlh == NULL)
@ -109,6 +110,7 @@ openpam_release_module(pam_module_t *module)
static void
openpam_destroy_chain(pam_chain_t *chain)
{
if (chain == NULL)
return;
openpam_destroy_chain(chain->next);

View File

@ -1,4 +1,4 @@
/* $NetBSD: openpam_log.c,v 1.2 2014/10/24 18:17:56 christos Exp $ */
/* $NetBSD: openpam_log.c,v 1.3 2017/05/06 19:50:09 christos Exp $ */
/*-
* Copyright (c) 2002-2003 Networks Associates Technology, Inc.
@ -34,7 +34,7 @@
* OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF
* SUCH DAMAGE.
*
* Id: openpam_log.c 686 2013-07-11 16:36:02Z des
* $OpenPAM: openpam_log.c 938 2017-04-30 21:34:42Z des $
*/
#ifdef HAVE_CONFIG_H
@ -42,7 +42,7 @@
#endif
#include <sys/cdefs.h>
__RCSID("$NetBSD: openpam_log.c,v 1.2 2014/10/24 18:17:56 christos Exp $");
__RCSID("$NetBSD: openpam_log.c,v 1.3 2017/05/06 19:50:09 christos Exp $");
#include <errno.h>
#include <stdarg.h>

View File

@ -1,4 +1,4 @@
/* $NetBSD: openpam_nullconv.c,v 1.2 2014/10/24 18:17:56 christos Exp $ */
/* $NetBSD: openpam_nullconv.c,v 1.3 2017/05/06 19:50:09 christos Exp $ */
/*-
* Copyright (c) 2002-2003 Networks Associates Technology, Inc.
@ -34,7 +34,7 @@
* OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF
* SUCH DAMAGE.
*
* Id: openpam_nullconv.c 648 2013-03-05 17:54:27Z des
* $OpenPAM: openpam_nullconv.c 938 2017-04-30 21:34:42Z des $
*/
#ifdef HAVE_CONFIG_H
@ -42,7 +42,7 @@
#endif
#include <sys/cdefs.h>
__RCSID("$NetBSD: openpam_nullconv.c,v 1.2 2014/10/24 18:17:56 christos Exp $");
__RCSID("$NetBSD: openpam_nullconv.c,v 1.3 2017/05/06 19:50:09 christos Exp $");
#include <sys/types.h>

View File

@ -1,4 +1,4 @@
/* $NetBSD: openpam_readline.c,v 1.2 2014/10/24 18:17:56 christos Exp $ */
/* $NetBSD: openpam_readline.c,v 1.3 2017/05/06 19:50:09 christos Exp $ */
/*-
* Copyright (c) 2003 Networks Associates Technology, Inc.
@ -34,7 +34,7 @@
* OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF
* SUCH DAMAGE.
*
* Id: openpam_readline.c 703 2013-08-16 11:57:54Z des
* $OpenPAM: openpam_readline.c 938 2017-04-30 21:34:42Z des $
*/
#ifdef HAVE_CONFIG_H
@ -42,7 +42,7 @@
#endif
#include <sys/cdefs.h>
__RCSID("$NetBSD: openpam_readline.c,v 1.2 2014/10/24 18:17:56 christos Exp $");
__RCSID("$NetBSD: openpam_readline.c,v 1.3 2017/05/06 19:50:09 christos Exp $");
#include <stdio.h>
#include <stdlib.h>

View File

@ -1,7 +1,7 @@
/* $NetBSD: openpam_readlinev.c,v 1.2 2014/10/24 18:17:56 christos Exp $ */
/* $NetBSD: openpam_readlinev.c,v 1.3 2017/05/06 19:50:09 christos Exp $ */
/*-
* Copyright (c) 2012 Dag-Erling Smørgrav
* Copyright (c) 2012-2016 Dag-Erling Smørgrav
* All rights reserved.
*
* Redistribution and use in source and binary forms, with or without
@ -28,7 +28,7 @@
* OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF
* SUCH DAMAGE.
*
* Id: openpam_readlinev.c 648 2013-03-05 17:54:27Z des
* $OpenPAM: openpam_readlinev.c 938 2017-04-30 21:34:42Z des $
*/
#ifdef HAVE_CONFIG_H
@ -36,7 +36,7 @@
#endif
#include <sys/cdefs.h>
__RCSID("$NetBSD: openpam_readlinev.c,v 1.2 2014/10/24 18:17:56 christos Exp $");
__RCSID("$NetBSD: openpam_readlinev.c,v 1.3 2017/05/06 19:50:09 christos Exp $");
#include <errno.h>
#include <stdio.h>
@ -84,6 +84,7 @@ openpam_readlinev(FILE *f, int *lineno, int *lenp)
/* insert our word */
wordv[wordvlen++] = word;
wordv[wordvlen] = NULL;
word = NULL;
}
if (errno != 0) {
/* I/O error or out of memory */
@ -91,6 +92,7 @@ openpam_readlinev(FILE *f, int *lineno, int *lenp)
while (wordvlen--)
free(wordv[wordvlen]);
free(wordv);
free(word);
errno = serrno;
return (NULL);
}

View File

@ -1,7 +1,7 @@
/* $NetBSD: openpam_readword.c,v 1.2 2014/10/24 18:17:56 christos Exp $ */
/* $NetBSD: openpam_readword.c,v 1.3 2017/05/06 19:50:09 christos Exp $ */
/*-
* Copyright (c) 2012 Dag-Erling Smørgrav
* Copyright (c) 2012-2017 Dag-Erling Smørgrav
* All rights reserved.
*
* Redistribution and use in source and binary forms, with or without
@ -28,7 +28,7 @@
* OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF
* SUCH DAMAGE.
*
* Id: openpam_readword.c 648 2013-03-05 17:54:27Z des
* $OpenPAM: openpam_readword.c 938 2017-04-30 21:34:42Z des $
*/
#ifdef HAVE_CONFIG_H
@ -36,7 +36,7 @@
#endif
#include <sys/cdefs.h>
__RCSID("$NetBSD: openpam_readword.c,v 1.2 2014/10/24 18:17:56 christos Exp $");
__RCSID("$NetBSD: openpam_readword.c,v 1.3 2017/05/06 19:50:09 christos Exp $");
#include <errno.h>
#include <stdio.h>
@ -139,7 +139,7 @@ openpam_readword(FILE *f, int *lineno, size_t *lenp)
}
if (ch == EOF && (escape || quote)) {
/* Missing escaped character or closing quote. */
openpam_log(PAM_LOG_ERROR, "unexpected end of file");
openpam_log(PAM_LOG_DEBUG, "unexpected end of file");
free(word);
errno = EINVAL;
return (NULL);

View File

@ -1,4 +1,4 @@
/* $NetBSD: openpam_restore_cred.c,v 1.2 2014/10/24 18:17:56 christos Exp $ */
/* $NetBSD: openpam_restore_cred.c,v 1.3 2017/05/06 19:50:09 christos Exp $ */
/*-
* Copyright (c) 2002-2003 Networks Associates Technology, Inc.
@ -34,7 +34,7 @@
* OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF
* SUCH DAMAGE.
*
* Id: openpam_restore_cred.c 648 2013-03-05 17:54:27Z des
* $OpenPAM: openpam_restore_cred.c 938 2017-04-30 21:34:42Z des $
*/
#ifdef HAVE_CONFIG_H
@ -42,7 +42,7 @@
#endif
#include <sys/cdefs.h>
__RCSID("$NetBSD: openpam_restore_cred.c,v 1.2 2014/10/24 18:17:56 christos Exp $");
__RCSID("$NetBSD: openpam_restore_cred.c,v 1.3 2017/05/06 19:50:09 christos Exp $");
#include <sys/param.h>

View File

@ -1,7 +1,7 @@
/* $NetBSD: openpam_set_feature.c,v 1.2 2014/10/24 18:17:56 christos Exp $ */
/* $NetBSD: openpam_set_feature.c,v 1.3 2017/05/06 19:50:09 christos Exp $ */
/*-
* Copyright (c) 2012 Dag-Erling Smørgrav
* Copyright (c) 2012-2017 Dag-Erling Smørgrav
* All rights reserved.
*
* Redistribution and use in source and binary forms, with or without
@ -28,7 +28,7 @@
* OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF
* SUCH DAMAGE.
*
* Id: openpam_set_feature.c 648 2013-03-05 17:54:27Z des
* $OpenPAM: openpam_set_feature.c 938 2017-04-30 21:34:42Z des $
*/
#ifdef HAVE_CONFIG_H
@ -36,7 +36,7 @@
#endif
#include <sys/cdefs.h>
__RCSID("$NetBSD: openpam_set_feature.c,v 1.2 2014/10/24 18:17:56 christos Exp $");
__RCSID("$NetBSD: openpam_set_feature.c,v 1.3 2017/05/06 19:50:09 christos Exp $");
#include <security/pam_appl.h>
#include <security/openpam.h>
@ -55,7 +55,7 @@ openpam_set_feature(int feature, int onoff)
ENTERF(feature);
if (feature < 0 || feature >= OPENPAM_NUM_FEATURES)
RETURNC(PAM_SYMBOL_ERR);
RETURNC(PAM_BAD_FEATURE);
openpam_features[feature].onoff = onoff;
RETURNC(PAM_SUCCESS);
}
@ -63,7 +63,7 @@ openpam_set_feature(int feature, int onoff)
/*
* Error codes:
*
* PAM_SYMBOL_ERR
* PAM_BAD_FEATURE
*/
/**

View File

@ -1,4 +1,4 @@
/* $NetBSD: openpam_set_option.c,v 1.2 2014/10/24 18:17:56 christos Exp $ */
/* $NetBSD: openpam_set_option.c,v 1.3 2017/05/06 19:50:09 christos Exp $ */
/*-
* Copyright (c) 2002-2003 Networks Associates Technology, Inc.
@ -34,7 +34,7 @@
* OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF
* SUCH DAMAGE.
*
* Id: openpam_set_option.c 648 2013-03-05 17:54:27Z des
* $OpenPAM: openpam_set_option.c 938 2017-04-30 21:34:42Z des $
*/
#ifdef HAVE_CONFIG_H
@ -42,7 +42,7 @@
#endif
#include <sys/cdefs.h>
__RCSID("$NetBSD: openpam_set_option.c,v 1.2 2014/10/24 18:17:56 christos Exp $");
__RCSID("$NetBSD: openpam_set_option.c,v 1.3 2017/05/06 19:50:09 christos Exp $");
#include <sys/param.h>

View File

@ -1,4 +1,4 @@
/* $NetBSD: openpam_static.c,v 1.2 2014/10/24 18:17:56 christos Exp $ */
/* $NetBSD: openpam_static.c,v 1.3 2017/05/06 19:50:09 christos Exp $ */
/*-
* Copyright (c) 2002-2003 Networks Associates Technology, Inc.
@ -34,7 +34,7 @@
* OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF
* SUCH DAMAGE.
*
* Id: openpam_static.c 648 2013-03-05 17:54:27Z des
* $OpenPAM: openpam_static.c 938 2017-04-30 21:34:42Z des $
*/
#ifdef HAVE_CONFIG_H
@ -42,7 +42,7 @@
#endif
#include <sys/cdefs.h>
__RCSID("$NetBSD: openpam_static.c,v 1.2 2014/10/24 18:17:56 christos Exp $");
__RCSID("$NetBSD: openpam_static.c,v 1.3 2017/05/06 19:50:09 christos Exp $");
#include <string.h>

View File

@ -1,4 +1,4 @@
/* $NetBSD: openpam_straddch.c,v 1.2 2014/10/24 18:17:56 christos Exp $ */
/* $NetBSD: openpam_straddch.c,v 1.3 2017/05/06 19:50:09 christos Exp $ */
/*-
* Copyright (c) 2012 Dag-Erling Smørgrav
@ -28,7 +28,7 @@
* OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF
* SUCH DAMAGE.
*
* Id: openpam_straddch.c 648 2013-03-05 17:54:27Z des
* $OpenPAM: openpam_straddch.c 938 2017-04-30 21:34:42Z des $
*/
#ifdef HAVE_CONFIG_H
@ -36,7 +36,7 @@
#endif
#include <sys/cdefs.h>
__RCSID("$NetBSD: openpam_straddch.c,v 1.2 2014/10/24 18:17:56 christos Exp $");
__RCSID("$NetBSD: openpam_straddch.c,v 1.3 2017/05/06 19:50:09 christos Exp $");
#include <errno.h>
#include <stdlib.h>

View File

@ -1,4 +1,4 @@
/* $NetBSD: openpam_strlcat.c,v 1.2 2014/10/24 18:17:56 christos Exp $ */
/* $NetBSD: openpam_strlcat.c,v 1.3 2017/05/06 19:50:09 christos Exp $ */
/*-
* Copyright (c) 2011-2012 Dag-Erling Smørgrav
@ -28,7 +28,7 @@
* OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF
* SUCH DAMAGE.
*
* Id: openpam_strlcat.c 648 2013-03-05 17:54:27Z des
* $OpenPAM: openpam_strlcat.c 938 2017-04-30 21:34:42Z des $
*/
#ifdef HAVE_CONFIG_H
@ -36,7 +36,7 @@
#endif
#include <sys/cdefs.h>
__RCSID("$NetBSD: openpam_strlcat.c,v 1.2 2014/10/24 18:17:56 christos Exp $");
__RCSID("$NetBSD: openpam_strlcat.c,v 1.3 2017/05/06 19:50:09 christos Exp $");
#ifndef HAVE_STRLCAT

View File

@ -1,4 +1,4 @@
/* $NetBSD: openpam_strlcat.h,v 1.2 2014/10/24 18:17:56 christos Exp $ */
/* $NetBSD: openpam_strlcat.h,v 1.3 2017/05/06 19:50:09 christos Exp $ */
/*-
* Copyright (c) 2011 Dag-Erling Smørgrav
@ -28,7 +28,7 @@
* OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF
* SUCH DAMAGE.
*
* Id: openpam_strlcat.h 648 2013-03-05 17:54:27Z des
* $OpenPAM: openpam_strlcat.h 938 2017-04-30 21:34:42Z des $
*/
#ifndef OPENPAM_STRLCAT_H_INCLUDED

View File

@ -1,4 +1,4 @@
/* $NetBSD: openpam_strlcmp.h,v 1.2 2014/10/24 18:17:56 christos Exp $ */
/* $NetBSD: openpam_strlcmp.h,v 1.3 2017/05/06 19:50:09 christos Exp $ */
/*-
* Copyright (c) 2011 Dag-Erling Smørgrav
@ -28,7 +28,7 @@
* OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF
* SUCH DAMAGE.
*
* Id: openpam_strlcmp.h 648 2013-03-05 17:54:27Z des
* $OpenPAM: openpam_strlcmp.h 938 2017-04-30 21:34:42Z des $
*/
#ifndef OPENPAM_STRLCMP_H_INCLUDED

View File

@ -1,4 +1,4 @@
/* $NetBSD: openpam_strlcpy.c,v 1.2 2014/10/24 18:17:56 christos Exp $ */
/* $NetBSD: openpam_strlcpy.c,v 1.3 2017/05/06 19:50:09 christos Exp $ */
/*-
* Copyright (c) 2011-2012 Dag-Erling Smørgrav
@ -28,7 +28,7 @@
* OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF
* SUCH DAMAGE.
*
* Id: openpam_strlcpy.c 648 2013-03-05 17:54:27Z des
* $OpenPAM: openpam_strlcpy.c 938 2017-04-30 21:34:42Z des $
*/
#ifdef HAVE_CONFIG_H
@ -36,7 +36,7 @@
#endif
#include <sys/cdefs.h>
__RCSID("$NetBSD: openpam_strlcpy.c,v 1.2 2014/10/24 18:17:56 christos Exp $");
__RCSID("$NetBSD: openpam_strlcpy.c,v 1.3 2017/05/06 19:50:09 christos Exp $");
#ifndef HAVE_STRLCPY

View File

@ -1,4 +1,4 @@
/* $NetBSD: openpam_strlcpy.h,v 1.2 2014/10/24 18:17:56 christos Exp $ */
/* $NetBSD: openpam_strlcpy.h,v 1.3 2017/05/06 19:50:09 christos Exp $ */
/*-
* Copyright (c) 2011 Dag-Erling Smørgrav
@ -28,7 +28,7 @@
* OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF
* SUCH DAMAGE.
*
* Id: openpam_strlcpy.h 648 2013-03-05 17:54:27Z des
* $OpenPAM: openpam_strlcpy.h 938 2017-04-30 21:34:42Z des $
*/
#ifndef OPENPAM_STRLCPY_H_INCLUDED

View File

@ -1,7 +1,7 @@
/* $NetBSD: openpam_strlset.c,v 1.2 2014/10/24 18:17:56 christos Exp $ */
/* $NetBSD: openpam_strlset.c,v 1.3 2017/05/06 19:50:09 christos Exp $ */
/*-
* Copyright (c) 2011-2012 Dag-Erling Smørgrav
* Copyright (c) 2014 Dag-Erling Smørgrav
* All rights reserved.
*
* Redistribution and use in source and binary forms, with or without
@ -28,7 +28,7 @@
* OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF
* SUCH DAMAGE.
*
* Id: openpam_strlset.c 807 2014-09-09 09:41:32Z des
* $OpenPAM: openpam_strlset.c 938 2017-04-30 21:34:42Z des $
*/
#ifdef HAVE_CONFIG_H
@ -36,7 +36,7 @@
#endif
#include <sys/cdefs.h>
__RCSID("$NetBSD: openpam_strlset.c,v 1.2 2014/10/24 18:17:56 christos Exp $");
__RCSID("$NetBSD: openpam_strlset.c,v 1.3 2017/05/06 19:50:09 christos Exp $");
#ifndef HAVE_STRLSET

Some files were not shown because too many files have changed in this diff Show More