From e3806a9acf7e6eea70bfd4641e7602d1f3518ac5 Mon Sep 17 00:00:00 2001 From: Eugene Crosser Date: Sun, 8 Dec 2013 23:19:54 +0400 Subject: [PATCH] bump version, show version --- configure.ac | 2 +- pam_cr_setup.c | 1 + pam_pcsc_cr.c | 1 + 3 files changed, 3 insertions(+), 1 deletion(-) diff --git a/configure.ac b/configure.ac index 723f3c2..1a14878 100644 --- a/configure.ac +++ b/configure.ac @@ -1,6 +1,6 @@ dnl Process this file with autoconf to produce a configure script. -AC_INIT([pam_pcsc_cr], 0.9.0) +AC_INIT([pam_pcsc_cr], 0.9.1) AC_CONFIG_SRCDIR([pam_pcsc_cr.c]) AC_CONFIG_MACRO_DIR([m4]) AM_INIT_AUTOMAKE diff --git a/pam_cr_setup.c b/pam_cr_setup.c index ca5037b..af4e116 100644 --- a/pam_cr_setup.c +++ b/pam_cr_setup.c @@ -201,6 +201,7 @@ int main(int argc, char *argv[]) fprintf(stderr, "%s\n", ao.err); exit(EXIT_FAILURE); } else if (verbose) { + printf("version: %s\n", VERSION); printf("userid : \"%.*s\"\n", ao.datasize, ao.data); printf("payload: \"%.*s\"\n", ao.paylsize, ao.payload); } diff --git a/pam_pcsc_cr.c b/pam_pcsc_cr.c index 5d17365..9504415 100644 --- a/pam_pcsc_cr.c +++ b/pam_pcsc_cr.c @@ -164,6 +164,7 @@ pam_sm_authenticate(pam_handle_t *pamh, int flags, parse_cfg(&cfg, argc, argv); (void)pam_set_data(pamh, "pcsc_cr_cfg_struct", &cfg, NULL); + if (cfg.verbose) syslog(LOG_INFO, "auth with %s", PACKAGE_STRING); if ((pam_err = pam_get_user(pamh, &user, NULL)) != PAM_SUCCESS) { if (cfg.verbose) syslog(LOG_ERR, "get_user failed: %s", -- 2.39.2