poldi.git
5 years ago* configure.ac: Version number.
NIIBE Yutaka [Thu, 1 May 2014 08:13:44 +0000 (17:13 +0900)]
* configure.ac: Version number.
* po/poldi.pot, po/de.po: Updated.

5 years agoadd .gitignore
NIIBE Yutaka [Thu, 1 May 2014 05:08:04 +0000 (14:08 +0900)]
add .gitignore

5 years ago* src/scd/scd.c (unescape_status_string, unhexify_fpr): Fix type
NIIBE Yutaka [Thu, 1 May 2014 05:01:39 +0000 (14:01 +0900)]
* src/scd/scd.c (unescape_status_string, unhexify_fpr): Fix type
qualifier.

5 years ago* src/pam/auth-support/getpin-cb.c (all_digitsp): Remove.
NIIBE Yutaka [Thu, 1 May 2014 05:00:52 +0000 (14:00 +0900)]
* src/pam/auth-support/getpin-cb.c (all_digitsp): Remove.
(strcpy_escaped): Fix type qualifier.

5 years ago* src/ctrl/poldi-ctrl.c (main): Argv type fix.
NIIBE Yutaka [Thu, 1 May 2014 05:00:26 +0000 (14:00 +0900)]
* src/ctrl/poldi-ctrl.c (main): Argv type fix.

5 years ago* src/assuan/assuan-handler.c (assuan_process_done): Bug fix using code.
NIIBE Yutaka [Thu, 1 May 2014 04:59:48 +0000 (13:59 +0900)]
* src/assuan/assuan-handler.c (assuan_process_done): Bug fix using code.

5 years ago* doc/gpl.texi: Use @center for Info.
NIIBE Yutaka [Thu, 1 May 2014 04:59:02 +0000 (13:59 +0900)]
* doc/gpl.texi: Use @center for Info.

5 years ago* configure.ac, m4/po.m4, src/assuan/Makefile.am: Update for newer
NIIBE Yutaka [Thu, 1 May 2014 04:58:11 +0000 (13:58 +0900)]
* configure.ac, m4/po.m4, src/assuan/Makefile.am: Update for newer
autotools.

5 years ago* src/pam/auth-method-localdb/auth-localdb.c
NIIBE Yutaka [Wed, 30 Apr 2014 08:15:59 +0000 (17:15 +0900)]
* src/pam/auth-method-localdb/auth-localdb.c
(auth_method_localdb_auth_do): Bug fix, use ->loghandle.

5 years ago* src/pam/Makefile.am (pam_poldi.so): Use LDFLAGS and GCC.
NIIBE Yutaka [Wed, 30 Apr 2014 08:15:11 +0000 (17:15 +0900)]
* src/pam/Makefile.am (pam_poldi.so): Use LDFLAGS and GCC.

5 years ago* src/pam/auth-support/getpin-cb.c (query_user): Remove checking of digits.
NIIBE Yutaka [Wed, 30 Apr 2014 08:07:44 +0000 (17:07 +0900)]
* src/pam/auth-support/getpin-cb.c (query_user): Remove checking of digits.
Change error message when it's too short.

5 years ago* MIGRATION, TODO: Apply documentation change from Debian.
NIIBE Yutaka [Wed, 30 Apr 2014 07:44:19 +0000 (16:44 +0900)]
* MIGRATION, TODO: Apply documentation change from Debian.

5 years ago* conf/Makefile.am: Add scdaemon.conf installation.
NIIBE Yutaka [Wed, 30 Apr 2014 07:43:03 +0000 (16:43 +0900)]
* conf/Makefile.am: Add scdaemon.conf installation.
* conf/scdaemon.conf.skel: New.

5 years ago* conf/poldi.conf.skel (scdaemon-program): Change the path.
NIIBE Yutaka [Wed, 30 Apr 2014 07:39:29 +0000 (16:39 +0900)]
* conf/poldi.conf.skel (scdaemon-program): Change the path.

9 years agoLittle fix
Moritz Schulte [Sat, 8 Aug 2009 18:58:01 +0000 (18:58 +0000)]
Little fix

9 years ago2009-08-08 Moritz <moritz@gnu.org>
Moritz Schulte [Sat, 8 Aug 2009 18:11:18 +0000 (18:11 +0000)]
2009-08-08  Moritz  <moritz@gnu.org>

* THANKS: Updated.
* configure.ac (AC_CONFIG_FILES): Added src/util/configure-stamp.

2009-08-08  Moritz  <moritz@gnu.org>

* de.po: Updated translation.

2009-08-08  Moritz  <moritz@gnu.org>

* configure-stamp.in: New file.
* Makefile.am (defs.h): Added dependency on configure-stamp.
(EXTRA_DIST, CLEANFILES): Added configure-stamp.

2009-08-08  Moritz  <moritz@gnu.org>

* getpin-cb.c (getpin_cb): Fixed fallback prompts. Thanks to Lionel.
* ctx.h (struct poldi_ctx_s): New member: scdaemon_options.

9 years ago2009-08-08 Moritz <moritz@gnu.org>
Moritz Schulte [Sat, 8 Aug 2009 15:02:51 +0000 (15:02 +0000)]
2009-08-08  Moritz  <moritz@gnu.org>

* AUTHORS (Homepage): Fixed.

2009-08-08  Moritz  <moritz@gnu.org>

* poldi.conf.skel: Fixed log-file path.

2009-08-08  Moritz  <moritz@gnu.org>

* scd.h (scd_connect): Declared new parameter: scd_options.
* scd.c (scd_connect): Enlarge argv and fill it with options
related arguments.

2009-08-08  Moritz  <moritz@gnu.org>

* poldi-ctrl.c (main): Pass NULL as scd_connect's new
scd_options parameter.

2009-08-08  Moritz  <moritz@gnu.org>

* pam_poldi.c: Implement new option: scdaemon-options.
(pam_sm_authenticate): Pass ctx->scdaemon_options to
scd_connect().  (pam_sm_authenticate): Changed some user
messages.

2009-08-08  Moritz  <moritz@gnu.org>

* ctx.h (struct poldi_ctx_s): New member: scdaemon_options.

2009-08-08  Moritz  <moritz@gnu.org>

* poldi.texi (Configuration): Documented scdaemon-program and
scdaemon-options.

