libonion
 All Data Structures Files Functions Variables Typedefs Enumerations Enumerator Macros Groups Pages
Functions
auth_pam.h File Reference
#include <onion/types.h>

Functions

onion_handleronion_handler_auth_pam (const char *realm, const char *pamname, onion_handler *inside_level)
 Creates an auth handler that do not allow to pass unless user is authenticated using a pam name.

Function Documentation

onion_handler* onion_handler_auth_pam ( const char *  realm,
const char *  pamname,
onion_handler inside_level 
)

Creates an auth handler that do not allow to pass unless user is authenticated using a pam name.

Creates an auth handler that do not allow to pass unless user is authenticated using a pam name.

If on the inside level nobody answers, it just returns NULL, so ->next can answer.

References onion_handler_auth_pam_data_t::inside, onion_handler_auth_pam_delete(), onion_handler_auth_pam_handler(), onion_handler_t::onion_handler_new(), onion_low_malloc(), onion_low_strdup(), onion_handler_auth_pam_data_t::pamname, and onion_handler_auth_pam_data_t::realm.