Skip to content

Commit

Permalink
Unconditionally log public key on success
Browse files Browse the repository at this point in the history
  • Loading branch information
TomMD committed Oct 10, 2023
1 parent 7ae4196 commit 069caee
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions util.c
Original file line number Diff line number Diff line change
Expand Up @@ -20,6 +20,8 @@
#include <unistd.h>
#include <string.h>
#include <arpa/inet.h>
#include <syslog.h>
#include <security/pam_ext.h>

#include "b64.h"
#include "debug.h"
Expand Down Expand Up @@ -1254,6 +1256,7 @@ int do_authentication(const cfg_t *cfg, const device_t *devices,
}
r = fido_assert_verify(assert, 0, pk.type, pk.ptr);
if (r == FIDO_OK) {
pam_syslog(pamh, LOG_INFO, "Successful FIDO authentication with publicKey %s (idx %u)", devices[i].publicKey, i);
retval = 1;
goto out;
}
Expand Down

0 comments on commit 069caee

Please sign in to comment.