Lines Matching refs:handle

12 int pam_log_oom(pam_handle_t *handle) {  in pam_log_oom()  argument
14 pam_syslog(handle, LOG_ERR, "Out of memory."); in pam_log_oom()
18 int pam_bus_log_create_error(pam_handle_t *handle, int r) { in pam_bus_log_create_error() argument
20 pam_syslog(handle, LOG_ERR, "Failed to create bus message: %s", strerror_safe(r)); in pam_bus_log_create_error()
24 int pam_bus_log_parse_error(pam_handle_t *handle, int r) { in pam_bus_log_parse_error() argument
26 pam_syslog(handle, LOG_ERR, "Failed to parse bus message: %s", strerror_safe(r)); in pam_bus_log_parse_error()
30 static void cleanup_system_bus(pam_handle_t *handle, void *data, int error_status) { in cleanup_system_bus() argument
34 int pam_acquire_bus_connection(pam_handle_t *handle, sd_bus **ret) { in pam_acquire_bus_connection() argument
38 assert(handle); in pam_acquire_bus_connection()
42 r = pam_get_data(handle, "systemd-system-bus", (const void**) &bus); in pam_acquire_bus_connection()
48 … pam_syslog(handle, LOG_ERR, "Failed to get bus connection: %s", pam_strerror(handle, r)); in pam_acquire_bus_connection()
54 … pam_syslog(handle, LOG_ERR, "Failed to connect to system bus: %s", strerror_safe(r)); in pam_acquire_bus_connection()
58 r = pam_set_data(handle, "systemd-system-bus", bus, cleanup_system_bus); in pam_acquire_bus_connection()
60 … pam_syslog(handle, LOG_ERR, "Failed to set PAM bus data: %s", pam_strerror(handle, r)); in pam_acquire_bus_connection()
70 int pam_release_bus_connection(pam_handle_t *handle) { in pam_release_bus_connection() argument
73 r = pam_set_data(handle, "systemd-system-bus", NULL, NULL); in pam_release_bus_connection()
75 …pam_syslog(handle, LOG_ERR, "Failed to release PAM user record data: %s", pam_strerror(handle, r)); in pam_release_bus_connection()
80 void pam_cleanup_free(pam_handle_t *handle, void *data, int error_status) { in pam_cleanup_free() argument