9 years agoFixed some buglets.
Werner Koch [Mon, 3 Aug 2009 13:29:32 +0000 (13:29 +0000)]
Fixed some buglets.

10 years ago2009-05-16 Moritz <moritz@gnu.org>
Moritz Schulte [Sat, 16 May 2009 19:44:14 +0000 (19:44 +0000)]
2009-05-16  Moritz  <moritz@gnu.org>

* poldi.texi (Configuration): Documented "quiet"-option and
"modify-environment"-option.

10 years ago2009-05-16 Moritz <moritz@gnu.org>
Moritz Schulte [Sat, 16 May 2009 18:16:32 +0000 (18:16 +0000)]
2009-05-16  Moritz  <moritz@gnu.org>

* scd.h (struct scd_cardinfo): New member: disp_lang.
* scd.c (learn_status_cb): Handle DISP-LANG.

2009-05-16  Moritz  <moritz@gnu.org>

* pam_poldi.c (enum opt_ids, opt_specs, pam_poldi_options_cb):
Implement new option "modify-environment".
(modify_environment_putenv, modify_environment): New functions.
(pam_sm_authenticate): Call modify_environment() if
ctx->modify_environment is true.

2009-05-16  Moritz  <moritz@gnu.org>

* ctx.h (struct poldi_ctx_s): New member: modify_environment.

2009-05-16  Moritz  <moritz@gnu.org>

* poldi.texi (XScreensaver): Added note for GNOME Screensaver.

10 years ago2009-05-10 Moritz <moritz@gnu.org>
Moritz Schulte [Sat, 16 May 2009 14:46:01 +0000 (14:46 +0000)]
2009-05-10  Moritz  <moritz@gnu.org>

* Makefile.am (parse_test_CFLAGS): Use $(GPG_ERROR_CFLAGS).
(parse_test_LDADD): Use $(GPG_ERROR_LIBS) and $(LIBGCRYPT_LIBS).

10 years ago2009-04-08 Marcus Brinkmann <marcus@g10code.de>
Marcus Brinkmann [Wed, 8 Apr 2009 13:27:05 +0000 (13:27 +0000)]
2009-04-08  Marcus Brinkmann  <marcus@g10code.de>

* poldi.texi (Notes on Applications): Fix section menu.

10 years agotests/ChangeLog:
Moritz Schulte [Sun, 29 Mar 2009 15:13:34 +0000 (15:13 +0000)]
tests/ChangeLog:

2009-02-16  Moritz  <moritz@gnu.org>

* parse-test.c: Added comment.

doc/ChangeLog:

2009-03-29  Moritz  <moritz@gnu.org>

* poldi.texi (XScreensaver): New section.

10 years ago2009-02-16 Moritz <moritz@gnu.org>
Moritz Schulte [Mon, 16 Feb 2009 01:24:18 +0000 (01:24 +0000)]
2009-02-16  Moritz  <moritz@gnu.org>

* poldi.texi (Configuration): Documentation bug fix: the option is
named "log-file", not "logfile". Thanks, Malte.

10 years agoSmall change
Moritz Schulte [Mon, 16 Feb 2009 01:17:30 +0000 (01:17 +0000)]
Small change

10 years ago2009-02-16 Moritz <moritz@gnu.org>
Moritz Schulte [Mon, 16 Feb 2009 01:17:14 +0000 (01:17 +0000)]
2009-02-16  Moritz  <moritz@gnu.org>

* pam-test.c (print_help): Cosmetic change.
(PROGRAM_VERSION): New symbol..
(print_version): use it here.

10 years agoThis directory isn't needed anymore. pam-test is included in "tests/".
Moritz Schulte [Mon, 16 Feb 2009 01:10:48 +0000 (01:10 +0000)]
This directory isn't needed anymore. pam-test is included in "tests/".

10 years ago2009-02-16 Moritz <moritz@gnu.org>
Moritz Schulte [Mon, 16 Feb 2009 00:41:14 +0000 (00:41 +0000)]
2009-02-16  Moritz  <moritz@gnu.org>

* pam_poldi.c (pam_sm_authenticate): Include name of the file that
could not be opened in error message.

10 years agosrc/pam/ChangeLog:
Moritz Schulte [Sat, 17 Jan 2009 17:19:51 +0000 (17:19 +0000)]
src/pam/ChangeLog:

2009-01-17  Moritz  <moritz@gnu.org>

* pam_poldi.c (enum opt_ids): New entry: opt_quiet.
(opt_specs): New entry for opt_quiet.
(pam_poldi_options_cb): Parse quiet option.
(pam_sm_authenticate): Skip calls to conv_tell in case ctx->quiet
is true. Thanks, Gordian.

src/pam/auth-support/ChangeLog:

2009-01-17  Moritz  <moritz@gnu.org>

* ctx.h (struct poldi_ctx_s): New struct member: quiet.

src/pam/auth-method-localdb/ChangeLog:

2009-01-17  Moritz  <moritz@gnu.org>

* auth-localdb.c (auth_method_localdb_auth_do): Skip calls to
conv_tell in case ctx->quiet is true.

10 years ago2009-01-17 Moritz <moritz@gnu.org>
Moritz Schulte [Sat, 17 Jan 2009 16:51:37 +0000 (16:51 +0000)]
2009-01-17  Moritz  <moritz@gnu.org>

* configure.ac: Bump version number up to 0.4.2-cvs.

10 years agoUpdated release-0.4.1
Moritz Schulte [Mon, 22 Dec 2008 22:52:15 +0000 (22:52 +0000)]
Updated

10 years ago2008-12-22 Moritz <moritz@gnu.org>
Moritz Schulte [Mon, 22 Dec 2008 22:50:12 +0000 (22:50 +0000)]
2008-12-22  Moritz  <moritz@gnu.org>

* configure.ac: Change version number to 0.4.1.

10 years agosrc/pam/ChangeLog:
Moritz Schulte [Mon, 22 Dec 2008 22:49:12 +0000 (22:49 +0000)]
src/pam/ChangeLog:

2008-12-22  Moritz  <moritz@gnu.org>

* pam_poldi.c (pam_sm_authenticate): Be more verbose in debugging
mode.

* Makefile.am (pam_poldi.so): Removed $(LIBGCRYPT_LDFLAGS); it's
not used in libgcrypt.m4.

src/pam/auth-method-localdb/ChangeLog:

