1
0
mirror of https://github.com/Yubico/yubico-pam.git synced 2025-03-06 00:29:18 +01:00

debug: add ykpers library version to debug output where applicable

This commit is contained in:
Klas Lindfors 2018-04-24 08:41:03 +02:00
parent 9524cebc07
commit 3ad6fe72e7
No known key found for this signature in database
GPG Key ID: BCA00FD4B2168C0A

View File

@ -51,6 +51,7 @@
#include <yubikey.h> #include <yubikey.h>
/* for yubikey pbkdf2*/ /* for yubikey pbkdf2*/
#include <ykpbkdf2.h> #include <ykpbkdf2.h>
#include <ykpers-version.h>
#endif /* HAVE_CR */ #endif /* HAVE_CR */
/* Libtool defines PIC for shared objects */ /* Libtool defines PIC for shared objects */
@ -915,6 +916,7 @@ pam_sm_authenticate (pam_handle_t * pamh,
if (cfg->mode == CHRESP) { if (cfg->mode == CHRESP) {
#if HAVE_CR #if HAVE_CR
DBG ("libykpers version: %s", ykpers_check_version(NULL));
retval = do_challenge_response(pamh, cfg, user); retval = do_challenge_response(pamh, cfg, user);
#else #else
DBG ("no support for challenge/response"); DBG ("no support for challenge/response");