From 5e617d8d66d794a508b208b3ab036dba3987c5aa Mon Sep 17 00:00:00 2001 From: steering7253 Date: Mon, 18 May 2026 08:19:03 -0600 Subject: make sure the hexify doesnt break --- pam_autopeer/pam_autopeer.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/pam_autopeer/pam_autopeer.c b/pam_autopeer/pam_autopeer.c index b8b5457..2f9aedb 100644 --- a/pam_autopeer/pam_autopeer.c +++ b/pam_autopeer/pam_autopeer.c @@ -51,7 +51,7 @@ int pam_sm_authenticate(pam_handle_t *pamh, int flags, int argc, const char **ar return PAM_SYSTEM_ERR; } 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]); + sprintf(s_nonce, "%02x%02x%02x%02x%02x%02x%02x%02x%02x%02x", 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."); -- cgit v1.3.1-10-gc9f91