2008-12-22  Moritz  <moritz@gnu.org>

* auth-localdb.c (auth_method_localdb_auth_do): Be more verbose in
debugging mode.

doc/ChangeLog:

2008-12-22  Moritz  <moritz@gnu.org>

* poldi.texi (Overview): Use footnotes plus cosmetic change.

10 years agoUpdated
Moritz Schulte [Mon, 22 Dec 2008 22:47:35 +0000 (22:47 +0000)]
Updated

10 years ago2008-12-22 Moritz <moritz@gnu.org>
Moritz Schulte [Mon, 22 Dec 2008 22:17:05 +0000 (22:17 +0000)]
2008-12-22  Moritz  <moritz@gnu.org>

* Makefile.am (libpoldi_auth_x509_a_CFLAGS): Added $(KSBA_CFLAGS).

10 years ago2008-12-22 Moritz <moritz@gnu.org>
Moritz Schulte [Mon, 22 Dec 2008 22:16:19 +0000 (22:16 +0000)]
2008-12-22  Moritz  <moritz@gnu.org>

* MIGRATION: added notes in respect to configuration options
removed during development.

10 years agoUpdated
Moritz Schulte [Mon, 22 Dec 2008 21:49:55 +0000 (21:49 +0000)]
Updated

10 years ago2008-12-22 Moritz <moritz@gnu.org>
Moritz Schulte [Mon, 22 Dec 2008 21:27:50 +0000 (21:27 +0000)]
2008-12-22  Moritz  <moritz@gnu.org>

* BUGS: The bug in scdaemon in respect to card changes seems to be
fixed.

10 years ago2008-12-22 Moritz <moritz@gnu.org>
Moritz Schulte [Mon, 22 Dec 2008 21:25:28 +0000 (21:25 +0000)]
2008-12-22  Moritz  <moritz@gnu.org>

* simpleparse.c (internal_process_tokens): Added error message in
case lookup_opt_spec_long returned error.
(internal_parse_args): cosmetic change to error message.
(internal_process_tokens): Added error message in case required
argument is missing.  Added error message in case an unexpected
argument is given.
(internal_process_tokens): Changed token processing: implement
better error handling than simple assert.

10 years ago2008-11-22 Moritz <moritz@gnu.org>
Moritz Schulte [Sat, 22 Nov 2008 16:56:00 +0000 (16:56 +0000)]
2008-11-22  Moritz  <moritz@gnu.org>

* README: Improved.

10 years agopot update
Moritz Schulte [Sat, 22 Nov 2008 16:44:54 +0000 (16:44 +0000)]
pot update

10 years agoAdded note about changed paths
Moritz Schulte [Sat, 22 Nov 2008 16:44:18 +0000 (16:44 +0000)]
Added note about changed paths

10 years ago2008-11-22 Moritz <moritz@gnu.org>
Moritz Schulte [Sat, 22 Nov 2008 16:42:23 +0000 (16:42 +0000)]
2008-11-22  Moritz  <moritz@gnu.org>

* Makefile.am: Updated libassuan copy.

10 years agoChangeLog:
Moritz Schulte [Sat, 22 Nov 2008 16:12:03 +0000 (16:12 +0000)]
ChangeLog:

2008-11-22  Moritz  <moritz@gnu.org>

* configure.ac: Added AM_GNU_GETTEXT_VERSION to remove autoreconf
warning.

src/util/ChangeLog:

2008-11-22  Moritz  <moritz@gnu.org>

* simplelog.c (internal_log_write): Fallback to log level LOG_ERR
in case the caller passes an invalid log level.
* support.c: Added <limits.h>, thanks to Peter Lewis.

10 years ago2008-08-17 Moritz <moritz@gnu.org>
Moritz Schulte [Sun, 17 Aug 2008 19:54:33 +0000 (19:54 +0000)]
2008-08-17  Moritz  <moritz@gnu.org>

* configure.ac:
Display configuration directory path at end of configure run.

10 years ago2008-08-17 Moritz <moritz@gnu.org>
Moritz Schulte [Sun, 17 Aug 2008 18:14:59 +0000 (18:14 +0000)]
2008-08-17  Moritz  <moritz@gnu.org>

* configure.ac:
Don't check for dlopen.
Removed GNUPG_CHECK_TYPEDEF calls.
(AC_CHECK_FUNCS): Removed unused function checks for memicmp,
strlwr, stricmp.

10 years agosrc/pam/ChangeLog:
Moritz Schulte [Sun, 17 Aug 2008 17:31:20 +0000 (17:31 +0000)]
src/pam/ChangeLog:

2008-08-17  Moritz  <moritz@gnu.org>

* pam_poldi.c (pam_sm_authenticate): Removed code related to
system scdaemon settings.

src/pam/auth-support/ChangeLog:

2008-08-17  Moritz  <moritz@gnu.org>

* ctx.h (struct poldi_ctx_s): Removed member scdaemon_socket.

10 years agoChangeLog:
Moritz Schulte [Sun, 17 Aug 2008 15:35:13 +0000 (15:35 +0000)]
ChangeLog:

2008-08-17  Moritz  <moritz@gnu.org>

* configure.ac: Be more verbose in respect to setting the PAM
module directory.

src/pam/ChangeLog:

2008-08-17  Moritz  <moritz@gnu.org>

* Makefile.am: Use CLEANFILES intead of clean-local target for
pam_poldi.so.
(uninstall-local, install-exec-local): New targets.

conf/ChangeLog:

2008-08-17  Moritz  <moritz@gnu.org>

* Makefile.am: Added several missing instances of DESTDIR. Thanks
to Joachim Breitner.

10 years ago2008-08-08 Moritz <moritz@gnu.org>
Moritz Schulte [Fri, 8 Aug 2008 13:31:42 +0000 (13:31 +0000)]
2008-08-08  Moritz  <moritz@gnu.org>

* configure.ac: Bump version number up to 0.5-cvs.

10 years agoMerged branch dev-0.4
Moritz Schulte [Fri, 8 Aug 2008 13:30:51 +0000 (13:30 +0000)]
Merged branch dev-0.4

13 years agocommon: Typo.
Moritz Schulte [Fri, 31 Mar 2006 17:43:13 +0000 (17:43 +0000)]
common: Typo.

jnlib/ChangeLog:

2006-03-31  Moritz Schulte  <moritz@g10code.com>

