man > PAM_GETENV(3)

PAM_GETENV(3)                             Linux-PAM Manual                             PAM_GETENV(3)

NAME
       pam_getenv - get a PAM environment variable

SYNOPSIS
       #include <security/pam_appl.h>


       const char *pam_getenv(pam_handle_t *pamh, const char *name);

DESCRIPTION
       The pam_getenv function searches the PAM environment list as associated with the handle pamh
       for an item that matches the string pointed to by name and returns a pointer to the value of
       the environment variable. The application is not allowed to free the data.

RETURN VALUES
       The pam_getenv function returns NULL on failure.

SEE ALSO
       pam_start(3), pam_getenvlist(3), pam_putenv(3), pam(7)

Linux-PAM                                    05/07/2023                                PAM_GETENV(3)

Generated by phpman v4.11.2-34-g91cb020 · Markdown · JSON · MCP Author: Che Dong Under GNU General Public License
2026-10-05 14:09 @216.73.216.55
CrawledBy Mozilla/5.0 AppleWebKit/537.36 (KHTML, like Gecko; compatible; ClaudeBot/1.0; +claudebot@anthropic.com)
Valid XHTML 1.0 Transitional!Valid CSS!