pam_unsetenv(3)

pam_unsetenv3

Mirrors unsetenv(3)

Usage

#include <sys/types.h>

#include <security/pam_appl.h>

int

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

Library

library “libpam”

Overview

The pam_unsetenv function unsets a environment variable. Its semantics are similar to those of unsetenv(3), but it modifies the PAM context's environment list instead of the application's.

Return values

The pam_unsetenv function returns one of the following values:

[PAM_SYSTEM_ERR]

System error.

Releases

Unchanged in 97 releases since Mac OS X 10.7.

  1. 10.7–26.5

Standards

The pam_unsetenv function is an OpenPAM extension.

From OpenPAM 35 in macOS 26.5. Parsed by carta from the page's mdoc source.