|
xsecurelock
1.7.0
XSecureLock is an X11 screen lock utility.
|
#include <locale.h>#include <security/pam_appl.h>#include <stdlib.h>#include <string.h>#include "../env_info.h"#include "../env_settings.h"#include "../logging.h"#include "../util.h"#include "authproto.h"Functions | |
| int | ConverseOne (const struct pam_message *msg, struct pam_response *resp) |
| Perform a single PAM conversation step. More... | |
| int | Converse (int num_msg, const struct pam_message **msg, struct pam_response **resp, void *appdata_ptr) |
| Perform a PAM conversation. More... | |
| int | CallPAMWithRetries (int(*pam_call)(pam_handle_t *, int), pam_handle_t *pam, int flags) |
| Perform a single PAM operation with retrying logic. More... | |
| int | Authenticate (struct pam_conv *conv, pam_handle_t **pam) |
| Perform PAM authentication. More... | |
| int | main () |
| The main program. More... | |
Variables | |
| static int | conv_error = 0 |
| Set if a conversation error has happened during the last PAM call. More... | |
| int Authenticate | ( | struct pam_conv * | conv, |
| pam_handle_t ** | pam | ||
| ) |
Perform PAM authentication.
| conv | The PAM conversation handler. |
| pam | The PAM handle will be returned here. |
| int CallPAMWithRetries | ( | int(*)(pam_handle_t *, int) | pam_call, |
| pam_handle_t * | pam, | ||
| int | flags | ||
| ) |
Perform a single PAM operation with retrying logic.
| int Converse | ( | int | num_msg, |
| const struct pam_message ** | msg, | ||
| struct pam_response ** | resp, | ||
| void * | appdata_ptr | ||
| ) |
Perform a PAM conversation.
| num_msg | The number of conversation steps to execute. |
| msg | The PAM messages. |
| resp | The PAM responses to store the output in. |
| appdata_ptr | Unused. |
| int ConverseOne | ( | const struct pam_message * | msg, |
| struct pam_response * | resp | ||
| ) |
Perform a single PAM conversation step.
| msg | The PAM message. |
| resp | The PAM response to store the output in. |
| int main | ( | ) |
The main program.
Usage: ./authproto_pam; status=$?
|
static |
Set if a conversation error has happened during the last PAM call.
1.8.14