* logging.c: New static variable: prefix_length.
(set_syslog): Removed parameters IDENT, FACILITY; do not call
openlog().
(log_set_syslog): Removed parameters IDENT, FACILITY.
(log_close): Do not call closelog.
(log_set_prefix): Initialize prefix_length.
(log_to_syslog_va, log_to_syslog): New functions.
(do_logv): Replaced calls to syslog/vsyslog with calls to
log_to_syslog/log_to_syslog_va; removed calls to closelog.

* logging.h (set_syslog): Adjust declaration.

pam/ChangeLog:

2006-03-31  Moritz Schulte  <moritz@g10code.com>

* pam_poldi.c (pam_sm_authenticate): Adjust call to log_set_syslog
to new API; call log_set_prefix() to register a logging prefix;
use log_close() instead of closelog().

13 years ago2006-01-09 Moritz Schulte <moritz@g10code.com>
Moritz Schulte [Fri, 31 Mar 2006 12:22:50 +0000 (12:22 +0000)]
2006-01-09  Moritz Schulte  <moritz@g10code.com>

* poldi.texi: Mention kdm.

13 years agoChangeLog:
Moritz Schulte [Sun, 8 Jan 2006 00:41:17 +0000 (00:41 +0000)]
ChangeLog:

2005-12-12  Moritz Schulte  <moritz@g10code.com>

* configure.ac: Bumped version number up to 0.4-cvs.

src/pam/ChangeLog (previously forgot to commit):

2005-12-11  Moritz Schulte  <moritz@g10code.com>

* pam_poldi.c: Removed some FIXMEs.

13 years agoconf/ChangeLog:
Moritz Schulte [Sun, 11 Dec 2005 20:06:50 +0000 (20:06 +0000)]
conf/ChangeLog:

2005-12-11  Moritz Schulte  <moritz@g10code.com>

* Makefile.am: Touch user database file.

src/common/ChangeLog:

2005-12-11  Moritz Schulte  <moritz@g10code.com>

* support.c (authenticate): Use card_auth() instead of
card_sign().

* usersdb.c, usersdb.h: Added documentation.

src/ctrl/ChangeLog:

2005-12-11  Moritz Schulte  <moritz@g10code.com>

* poldi-ctrl.c: Removed some FIXMEs.

src/pam/ChangeLog:

2005-12-11  Moritz Schulte  <moritz@g10code.com>

* pam_poldi.c: Removed some FIXMEs.

13 years agodoc/ChangeLog:
Moritz Schulte [Sun, 11 Dec 2005 19:06:44 +0000 (19:06 +0000)]
doc/ChangeLog:

2005-12-11  Moritz Schulte  <moritz@g10code.com>

* poldi.texi: Improved documentation.

ChangeLog:

2005-12-11  Moritz Schulte  <moritz@g10code.com>

* configure.ac: Now: bumped version number up to 0.3.

13 years agosrc/common/ChangeLog:
Moritz Schulte [Sun, 11 Dec 2005 18:52:04 +0000 (18:52 +0000)]
src/common/ChangeLog:

2005-12-11  Moritz Schulte  <moritz@g10code.com>

* usersdb.c, usersdb.h: Added documentation.

13 years agosrc/common/ChangeLog:
Moritz Schulte [Sat, 10 Dec 2005 18:02:18 +0000 (18:02 +0000)]
src/common/ChangeLog:

2005-12-10  Moritz Schulte  <moritz@g10code.com>

* support.c (directory_process): New function.
Include <dirent.h>.

* support.h (directory_process_cb_t): New type.
(directory_process): Declare new function.

src/ctrl/ChangeLog:

2005-12-10  Moritz Schulte  <moritz@g10code.com>

* poldi-ctrl.c (ask_user): Return ERR_NO_DATA in case of EOF while
reading username, return ERR_INV_NAME in case an empty line was
read.
(key_file_create): Print warning instead of error message in case
the key file does already exist; only change file owner in case
PWENT is non-NULL.
(main): Include new commands, removed old commands.

(key_file_create): Open key file with O_EXCL flag set, better
error handling.

(struct poldi_ctrl_opt): New members: cmd_register_card,
cmd_unregister_card, cmd_list_cards, cmd_associate,
cmd_disassociate; removed members: cmd_add_user, cmd_remove_user.
Implemented new commands.

(cmd_register_card, cmd_unregister_card, cmd_list_cards,
cmd_associate, cmd_disassociate, directory_process_cb): New
functions.
(cmd_add_user, cmd_remove_user): Removed functions.
(enum arg_opt_ids): Add new symbols for new command arguments.

ChangeLog:

2005-12-10  Moritz Schulte  <moritz@g10code.com>

* NEWS: Updated.

13 years agoForgot to add these files..
Moritz Schulte [Sat, 3 Dec 2005 21:04:41 +0000 (21:04 +0000)]
Forgot to add these files..

13 years agoChangeLog:
Moritz Schulte [Sat, 3 Dec 2005 20:19:47 +0000 (20:19 +0000)]
ChangeLog:

2005-12-03  Moritz Schulte  <moritz@g10code.com>

* configure.ac: Undo last version number bumb; Poldi is not at
v0.3 yet.

doc/ChangeLog:

2005-12-03  Moritz Schulte  <moritz@g10code.com>

* poldi.texi: Remove the paragraph saying that Poldi implements a
1:1 mapping between cards and accounts.

src/common/ChangeLog:

2005-12-03  Moritz Schulte  <moritz@g10code.com>

* support.c (key_lookup_by_username): Removed function.
(key_lookup_by_serialno): New function.
(wait_for_card): New parameter: type; pass to card_info.

* support.h: Include <card.h>.
(wait_for_card): New parameter: card_key_t type.
(key_lookup_by_username): Removed function.
(key_lookup_by_serialno): New function.

* card.c: Include <card.h>.
(key_identifier_codes): New array.
(card_info): Adjust API; read-out fingerprint depending on new
TYPE parameter.
(card_decrypt, card_auth): New functions.

* card.h (card_key_t): New enumeration list.
(card_info): New parameter: card_kye_t type.
(card_decrypt, card_auth): Declare new functions.

* support.c, support.h: Moved usersdb-related code ...
* usersdb.c, usersdb.h: ... into these new files.
* Makefile.am (libpoldo_common_a_SOURCES): Added new files.

