aboutsummaryrefslogtreecommitdiff
path: root/pam
diff options
context:
space:
mode:
authorEric Biggers <ebiggers@google.com>2023-09-09 11:30:45 -0700
committerEric Biggers <ebiggers@google.com>2023-09-09 11:30:45 -0700
commite663a3ee2287be77dcd44631b29147a1eddcb4f0 (patch)
tree07f2f6d6cd79d6f892c11d7ab808ae0372d4444d /pam
parentc999f0b04c526a85d061a7461c0e4211e94f9fb7 (diff)
Re-run 'make format' with latest version of gofmt
Diffstat (limited to 'pam')
-rw-r--r--pam/login.go2
1 files changed, 2 insertions, 0 deletions
diff --git a/pam/login.go b/pam/login.go
index 527b10d..e4f8f83 100644
--- a/pam/login.go
+++ b/pam/login.go
@@ -51,6 +51,7 @@ var (
// userInput is run when the callback needs some input from the user. We prompt
// the user for information and return their answer. A return value of nil
// indicates an error occurred.
+//
//export userInput
func userInput(prompt *C.char) *C.char {
fmt.Print(C.GoString(prompt))
@@ -65,6 +66,7 @@ func userInput(prompt *C.char) *C.char {
// passphraseInput is run when the callback needs a passphrase from the user. We
// pass along the tokenToCheck without prompting. A return value of nil
// indicates an error occurred.
+//
//export passphraseInput
func passphraseInput(prompt *C.char) *C.char {
log.Printf("getting secret data for PAM: %q", C.GoString(prompt))