pam_getenv(3)

pam_getenv3

Get a pam environment variable

Usage

#include <security/pam_appl.h>

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

Overview

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.

Releases

13 releases since Debian 2.1 (Slink); the text changed 11 times.

  1. 2.1
  2. 2.2
  3. 3.0
  4. 5.0
  5. 6.0
  6. 7
  7. 8–9
  8. 10
  9. 11
  10. 12
  11. 13
  12. Arch

From pam 1.7.3-1 in Arch Linux 2026-11-01. Parsed by carta from the page's man source.