2005-11-19  Moritz Schulte  <moritz@g10code.com>

* card.c (card_read_key): New parameter: *KEY_NBITS, fill with
size of RSA modulus in case it is non-NULL.
* card.h (card_read_key): Adjust API.

src/ctrl/ChangeLog:

2005-12-03  Moritz Schulte  <moritz@g10code.com>

* poldi-ctrl.c: Include <assert.h>, <common/usersdb.h>.
(ask_user): New function.
(cmd_test): Mostly rewritten.
(cmd_list): Removed function body; add call to usersdb_list.
(cmd_add, cmd_remove): Stripped.
Adjusted to new usersdb API.

* poldi-ctrl.c (cmd_add_user): Removed exit calls.
(cmd_remove_user): Likewise.

2005-11-19  Moritz Schulte  <moritz@g10code.com>

* poldi-ctrl.c (cmd_dump): Retrive key size information through
card_read_key, print key size.
(cmd_set_key): Adjust to card_read_key API.

2005-11-12  Moritz Schulte  <moritz@g10code.com>

* poldi-ctrl.c (cmd_test): Adjust to new wait_for_card() API.
(cmd_set_key, cmd_dump): Adjust to new card_info() API.

* Makefile.am (poldi_ctrl_CFLAGS): Added include path:
$(top_srcdir)/src/common.

src/pam/ChangeLog:

2005-12-03  Moritz Schulte  <moritz@g10code.com>

* pam_poldi.c (ask_user): New parameter: secret.
(pam_conversation): Pass SECRET argument.
(pam_sm_authenticate): Rewritten in parts, simplified.
Adjusted to new usersdb API.

13 years agoctrl/ChangeLog:
Moritz Schulte [Mon, 31 Oct 2005 21:20:34 +0000 (21:20 +0000)]
ctrl/ChangeLog:

2005-10-31  Moritz Schulte  <moritz@g10code.com>

* poldi-ctrl.c (cmd_dump): Retrieve and print signing key fingerprint.

13 years agoUse fprintf() instead of tell_user() for user interaction.
Moritz Schulte [Mon, 31 Oct 2005 21:16:03 +0000 (21:16 +0000)]
Use fprintf() instead of tell_user() for user interaction.

13 years ago(no commit message)
Moritz Schulte [Mon, 31 Oct 2005 21:01:49 +0000 (21:01 +0000)]

13 years agoctrl/ChangeLog:
Moritz Schulte [Mon, 31 Oct 2005 21:00:37 +0000 (21:00 +0000)]
ctrl/ChangeLog:

2005-10-31  Moritz Schulte  <moritz@g10code.com>

* poldi-ctrl.c (cmd_test): Adjusted to new wait_for_card() API.
(conversation): New function.
Use authenticate() instead of duplicating the authentication
mechanism.

13 years agopam/ChangeLog:
Moritz Schulte [Mon, 31 Oct 2005 20:55:08 +0000 (20:55 +0000)]
pam/ChangeLog:

2005-10-31  Moritz Schulte  <moritz@g10code.com>

* pam_poldi.c: Added some more comments.
(pam_sm_authenticate): Adjusted to new wait_for_card() API.
(conv_opaque_t): New type.
(pam_conversation): New function.
(wait_for_card): Removed function, it's not included in common/.
(do_auth): Removed function; use authenticate() now, which is
included in common/.

(lookup_key): Removed function; use key_lookup_by_username() now,
which is included in common/.

2005-10-29  Moritz Schulte  <moritz@g10code.com>

* pam_poldi.c: More verbose logging.
(tell_user): Declare FMT const.

13 years agolibscd/ChangeLog:
Moritz Schulte [Mon, 31 Oct 2005 20:49:52 +0000 (20:49 +0000)]
libscd/ChangeLog:

2005-10-31  Moritz Schulte  <moritz@g10code.com>

* README: New file.
* Makefile.am (EXTRA_DIST): Added README.

13 years agocommon/ChangeLog:
Moritz Schulte [Mon, 31 Oct 2005 20:48:39 +0000 (20:48 +0000)]
common/ChangeLog:

2005-10-31  Moritz Schulte  <moritz@g10code.com>

* support.c, support.h, card.c, card.h: Added code documentation.

* support.c (challenge_verify): Renamed parameter KEY to
PUBLIC_KEY.

13 years ago2005-10-29 Moritz Schulte <moritz@g10code.com>
Moritz Schulte [Sat, 29 Oct 2005 10:49:14 +0000 (10:49 +0000)]
2005-10-29  Moritz Schulte  <moritz@g10code.com>

* configure.ac: Bumped version number up to 0.3.
* NEWS: Updated.

13 years agosrc/ctrl/ChangeLog:
Moritz Schulte [Sat, 29 Oct 2005 10:45:56 +0000 (10:45 +0000)]
src/ctrl/ChangeLog:

2005-10-29  Moritz Schulte  <moritz@g10code.com>

* poldi-ctrl.c (cmd_remove_user): Print a warning instead of an
error in case the serial number could not be looked up; set ERR to
0 in this case and only try to remove key file in case SERIALNO is
non-zero.
(cmd_remove_user): Make sure to lookup the serial number before
removing the user from the user database.

src/common/ChangeLog:

2005-10-29  Moritz Schulte  <moritz@g10code.com>

* support.c (sexp_to_string): Initialize FMT directly, declare
const.
Added even more comments.

src/pam/ChangeLog:

2005-10-29  Moritz Schulte  <moritz@g10code.com>

* pam_poldi.c: More verbose logging.

13 years agocommon/ChangeLog:
Moritz Schulte [Wed, 26 Oct 2005 20:57:14 +0000 (20:57 +0000)]
common/ChangeLog:

2005-10-26  Moritz Schulte  <moritz@g10code.com>

* support.c (usersdb_remove_entry): New argument: NENTRIES; new local variable
NENTRIES_REMOVED; count number of removed entries in
NENTRIES_REMOVED, store number in NENTRIES on success.
* support.h (usersdb_remove_entry): Adjust declaration.

13 years agoctrl/ChangeLog:
Moritz Schulte [Wed, 26 Oct 2005 20:53:53 +0000 (20:53 +0000)]
ctrl/ChangeLog:

2005-10-26  Moritz Schulte  <moritz@g10code.com>

