diff options
| author | Eric Biggers <ebiggers@google.com> | 2021-12-21 21:59:01 -0600 |
|---|---|---|
| committer | GitHub <noreply@github.com> | 2021-12-21 21:59:01 -0600 |
| commit | aa7e4237024f5cf6bb2817ef997dbc18197b30a6 (patch) | |
| tree | 2aa1240435ff91f25b0f05923e80cb8b299ef337 /pam/pam.go | |
| parent | ce477ef12ac46c4df0152d43dae5d6e58772b120 (diff) | |
| parent | b7399903540c95e89f0ee427fed1de07301fbd93 (diff) | |
Merge pull request #334 from ebiggers/warn-on-chauthtok-fail
pam_fscrypt: warn user if OLDAUTHTOK not given in chauthtok
Diffstat (limited to 'pam/pam.go')
| -rw-r--r-- | pam/pam.go | 7 |
1 files changed, 7 insertions, 0 deletions
@@ -166,6 +166,13 @@ func (h *Handle) err() error { return errors.New(s) } +// InfoMessage sends a message to the application using pam_info(). +func (h *Handle) InfoMessage(message string) { + cMessage := C.CString(message) + defer C.free(unsafe.Pointer(cMessage)) + C.infoMessage(h.handle, cMessage) +} + // Transaction represents a wrapped pam_handle_t type created with pam_start // form an application. type Transaction Handle |