Linux and UNIX Man Pages

Linux & Unix Commands - Search Man Pages

openpam_readline(3) [freebsd man page]

OPENPAM_READLINE(3)					   BSD Library Functions Manual 				       OPENPAM_READLINE(3)

NAME
openpam_readline -- read a line from a file LIBRARY
Pluggable Authentication Module Library (libpam, -lpam) SYNOPSIS
#include <sys/types.h> #include <stdio.h> #include <security/pam_appl.h> #include <security/openpam.h> char * openpam_readline(FILE *f, int *lineno, size_t *lenp); DESCRIPTION
This function is deprecated and may be removed in a future release without further warning. The openpam_readlinev() function may be used to achieve similar results. The openpam_readline() function reads a line from a file, and returns it in a NUL-terminated buffer allocated with malloc(3). The openpam_readline() function performs a certain amount of processing on the data it reads: o Comments (introduced by a hash sign) are stripped. o Blank lines are ignored. o If a line ends in a backslash, the backslash is stripped and the next line is appended. If lineno is not NULL, the integer variable it points to is incremented every time a newline character is read. If lenp is not NULL, the length of the line (not including the terminating NUL character) is stored in the variable it points to. The caller is responsible for releasing the returned buffer by passing it to free(3). RETURN VALUES
The openpam_readline() function returns NULL on failure. SEE ALSO
openpam_readlinev(3), openpam_readword(3), pam(3) STANDARDS
The openpam_readline() function is an OpenPAM extension. AUTHORS
The openpam_readline() function and this manual page were developed for the FreeBSD Project by ThinkSec AS and Network Associates Laborato- ries, the Security Research Division of Network Associates, Inc. under DARPA/SPAWAR contract N66001-01-C-8035 (``CBOSS''), as part of the DARPA CHATS research program. The OpenPAM library is maintained by Dag-Erling Smorgrav <des@des.no>. BSD
September 12, 2014 BSD

Check Out this Related Man Page

OPENPAM_LOG(3)						   BSD Library Functions Manual 					    OPENPAM_LOG(3)

NAME
openpam_log -- log a message through syslog LIBRARY
Pluggable Authentication Module Library (libpam, -lpam) SYNOPSIS
#include <sys/types.h> #include <security/pam_appl.h> #include <security/openpam.h> void openpam_log(int level, const char *fmt, ...); DESCRIPTION
The openpam_log() function logs messages using syslog(3). It is primarily intended for internal use by the library and modules. The level argument indicates the importance of the message. The following levels are defined: PAM_LOG_LIBDEBUG Debugging messages. For internal use only. PAM_LOG_DEBUG Debugging messages. These messages are normally not logged unless the global integer variable openpam_debug is set to a non-zero value, in which case they are logged with a syslog(3) priority of LOG_DEBUG. PAM_LOG_VERBOSE Information about the progress of the authentication process, or other non-essential messages. These messages are logged with a syslog(3) priority of LOG_INFO. PAM_LOG_NOTICE Messages relating to non-fatal errors. These messages are logged with a syslog(3) priority of LOG_NOTICE. PAM_LOG_ERROR Messages relating to serious errors. These messages are logged with a syslog(3) priority of LOG_ERR. The remaining arguments are a printf(3) format string and the corresponding arguments. The openpam_log() function does not modify the value of errno. SEE ALSO
pam(3), printf(3), syslog(3) STANDARDS
The openpam_log() function is an OpenPAM extension. AUTHORS
The openpam_log() function and this manual page were developed for the FreeBSD Project by ThinkSec AS and Network Associates Laboratories, the Security Research Division of Network Associates, Inc. under DARPA/SPAWAR contract N66001-01-C-8035 (``CBOSS''), as part of the DARPA CHATS research program. The OpenPAM library is maintained by Dag-Erling Smorgrav <des@des.no>. BSD
September 12, 2014 BSD
Man Page