* poldi-ctrl.c (poldi_ctrl_options_cb): Use gpg_error_t instead of
gpg_err_code_t.
(cmd_test): Do not call card_close() before "out" label, only
after "out" label.
(cmd_add_user): Recognize situations of adding duplicates much
better; new local variable: skip_userdb.  Added plenty of log
messages and comments.
(cmd_set_key): Do not call card_close() before "out" label, only
after "out" label.
(cmd_show_key): New local variable: KEY_SEXP; convert key from
string into s-expression representation and back, so that the user
sees the key in a standard format.
(cmd_remove_user): New local variable; NENTRIES_REMOVED; adjust to
new usersdb_remove_entry() interface.
(main): New local variable: NCOMMANDS; differentiate case of no
command being given from that of too many commands being given; be
more verbose.
(arg_opts): Include special codes in order to seperate commands
from options.

2005-10-23  Moritz Schulte  <moritz@g10code.com>

* poldi-ctrl.c (cmd_remove_user): Be more verbose (through jnlib
logging).
Removed dump-shadowed-key command.
(key_file_create): Replaced parameter ACCOUNT with PWENT.
(cmd_add_user): Pass PWENT to key_file_create instead of ACCOUNT.
(cmd_list_users): New local variable LINE_NUMBERS, use it for
error reporting, do not bail out on corrupt lines.

13 years agocommon/ChangeLog:
Moritz Schulte [Wed, 26 Oct 2005 20:09:54 +0000 (20:09 +0000)]
common/ChangeLog:

2005-10-26  Moritz Schulte  <moritz@g10code.com>

* support.c (usersdb_remove_entry): Use assert to make verify to
enforce calling convention.

13 years ago2005-10-23 Moritz Schulte <moritz@g10code.com>
Moritz Schulte [Sun, 23 Oct 2005 13:34:00 +0000 (13:34 +0000)]
2005-10-23  Moritz Schulte  <moritz@g10code.com>

* support.c (lookup_own_username): New function.
* support.h (lookup_own_username): Declare.

13 years agoctrl/ChangeLog:
Moritz Schulte [Sun, 23 Oct 2005 12:55:37 +0000 (12:55 +0000)]
ctrl/ChangeLog:

2005-10-23  Moritz Schulte  <moritz@g10code.com>

* poldi-ctrl.c:
Removed dump-shadowed-key command.

13 years agoctrl/ChangeLog:
Moritz Schulte [Sun, 23 Oct 2005 11:43:09 +0000 (11:43 +0000)]
ctrl/ChangeLog:

2005-10-16  Moritz Schulte  <moritz@g10code.com>

* poldi-ctrl.c (key_file_create, key_file_remove): Re-ordered functions.
(key_file_create, key_file_remove, cmd_test, cmd_set_key)
(cmd_show_key): Use key_filename_construct() instead of
make_filename() directly.

13 years agocommon/ChangeLog:
Moritz Schulte [Sun, 23 Oct 2005 11:40:50 +0000 (11:40 +0000)]
common/ChangeLog:

2005-10-16  Moritz Schulte  <moritz@g10code.com>

* support.c (key_filename_construct): New function.
Include <jnlib/string.h>.
Include <jnlib/xmalloc.h> instead of <../jnlib/xmalloc.h>.
* support.h (key_filename_construct): Declare function.

13 years agopam/ChangeLog:
Moritz Schulte [Sun, 23 Oct 2005 11:39:40 +0000 (11:39 +0000)]
pam/ChangeLog:

2005-10-23  Moritz Schulte  <moritz@g10code.com>

* pam_poldi.c: Remove Syslog logging macros, use jnlib logging
only (which does support logging to Syslog now).
(pam_sm_authenticate): Call log_set_syslog or log_set_file,
depending on the value of pam_poldi_opt.logfile.
(username_void, conv_void): New local variables, use them when
retrieving items from the PAM environment in order to follow
strict-aliasing rules.

2005-10-16  Moritz Schulte  <moritz@g10code.com>

* pam_poldi.c (lookup_key): Use key_filename_construct() instead
of make_filename() directly.
Re-ordered functions, clean-up, added comments.

13 years agoChangeLog:
Moritz Schulte [Sat, 22 Oct 2005 21:16:49 +0000 (21:16 +0000)]
ChangeLog:

2005-10-22  Moritz Schulte  <moritz@g10code.com>

* NEWS: Updated.

2005-10-19  Moritz Schulte  <moritz@g10code.com>

* configure.ac: Check for functions: fopencookie, funopen.

2005-10-15  Moritz Schulte  <moritz@g10code.com>

* configure.ac: Implement --with-pam-module-directory switch.

13 years agojnlib/ChangeLog:
Moritz Schulte [Sat, 22 Oct 2005 21:14:57 +0000 (21:14 +0000)]
jnlib/ChangeLog:

2005-10-22  Moritz Schulte  <moritz@g10code.com>

Updated jnlib.

* logging.c: Include <syslog.h>.
(syslog_priorities): New static array.
(logging_to_syslog): New static variable.
(set_syslog): New function.
(log_set_syslog): New function, public interface to set_syslog.
(log_close): New function.
(log_get_stream): Return LOGSTREAM (which must be NULL) in case
Syslog logging is enabled.
(log_get_fd): In case Syslog logging is enabled, return -1 in any
case.
(do_logv): Use assert to make sure that LEVEL contains an allowed
value; implement support for logging to Syslog.

* logging.h (log_set_syslog): New function.
(log_close): Likewise.

13 years agoTypo
Moritz Schulte [Sun, 16 Oct 2005 13:58:18 +0000 (13:58 +0000)]
Typo

13 years ago2005-10-15 Moritz Schulte <moritz@g10code.com>
Moritz Schulte [Sat, 15 Oct 2005 15:06:05 +0000 (15:06 +0000)]
2005-10-15  Moritz Schulte  <moritz@g10code.com>

* poldi.texi (Installing): Improved.

13 years agopam/ChangeLog:
Moritz Schulte [Sat, 15 Oct 2005 14:25:33 +0000 (14:25 +0000)]
pam/ChangeLog:

2005-10-15  Moritz Schulte  <moritz@g10code.com>

* pam_poldi.c (parse_argv): Fixed type related to timeout argument
parsing.

13 years agodoc/ChangeLog:
Moritz Schulte [Sat, 8 Oct 2005 16:16:47 +0000 (16:16 +0000)]
doc/ChangeLog:

