From: Eugene Crosser Date: Sun, 8 Dec 2013 19:19:54 +0000 (+0400) Subject: bump version, show version X-Git-Url: http://www.average.org/gitweb/?p=pam_pcsc_cr.git;a=commitdiff_plain;h=e3806a9acf7e6eea70bfd4641e7602d1f3518ac5;hp=62754dd7530941e38ab3dcfc87b3c73cb4efea08 bump version, show version --- 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",