aboutsummaryrefslogtreecommitdiff
path: root/pam/login.go
diff options
context:
space:
mode:
Diffstat (limited to 'pam/login.go')
-rw-r--r--pam/login.go8
1 files changed, 5 insertions, 3 deletions
diff --git a/pam/login.go b/pam/login.go
index 346edd4..e4f8f83 100644
--- a/pam/login.go
+++ b/pam/login.go
@@ -48,9 +48,10 @@ var (
tokenToCheck *crypto.Key
)
-// userInput is run when the 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.
+// 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))