2005-10-08  Moritz Schulte  <moritz@g10code.com>

* poldi.texi: Improve documentation, add application-specific
information.

src/ctrl/ChangeLog:

2005-10-08  Moritz Schulte  <moritz@g10code.com>

* poldi-ctrl.c: Remove `fake-wait-for-card'-feature.

src/pam/ChangeLog:

2005-10-08  Moritz Schulte  <moritz@g10code.com>

* pam_poldi.c: Remove `fake-wait-for-card'-feature.

13 years agoChangeLog:
Moritz Schulte [Sat, 8 Oct 2005 16:08:38 +0000 (16:08 +0000)]
ChangeLog:

2005-10-08  Moritz Schulte  <moritz@g10code.com>

* Makefile.am (install-conf-skeleton): New target:
        install-conf-skeleton.

conf/ChangeLog:

2005-09-25  Moritz Schulte  <moritz@g10code.com>

* Makefile.am: New file.

13 years agoChanegLog:
Moritz Schulte [Sat, 8 Oct 2005 13:19:59 +0000 (13:19 +0000)]
ChanegLog:

2005-10-08  Moritz Schulte  <moritz@g10code.com>

* configure.ac (POLDI_CONF_DIRECTORY): Only set
PAM_MODULE_DIRECTORY in case it is the empty string; Use libdir
instead of hard-coded path.  This fixes `make distcheck', but it
forces users who want to install the PAM module directly beneath
/lib/security to set PAM_MODULE_DIRECTORY accordingly.
* THANKS: Updated.
* Makefile.am: Remove install-pam-module target.

src/ChangeLog:

2005-10-08  Moritz Schulte  <moritz@g10code.com>

* Makefile.am: Remove install-pam-module target.

src/pam/ChangeLog:

2005-10-08  Moritz Schulte  <moritz@g10code.com>

* Makefile.am: Drop ugly install-pam-module mechanism, implement
install-exec-local and uninstall-local target.

* pam_poldi.c (pam_sm_authenticate): Disable buffering on stderr.
We need to disable bufferring on stderr, since it might have been
enabled by log_set_file().  Buffering on stderr will complicate
PAM interaction, since e.g. libpam-misc's misc_conv() function
does expect stderr to be unbuffered.

13 years ago2005-10-08 Moritz Schulte <moritz@g10code.com>
Moritz Schulte [Fri, 7 Oct 2005 22:50:55 +0000 (22:50 +0000)]
2005-10-08  Moritz Schulte  <moritz@g10code.com>

* pam_poldi.c (pam_sm_authenticate): Disable buffering on stderr.
We need to disable bufferring on stderr, since it might have been
enabled by log_set_file().  Buffering on stderr will complicate
PAM interaction, since e.g. libpam-misc's misc_conv() function
does expect stderr to be unbuffered.

13 years ago2005-10-01 Moritz Schulte <moritz@g10code.com>
Moritz Schulte [Sat, 1 Oct 2005 11:39:52 +0000 (11:39 +0000)]
2005-10-01  Moritz Schulte  <moritz@g10code.com>

* poldi-ctrl.c (struct poldi_ctrl_opt): New member: WAIT_TIMEOUT.
(poldi_ctrl_opt): Exten struct initialization.
(arg_opt_ids): New entry: ARG_WAIT_TIMEOUT.
(arg_opts): New entry for ARG_WAIT_TIMEOUT.
(poldi_ctrl_options_cb): Handle ARG_WAIT_TIMEOUT.
(cmd_test): Pass WAIT_TIMEOUT to card_init.

13 years agoChangeLog:
Moritz Schulte [Fri, 30 Sep 2005 20:26:09 +0000 (20:26 +0000)]
ChangeLog:

2005-09-25  Moritz Schulte  <moritz@g10code.com>

* conf: New directory.
* configure.ac (AC_CONFIG_FILES): Added: conf/Makefile.am.
* Makefile.am (SUBDIRS): Added: conf.
* THANKS: updated.

src/ctrl/ChangeLog:

2005-09-30  Moritz Schulte  <moritz@g10code.com>

* poldi-ctrl.c (struct poldi_ctrl_opt): Remove unnecessary, rather
annoying const attributes.
(cmd_add_user): Likewise.

2005-09-27  Moritz Schulte  <moritz@g10code.com>

* poldi-ctrl.c: Adjust to new card_init API; pass zero timeout.

src/common/ChangeLog:

2005-09-26  Moritz Schulte  <moritz@g10code.com>

Thanks to Alessandro Rubini:

* card.c: Include <time.h>.
(wait_for_card): New parameter: TIMEOUT; new variables T0, T;
return 1 in case the specified timeout elapsed without any card
being inserted.
(card_init): New parameter: TIMEOUT; new variable: RET; pass
TIMEOUT to wait_for_card();
* card.h (card_sign): Updated card_init API.

src/pam/ChangeLog:

2005-09-27  Moritz Schulte  <moritz@g10code.com>

* pam_poldi.c (struct pam_poldi_opt): New member: TIMEOUT.
(pam_poldi_opt): Extend struct initialization.
(enum arg_opt_ids): New entry: ARG_WAIT_TIMEOUT.
(pam_poldi_options_cb): Handle ARG_WAIT_TIMEOUT.
(wait_for_card): New variables; TIMEOUT, WAIT; initialize them
depending on FAKE and PAM_POLDI_OPT.TIMEOUT; pass TIMEOUT and WAIT
to card_init.
(lookup_key): Use usersdb_lookup_by_username() instead of
username_to_serialno(); remove const attribute from SERIALNO.
(wait_for_card): Remove const attribute from SERIALNO.
(pam_sm_authenticate): Likewise.
(pam_sm_authenticate): Use usersdb_lookup_by_serialno() instead of
serialno_to_username(); remove const attribute from account.

13 years ago2005-07-13 Moritz Schulte <moritz@g10code.com>
Moritz Schulte [Wed, 27 Jul 2005 16:58:05 +0000 (16:58 +0000)]
2005-07-13  Moritz Schulte  <moritz@g10code.com>

* configure.ac: Bump version number up to 0.3-cvs.

src/common

2005-07-26  Moritz Schulte  <moritz@g10code.com>

* support.c (username_to_serialno): Renamed function to ...
(usersdb_lookup_by_username): ... this; changed callers.
(serialno_to_username): Renamed function to ...
(usersdb_lookup_by_serialno): ... this; changed callers.
(usersdb_translate): Remove const attribute for FOUND argument;
only fill FOUND if non-NULL.
(usersdb_lookup_by_serialno): Remove const attreibute for USERNAME
argument.
(usersdb_lookup_by_username): Remove const attreibute for SERIALNO
argument.
* support.h: Updated API.

* card.c: Some cosmetic changes.

2005-07-13  Moritz Schulte  <moritz@g10code.com>

* defs.h.in (POLDI_OLD_CARD_KEY_RETRIVAL_EXPLANATION): New symbol.
(POLDI_PIN2_QUERY_MSG, POLDI_PIN3_QUERY_MSG): Change strings.

* card.c: Include <assert.h>
(card_info): New API, return card version information, if
requested.
* card.h: Update card_info() API.

src/ctrl

2005-07-26  Moritz Schulte  <moritz@g10code.com>

* poldi-ctrl.c (cmd_test): Remove unnecessary const attributes and
cast.
(cmd_dump): Likewise.
(cmd_remove_user): Likewise.
(cmd_set_key): Likewise.
Updated to use new support.h API.
(cmd_add_user): Fail, if specified serial number does already
exist in database.
(cmd_add_user): Fail, if specified user does not exist on system.
(poldi_ctrl_options_cb): Better interaction with jnlib in respect
to error propagation.
(key_file_remove): Do not return error in case of ENOENT.

13 years ago2005-07-13 Moritz Schulte <moritz@g10code.com>
Moritz Schulte [Wed, 13 Jul 2005 17:24:41 +0000 (17:24 +0000)]
2005-07-13  Moritz Schulte  <moritz@g10code.com>

* configure.ac: Bump version number up to 0.3-cvs.

src/libscd

2005-07-13  Moritz Schulte  <moritz@g10code.com>

* apdu.c, apdu.h, ccid-driver.c, ccid-driver.h, iso7816.c,
iso7816.h, tlv.c, tlv.h: Updated from GnuPG.

src/common

2005-07-13  Moritz Schulte  <moritz@g10code.com>

* defs.h.in (POLDI_OLD_CARD_KEY_RETRIVAL_EXPLANATION): New symbol.
(POLDI_PIN2_QUERY_MSG, POLDI_PIN3_QUERY_MSG): Change strings.

* card.c: Include <assert.h>
(card_info): New API, return card version information, if
requested.
* card.h: Update card_info() API.

src/ctrl

2005-07-13  Moritz Schulte  <moritz@g10code.com>

* poldi-ctrl.c: Adjust to new card_info() API, use version
information in order to figure out if CHV3 is necessary for public
key retrival.

src/pam

2005-07-13  Moritz Schulte  <moritz@g10code.com>

* pam_poldi.c (wait_for_card): Adjust to new card_info() API.

14 years ago2004-11-29 Moritz Schulte <moritz@g10code.com> release-0.2
Moritz Schulte [Mon, 29 Nov 2004 18:41:53 +0000 (18:41 +0000)]
2004-11-29  Moritz Schulte  <moritz@g10code.com>

* THANKS: New file.
* configure.ac: Bumped version number up to 0.2; released.

14 years ago2004-11-29 Moritz Schulte <moritz@g10code.com>
Moritz Schulte [Mon, 29 Nov 2004 18:39:34 +0000 (18:39 +0000)]
2004-11-29  Moritz Schulte  <moritz@g10code.com>

* poldi-ctrl.c: Fix contact address.

14 years ago2004-11-27 Moritz Schulte <moritz@g10code.com>
Moritz Schulte [Sat, 27 Nov 2004 11:48:55 +0000 (11:48 +0000)]
2004-11-27  Moritz Schulte  <moritz@g10code.com>

* configure.ac: Bumped version up to 0.2-cvs2.

14 years ago2004-11-27 Moritz Schulte <moritz@g10code.com>
Moritz Schulte [Sat, 27 Nov 2004 11:48:42 +0000 (11:48 +0000)]
2004-11-27  Moritz Schulte  <moritz@g10code.com>

* poldi-ctrl.c (cmd_test): Adjust card_init caller.
(cmd_dump): Likewise.
(cmd_set_key): Likewise.
Implement require-card-switch option.
(cmd_test): Do not require that the uid of the current process is
equal to the one of the user to test authentication for.

14 years ago2004-11-27 Moritz Schulte <moritz@g10code.com>
Moritz Schulte [Sat, 27 Nov 2004 11:48:29 +0000 (11:48 +0000)]
2004-11-27  Moritz Schulte  <moritz@g10code.com>

* pam_poldi.c (wait_for_card): Adjust card_init caller.
Implement require_card_switch option.

14 years ago2004-11-27 Moritz Schulte <moritz@g10code.com>
Moritz Schulte [Sat, 27 Nov 2004 11:46:02 +0000 (11:46 +0000)]
2004-11-27  Moritz Schulte  <moritz@g10code.com>

* options.c (options_parse_conf): Do not fail if file does not
exist.

* card.c (wait_for_new_card): Renamed to ...
(wait_for_card): ... this; new argument: require_card_switch;
adjust function accordingly; adjust callers.
(card_init): Rename argument `wait_for_card' to `wait'; new
argument: require_card_switch; pass to wait_for_card.
* card.h (card_open): Update declaration.

14 years ago(no commit message)
Moritz Schulte [Tue, 23 Nov 2004 16:35:33 +0000 (16:35 +0000)]

14 years ago(no commit message)
Moritz Schulte [Tue, 23 Nov 2004 16:35:15 +0000 (16:35 +0000)]

14 years ago(no commit message)
Moritz Schulte [Tue, 23 Nov 2004 16:35:05 +0000 (16:35 +0000)]

14 years ago2004-11-13 Moritz Schulte <moritz@g10code.com>
Moritz Schulte [Tue, 23 Nov 2004 16:34:48 +0000 (16:34 +0000)]
2004-11-13  Moritz Schulte  <moritz@g10code.com>

* support.c (file_to_string): NUL-terminate string.
* card.c (wait_for_new_card): New function, merged from gscutils ...
(card_init): ... use it here.

14 years ago(no commit message)
Moritz Schulte [Tue, 9 Nov 2004 17:46:19 +0000 (17:46 +0000)]