diff options
Diffstat (limited to 'pam/pam.h')
| -rw-r--r-- | pam/pam.h | 7 |
1 files changed, 5 insertions, 2 deletions
@@ -23,7 +23,7 @@ #include <security/pam_appl.h> // Conversation that will call back into Go code when appropriate. -const struct pam_conv *goConv; +extern const struct pam_conv *goConv; // CleaupFuncs are used to cleanup specific PAM data. typedef void (*CleanupFunc)(pam_handle_t *pamh, void *data, int error_status); @@ -35,10 +35,13 @@ void freeData(pam_handle_t *pamh, void *data, int error_status); // then frees the array itself. void freeArray(pam_handle_t *pamh, void **array, int error_status); -// Creates a copy of a C string, which resides in an locked buffer. +// Creates a copy of a C string, which resides in a locked buffer. void *copyIntoSecret(void *data); // CleaupFunc that Zeros wipes a C string and unlocks and frees its memory. void freeSecret(pam_handle_t *pamh, char *data, int error_status); +// Sends a message to the application using pam_info(). +void infoMessage(pam_handle_t *pamh, const char *message); + #endif // FSCRYPT_PAM_H |