logo
Free, unlimited AI code reviews that run on commit
git-lrc git-lrc GitHub Install Now We'd appreciate a star git-lrc - Free, unlimited AI code reviews that run on commit | Product Hunt git-lrc - Free, unlimited AI code reviews that run on commit | Product Hunt

pam_getenv - get a PAM environment variable

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.

Name

pam_getenv - get a PAM environment variable

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 07/03/2025 PAM_GETENV(3)

Synopsis

#include<security/pam_appl.h>constchar*pam_getenv(pam_handle_t*pamh,constchar*name);

See Also