Returns the Process Authentication Group (PAG) value for a given PAG type.
Security Library (libc.a)
#include <pag.h>
int getpagvalue ( name )
char * name;
uint64_t getpagvalue64( name );
char * name;
The getpagvalue and getpagvalue64 subroutines retrieve the PAG value for a given PAG name. For these functions to succeed, the PAG name must be registered with the operating system before these subroutines are called.
Item | Description |
---|---|
name | A 1-character to 4-character, NULL-terminated name for the PAG type. Typical values include afs, dfs, pki, and krb5. |
The getpagvalue and getpagvalue64 subroutines return a PAG value upon successful completion. Upon a failure, a value of -1 is returned and the errno global variable is set to indicate the error.
The getpagvalue and getpagvalue64 subroutines fail if the following condition is true:
Item | Description |
---|---|
EINVAL | The named PAG type does not exist as part of the table. |
Other errors might be set by subroutines invoked by the getpagvalue and getpagvalue64 subroutines.