diff options
| author | 2026-05-18 06:14:29 -0600 | |
|---|---|---|
| committer | 2026-05-18 06:14:29 -0600 | |
| commit | d399a20ef395b8f4549523c2a6f3cf668783aeae (patch) | |
| tree | 2bbbe73715388764799004fcdf3833707caabfee | |
| parent | add gpg auth (diff) | |
add pgp intro
| -rw-r--r-- | pam_autopeer/pam_autopeer.c | 1 | ||||
| -rw-r--r-- | pam_autopeer/pam_autopeer.o | bin | 5128 -> 5280 bytes | |||
| -rwxr-xr-x | pam_autopeer/pam_autopeer.so | bin | 16168 -> 16168 bytes |
3 files changed, 1 insertions, 0 deletions
diff --git a/pam_autopeer/pam_autopeer.c b/pam_autopeer/pam_autopeer.c index cf3ee11..0b7b1b7 100644 --- a/pam_autopeer/pam_autopeer.c +++ b/pam_autopeer/pam_autopeer.c @@ -46,6 +46,7 @@ int pam_sm_authenticate(pam_handle_t *pamh, int flags, int argc, const char **ar char s_nonce[21]; sprintf(s_nonce, "%x%x%x%x%x%x%x%x%x%x", nonce[0], nonce[1], nonce[2], nonce[3], nonce[4], nonce[5], nonce[6], nonce[7], nonce[8], nonce[9]); char *key, *sig; + pam_prompt(pamh, PAM_TEXT_INFO, NULL, "No SSH key was successful; entering PGP auth mode."); pam_prompt(pamh, PAM_PROMPT_ECHO_ON, &key, "Please enter a URL to download your ASCII-armored key:\n"); pam_prompt(pamh, PAM_PROMPT_ECHO_ON, &sig, "Please enter a ASCII-armored detached signature of the nonce '%s\\n', without newlines, i.e. `gpg -a --detach-sign -o - -u $YOUR_KEY <(echo %s) | tr -d '\\n'; echo`:\n", s_nonce, s_nonce); diff --git a/pam_autopeer/pam_autopeer.o b/pam_autopeer/pam_autopeer.o Binary files differindex bb65a05..e03a7da 100644 --- a/pam_autopeer/pam_autopeer.o +++ b/pam_autopeer/pam_autopeer.o diff --git a/pam_autopeer/pam_autopeer.so b/pam_autopeer/pam_autopeer.so Binary files differindex ec5f12a..f06eed3 100755 --- a/pam_autopeer/pam_autopeer.so +++ b/pam_autopeer/pam_autopeer.so |
