From d399a20ef395b8f4549523c2a6f3cf668783aeae Mon Sep 17 00:00:00 2001 From: steering7253 Date: Mon, 18 May 2026 06:14:29 -0600 Subject: add pgp intro --- pam_autopeer/pam_autopeer.c | 1 + pam_autopeer/pam_autopeer.o | Bin 5128 -> 5280 bytes pam_autopeer/pam_autopeer.so | Bin 16168 -> 16168 bytes 3 files changed, 1 insertion(+) 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 index bb65a05..e03a7da 100644 Binary files a/pam_autopeer/pam_autopeer.o and b/pam_autopeer/pam_autopeer.o differ diff --git a/pam_autopeer/pam_autopeer.so b/pam_autopeer/pam_autopeer.so index ec5f12a..f06eed3 100755 Binary files a/pam_autopeer/pam_autopeer.so and b/pam_autopeer/pam_autopeer.so differ -- cgit v1.3.1-10-gc9f91