poldi.git
9 years agoFixed some buglets. dev-0.4
Werner Koch [Mon, 3 Aug 2009 13:21:15 +0000 (13:21 +0000)]
Fixed some buglets.

9 years agoAdd new item.
Werner Koch [Mon, 3 Aug 2009 13:11:46 +0000 (13:11 +0000)]
Add new item.

10 years agoupdated po. release-0.4
Moritz Schulte [Fri, 8 Aug 2008 00:28:49 +0000 (00:28 +0000)]
updated po.

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

* configure.ac: Bump version number up to 0.4.

10 years agoChangeLog:
Moritz Schulte [Fri, 8 Aug 2008 00:24:49 +0000 (00:24 +0000)]
ChangeLog:

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

* EXPERIMENTAL: New file.
* Makefile.am (EXTRA_DIST): Updated.

src/scd/ChangeLog:

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

* scd.c (scd_serialno): Removed debugging message.

src/pam/auth-support/ChangeLog:

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

* getpin-cb.c (keypad_mode_enter): New argument: INFO. Send INFO
to conv_tell() instead of the old hard-coded string...
(getpin_cb): ... change caller.
(getpin_cb): Only frob info string if it is not "PIN", use
hard-coded string as argument to query_user()/keypad_mode_enter()
if the info string was "PIN".
Use xtrymalloc/xfree instead of gcry_malloc/gcry_free.

10 years agosrc/ChangeLog:
Moritz Schulte [Thu, 7 Aug 2008 23:10:34 +0000 (23:10 +0000)]
src/ChangeLog:

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

* poldi.h: Also include <locale.h>, not only <libintl.h>.

src/scd/ChangeLog:

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

* scd.c (scd_reset): Removed
(restart_scd): New static function.
(scd_disconnect): Call restart_scd -- it seems, GnuPG does also
send a RESTART command after card access.
* scd.h: Adjust declaration.
Include "util/simplelog.h", instead of <util/simplelog.h>.
Do not include "assuan.h".

src/pam/ChangeLog:

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

* pam_poldi.c (pam_sm_authenticate): Removed second call to
log_set_flags().  Some cosmetic changes.
(pam_sm_authenticate): Only free username_authenticated in case
the authentication method returns success. Use xfree instead of
free. Changed two messages.
(destroy_context): Do not free ctx->cookie -- that's the
responsibility of the authentication methods _deinit function.

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

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

* auth-x509.c: Some minor cosmetic changes.
(extract_username_from_cert): New parameter: poldi_ctx_t ctx....
(auth_method_x509_auth_do): ... change caller.
(extract_username_from_cert): Added some logging.

* dirmngr.c (struct lookup_parm_s): New member: dirmngr_ctx_t ctx.

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

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

* usersdb.c: Include defs-localdb.h instead of util/defs.h.
* key-lookup.c: Likewise.

* Makefile.am (libpoldi_auth_localdb_a_SOURCES): Added
defs-localdb.h.

* defs-localdb.h: New file.

* auth-localdb.c (auth_method_localdb_auth_do): Use xfree instead
of free for card_username.

* usersdb.c: Include <string.h>. Use strtok_r instead of
strtok (requires new local variable save_ptr). Improved some
comments. Do not include <errno.h>; use gpg_error_from_syserror()
instead of gpg_error_from_errno().
(usersdb_lookup_cb): Use xtrystrdup instead of strdup.
(usersdb_lookup_by_serialno, usersdb_lookup_by_username): Use
xfree instead of free.

src/util/ChangeLog:

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

* defs.h.in (POLDI_USERS_DB_FILE, POLDI_KEY_DIRECTORY): Removed
definitions.

* usersdb.c, usersdb.h: Removed files.

* defs.h.in (POLDI_OLD_CARD_KEY_RETRIVAL_EXPLANATION): Removed
definition.
(POLDI_PIN2_QUERY_MSG): Likewise.
(POLDI_PIN3_QUERY_MSG): Likewise.

10 years ago2008-08-08 Moritz <moritz@gnu.org>
Moritz Schulte [Thu, 7 Aug 2008 23:07:08 +0000 (23:07 +0000)]
2008-08-08  Moritz  <moritz@gnu.org>

* de.po: Improved.

10 years ago2008-08-07 Moritz <moritz@gnu.org>
Moritz Schulte [Thu, 7 Aug 2008 23:05:38 +0000 (23:05 +0000)]
2008-08-07  Moritz  <moritz@gnu.org>

* poldi.conf.skel: New file.
* Makefile.am (install-conf-skeleton): Install poldi.conf.skel.
* users.skel: Removed example entry.

10 years agoChangeLog:
Moritz Schulte [Thu, 7 Aug 2008 15:22:17 +0000 (15:22 +0000)]
ChangeLog:

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

* TODO: Updated.

src/util/ChangeLog:

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

* defs.h.in (POLDI_OLD_CARD_KEY_RETRIVAL_EXPLANATION): Removed
definition.
(POLDI_PIN2_QUERY_MSG): Likewise.
(POLDI_PIN3_QUERY_MSG): Likewise.

src/pam/ChangeLog:

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

* pam_poldi.c (pam_sm_authenticate): Removed second call to
log_set_flags().
Some cosmetic changes.

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

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

* auth-localdb.c (auth_method_localdb_auth_do): Use xfree instead
of free for card_username.

* usersdb.c: Include <string.h>. Use strtok_r instead of
strtok (requires new local variable save_ptr). Improved some
comments. Do not include <errno.h>; use gpg_error_from_syserror()
instead of gpg_error_from_errno().
(usersdb_lookup_cb): Use xtrystrdup instead of strdup.
(usersdb_lookup_by_serialno, usersdb_lookup_by_username): Use
xfree instead of free.

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

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

* auth-x509.c: Some minor cosmetic changes.
* dirmngr.c (struct lookup_parm_s): New member: dirmngr_ctx_t ctx.

src/ctrl/ChangeLog:

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

* poldi-ctrl.c (cmd_dump): Removed (disabled) workaround for older
cards for now.

10 years agoremoved another entry for nonexisting file
Moritz Schulte [Mon, 4 Aug 2008 09:23:02 +0000 (09:23 +0000)]
removed another entry for nonexisting file

10 years agoremoved entry for nonexisting file
Moritz Schulte [Mon, 4 Aug 2008 09:20:52 +0000 (09:20 +0000)]
removed entry for nonexisting file

10 years ago2008-08-04 Moritz <moritz@gnu.org>
Moritz Schulte [Mon, 4 Aug 2008 09:19:20 +0000 (09:19 +0000)]
2008-08-04  Moritz  <moritz@gnu.org>

* Makefile.am (SUBDIRS): Added po.

10 years agoChangeLog:
Moritz Schulte [Mon, 4 Aug 2008 09:17:11 +0000 (09:17 +0000)]
ChangeLog:

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

* configure.ac: Removed checks for libusb (we use scdaemon!).

10 years agomissing makefile
Moritz Schulte [Mon, 4 Aug 2008 09:13:58 +0000 (09:13 +0000)]
missing makefile

10 years agoChangeLog:
Moritz Schulte [Mon, 4 Aug 2008 09:04:34 +0000 (09:04 +0000)]
ChangeLog:

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

* config.h.in: Added ENABLE_NLS symbol.

2008-08-03  gettextize  <bug-gnu-gettext@gnu.org>

* Makefile.am (EXTRA_DIST): Add config.rpath.
* configure.ac (AC_CONFIG_FILES): Add po/Makefile.in.

m4/ChangeLog:

2008-08-03  gettextize  <bug-gnu-gettext@gnu.org>

* iconv.m4: New file, from gettext-0.17.
* lib-ld.m4: New file, from gettext-0.17.
* lib-link.m4: New file, from gettext-0.17.
* lib-prefix.m4: New file, from gettext-0.17.
* nls.m4: New file, from gettext-0.17.
* po.m4: New file, from gettext-0.17.
* progtest.m4: New file, from gettext-0.17.
* Makefile.am (EXTRA_DIST): Add the new files.

src/ctrl/ChangeLog:

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

* poldi-ctrl.c: Mark strings for i18n.

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

* poldi-ctrl.c (i18n_cb): New function.
(main): call simpleparse_set_i18n_cb.

src/scd/ChangeLog:

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

* scd.c: Mark strings for i18n.

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

* scd.c (scd_pksign): Remove getpin parameter from scd_pksign.
(inq_needpin): Return error code in case no pincb has been
installed in ctx.
(agent_connect_from_infostr): Don't forget to do error checking
after call to xtrystrdup.
(scd_connect): Disable code for system daemon for now.

* scd.c (scd_set_pincb): New function.

* scd.h (scd_pincb_t): New type; declare scd_set_pincb.
Remove getpin argument from scd_pksign.

* scd.c: Do not include i18n.h.
(scd_disconnect): Declare void.
Change return type of most functions from int to gpg_error_t.

src/pam/ChangeLog:

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

* pam_poldi.c (pam_sm_authenticate): New variable:
getpin_cb_data. Call scd_set_pincb().
Include "getpin-cb.h".

* auth-methods.h: Removed some disabled code.

* pam_poldi.c: Marked strings for i18n.

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

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

* auth-x509.c: Mark strings for i18n.
(auth_method_x509_auth_do): Adjust to new scd_pksign() interface;
removed cb_data variable.
Do not include "getpin-cb.h".

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

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

* auth-localdb.c (auth_method_localdb_auth_do): Adjusted to new
scd_pksign() interface, removed variable cb_data.
Do not include "getpin-cb.h".

* key-lookup.c (key_lookup_by_serialno): Use xfree instead of
free.
Mark strings for i18n.

* usersdb.c: Replaced calls to gcry_error() with calls to
gpg_error(). Replaced calls to gpg_error_from_errno() with calls
to gpg_error_from_syserror().

src/pam/ChangeLog:

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

* pam_poldi.c (pam_sm_authenticate): New variable:
getpin_cb_data. Call scd_set_pincb().
Include "getpin-cb.h".

* auth-methods.h: Removed some disabled code.

* pam_poldi.c: Marked strings for i18n.

src/pam/auth-support/ChangeLog:

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

* getpin-cb.h: Include "ctx.h".

src/util/ChangeLog:

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

* support.c (file_to_string_internal, sexp_to_string): Use xfree()
instead of free().

* optparse.c, optparse.h: Removed.
* simpleparse.c: Marked strings for i18n.

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

* Makefile.am (poldi_util_SOURCES): Removed i18n.h.
(i18n.h): Removed file.

* simpleparse.c: Include support.h.
* support.h (conversation_cb_t): Removed unused type.
(enum conversation_type_t): Likewise.
* simpleparse.c (my_strlen): Moved funtion ...
* support.c (my_strlen): ... here.

am/ChangeLog:

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

* cmacros.am: Added LOCALEDIR defintion.

po/ChangeLog:

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

* POTFILES.in: Updated.

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

* de.po: Added german translation.

2008-08-03  gettextize  <bug-gnu-gettext@gnu.org>

* Makefile.in.in: New file, from gettext-0.17.
* boldquot.sed: New file, from gettext-0.17.
* en@boldquot.header: New file, from gettext-0.17.
* en@quot.header: New file, from gettext-0.17.
* insert-header.sin: New file, from gettext-0.17.
* quot.sed: New file, from gettext-0.17.
* remove-potcdate.sin: New file, from gettext-0.17.
* Rules-quot: New file, from gettext-0.17.
* POTFILES.in: New file.

10 years agoAdded gettext.m4
Moritz Schulte [Fri, 25 Jul 2008 00:13:43 +0000 (00:13 +0000)]
Added gettext.m4

10 years agomissing file
Moritz Schulte [Thu, 24 Jul 2008 21:10:55 +0000 (21:10 +0000)]
missing file

10 years agochanged comment
Moritz Schulte [Sun, 20 Jul 2008 19:50:40 +0000 (19:50 +0000)]
changed comment

10 years ago2008-07-20 Moritz <moritz@gnu.org>
Moritz Schulte [Sun, 20 Jul 2008 19:50:23 +0000 (19:50 +0000)]
2008-07-20  Moritz  <moritz@gnu.org>

* dirmngr.c: Removed two unused struct definitions.

10 years agoremove files
Moritz Schulte [Sun, 20 Jul 2008 19:48:01 +0000 (19:48 +0000)]
remove files

10 years ago2008-07-20 Moritz <moritz@gnu.org>
Moritz Schulte [Sun, 20 Jul 2008 19:47:42 +0000 (19:47 +0000)]
2008-07-20  Moritz  <moritz@gnu.org>

* sexputil, sexp-parse.h: Removed files.
* Makefile.am: dito.

10 years ago2008-07-20 Moritz <moritz@gnu.org>
Moritz Schulte [Sun, 20 Jul 2008 19:34:50 +0000 (19:34 +0000)]
2008-07-20  Moritz  <moritz@gnu.org>

* parse-test.c: Adjusted to new simpleparse API.

10 years agomore missing files
Moritz Schulte [Sun, 20 Jul 2008 19:28:55 +0000 (19:28 +0000)]
more missing files

10 years agomissing file
Moritz Schulte [Sun, 20 Jul 2008 19:27:47 +0000 (19:27 +0000)]
missing file

10 years agomissing file
Moritz Schulte [Sun, 20 Jul 2008 19:27:15 +0000 (19:27 +0000)]
missing file

10 years agomissing directory
Moritz Schulte [Sun, 20 Jul 2008 19:25:22 +0000 (19:25 +0000)]
missing directory

10 years agoChangeLog:
Moritz Schulte [Sun, 20 Jul 2008 19:23:31 +0000 (19:23 +0000)]
ChangeLog:

2008-07-20  Moritz  <moritz@gnu.org>

* configure.ac: Removed AC_DEFINE for jnlib
(AC_OUTPUT): removed src/jnlib/Makefile, src/pam-test/Makefile;
added tests/Makefile.

src/ChangeLog:

2008-07-14  Moritz  <moritz@gnu.org>

* Makefile.am (SUBDIRS): Removed pam-test; added poldi.h to
EXTRA_DIST.

src/ctrl/ChangeLog:

2008-07-20  Moritz  <moritz@gnu.org>

* Makefile.am: removed jnlib.

* poldi-ctrl.c: New static variables: loghandle, scd_ctx,
scd_cardinfo. Setup loghandle and scdaemon context in main(), thus
the cmd implementation functions don't need to it anymore.
Now uses simplelog API.

2008-07-14  Moritz  <moritz@gnu.org>

* poldi-ctrl.c: Don't include pwd.h and util/optparse.h.  Include:
util/simpleparse.h.
(struct poldi_ctrl_opt): Remove member cmd_print_config.  Replace
enum_arg_opt_ids list with enum opt_ids.  Replace ARGPARSE_OPTS
definitions with simpleparse_opt_spec_t opt_specs[].
(my_strusage): Dropped functions.
(poldi_ctrl_options_cb): Adjust to new simpleparse interface.
Throughout: adjust calls to scd_connect() to new API (providing
logging callback).
(cmd_print_config): Dropped function. I don't think this
functionality is required. Instead do: cat poldi.conf.
(main): use new simpleparse subsystem, not jnlibs ARGPARSE, do not
use jnlib logging interface.

src/scd/ChangeLog:

2008-07-20  Moritz  <moritz@gnu.org>

* scd.c: Include simplelog.h and poldi.h.
(struct scd_context): New member: loghandle.
Use xtrystrdup instead of strdup.
Use xtrymalloc instead of malloc.
Use xfree instead of free.
Use log_msg_* functions.
Pass loghandle to several functions.
(struct inq_needpin_s): Replace assuan_ctx_t ctx member with
scd_context_t ctx. Adjusted callers.

* scd.h: Include simplelog.h and poldi.h; adjusted for new
scd_connect API.

* scd.c (get_serialno_cb): Do not call out_of_core(); just return
errno on oom.

src/assuan/ChangeLog:

2008-06-14  Moritz  <moritz@gnu.org>

* Makefile.am: Added mkerrors file to EXTRA_DIST.

src/pam/ChangeLog:

2008-07-14  Moritz  <moritz@gnu.org>

* auth-methods.h: Include simpleparse.h instead of argparse.h.
(auth_method_func_parsecb_t): Removed type.
(struct auth_method_parse_cookie): New struct.
(struct auth_method_s): Dropped members func_parsecb, arg_otps,
new members opt_specs, parsecb.

* pam_poldi.c: Include poldi.h, simplelog.h, simpleparse.h instead
of not config.h, jnlib/logging.h, optparse.h.
Replace parsing/logging related code in favour of new
simplelog/simpleparse subsystem.

src/auth-method-x509/ChangeLog:

2008-07-20  Moritz  <moritz@gnu.org>

* dirmngr.c: Include poldi.h and simplelog.h.
(struct dirmngr_ctx_s): New member: log_handle.
(dirmngr_connect): Tages new parameter: log_handle; insteall
log_handle in new context.
(struct inq_cert_parm_s): Replaced assuan_context_t ctx member
with dirmngr_ctx_t ctx.
* dirmngr.h: Adjusted for new dirmngr_connect API; include
simplelog.h.

2008-07-14  Moritz  <moritz@gnu.org>

* auth-x509.c: Include simpleparse.h, simplelog.h, poldi.h.
Use x* memory allocator.
Use simpleparse subsystem, not ARGPARSE, adjust parsing cb, etc.
Use simplelog subsystem.

src/util/ChangeLog:

2008-07-20  Moritz  <moritz@gnu.org>

* Makefile.am (poldi_util_SOURCES): added util-local.h,
simplelog.c, simplelog.h, simpleparse.c, simpleparse.h,
filenames.c, filenames.h.
* util.h: Stripped: removed jnlib includes, unused GCC macros,
memory manager definitions, unused function declarations.
* convert.c: Removed unused functions.
* support.c: Removed jnlib includes, include poldi.h.
* util-local.h: New file.
* membuf.c, membuf.c: Remerged from GnuPG.
* membuf.c: Include util-local.h, not config.h.
* usersdb.c: Don't include jnlib/stringhelp.h.
* filenames.c, filenames.h, simplelog.c, simplelog.h,
simpleparse.c, simpleparse.h: New files.

10 years ago2008-05-25 Moritz <moritz@gnu.org>
Moritz Schulte [Sat, 14 Jun 2008 15:04:28 +0000 (15:04 +0000)]
2008-05-25  Moritz  <moritz@gnu.org>

Some cleanups, added GPL3 headers.

* pam_poldi.c: New conf options: arg_scdaemon_socket, arg_scdaemon_program.
(pam_poldi_options_cb): Handle new options.
(create_context): Initialize new context struct members.
(destroy_context): Release them.
(pam_sm_authenticate): Pass scdaemon_socket and scdaemon_program to scd_connect.
(auth_method_lookup): Return -1 in case the auth method could not be found.

10 years agosrc/scd/ChangeLog:
Moritz Schulte [Sun, 25 May 2008 14:04:41 +0000 (14:04 +0000)]
src/scd/ChangeLog:

2008-05-24  Moritz  <moritz@gnu.org>

* scd.c (scd_connect): Slightly rewritten; now allows for
connecting to specified scdaemon socket directly.
* scd.h (scd_connect): New parameter: scdaemon_socket.

src/pam-test/ChangeLog:

2008-05-25  Moritz  <moritz@gnu.org>

* pam-test.c: Added GPL3 header.

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

2008-05-25  Moritz  <moritz@gnu.org>

Minor cleanups.

src/pam/ChangeLog:

2008-05-25  Moritz  <moritz@gnu.org>

Some cleanups, added GPL3 headers.

* pam_poldi.c: New conf options: arg_scdaemon_socket, arg_scdaemon_program.
(pam_poldi_options_cb): Handle new options.
(create_context): Initialize new context struct members.
(destroy_context): Release them.
(pam_sm_authenticate): Pass scdaemon_socket and scdaemon_program to scd_connect.
(auth_method_lookup): Return -1 in case the auth method could not be found.

src/pam/auth-support/ChangeLog:

2008-05-25  Moritz  <moritz@gnu.org>

Some cleanups, added GPL 3 headers.

* ctx.h: Added comments.

* getpin-cb.c (query_user): Make sure that returned buffer is
padded with zeros.  It seems (at least some) zero padding is
required by scdaemon (utf8 related).

* ctx.h (struct poldi_ctx_s): New members: scdaemon_socket,
scdaemon_program.

* getpin-cb.c (keypad_mode_enter, keypad_mode_leave): changed user
messages.
Include "i18n.h", not <i18n.h>.

10 years ago2008-05-24 Moritz <moritz@gnu.org>
Moritz Schulte [Sat, 24 May 2008 20:58:12 +0000 (20:58 +0000)]
2008-05-24  Moritz  <moritz@gnu.org>

Some build fixes related to Assuan (mostly correctings include paths in Makefile.am's).

10 years agoChangeLog:
Moritz Schulte [Fri, 2 May 2008 23:14:45 +0000 (23:14 +0000)]
ChangeLog:

2008-05-03  Moritz  <moritz@gnu.org>

* configure.ac: Added tests for included libassuan.  Removed code
for installed libassuan.

src/ChangeLog:

2008-05-02  Moritz  <moritz@gnu.org>

* Makefile.am: Build assuan.

* assuan: New directory, contains a copy of libassuan source.

src/assuan/ChangeLog:

2008-05-03  Moritz  <moritz@gnu.org>

* assuan.h: Adjusted definitions for Poldi.

src/scd/ChangeLog:

2008-05-01  Moritz  <moritz@gnu.org>

* Makefile.am: Build a shared and a nonshared version.

src/util/ChangeLog:

2008-05-01  Moritz  <moritz@gnu.org>

* Makefile.am: Build a shared and a nonshared version.

src/jnlib/ChangeLog:

2008-05-01  Moritz  <moritz@gnu.org>

* Makefile.am: Build a shared and a nonshared version.

src/pam/ChangeLog:

2008-05-03  Moritz  <moritz@gnu.org>

* Makefile.am: Link pam_poldi.so against shared library version of
internal libraries.  Link against internal libassuan.  Use gcc for
linking, not ld.

10 years agosrc/pam/auth-method-x509:
Moritz Schulte [Sun, 20 Apr 2008 22:38:53 +0000 (22:38 +0000)]
src/pam/auth-method-x509:

2008-04-21  Moritz  <moritz@gnu.org>

* auth-x509.c (auth_method_x509_auth_do): New local variable:
cb_data, fill and pass to scd_pksign instead of conv object
directly.

src/pam/auth-method-localdb:

2008-04-21  Moritz  <moritz@gnu.org>

* auth-localdb.c (auth_method_localdb_auth_do): New local
variable: cb_data, fill and pass to scd_pksign instead of conv
object directly.

src/pam/auth-support:

2008-04-21  Moritz  <moritz@gnu.org>

* getpin-cb.c: Include "getpin-cb.h"; heavily stripped, needs more
thinking.

2008-04-20  Moritz  <moritz@gnu.org>

* getpin-cb.h: New struct: getpin_cb_data.

10 years ago2008-04-20 Moritz <moritz@gnu.org>
Moritz Schulte [Sat, 19 Apr 2008 23:03:31 +0000 (23:03 +0000)]
2008-04-20  Moritz  <moritz@gnu.org>

* poldi.texi: Several smaller fixes.

10 years agoconf:
Moritz Schulte [Sun, 13 Apr 2008 17:13:52 +0000 (17:13 +0000)]
conf:

2008-04-13  Moritz  <moritz@gnu.org>

* README.keys: Cosmetics.

src/pam/auth-method-x509:

2008-04-13  Moritz  <moritz@gnu.org>

* auth-x509.c (auth_method_x509_auth_do): Initialize DIRMNGR to
NULL.
(auth_method_x509_parsecb): Added missing "break".
(email_address_match): Fix logic.
(auth_method_x509_auth_do): on success, set
(auth_method_x509_auth_do): Pass ctx->conv to scd_pksign, not ctx.

*username_authenticated, only free card_username in case of error.
* dirmngr.c (dirmngr_connect): Rename parameter PATH to SOCK.
* dirmngr.h: Likewise.
* dirmngr.c (dirmngr_connect_socket): Removed dummy function.
* dirmngr.h: Likewise.
* dirmngr.c (dirmngr_connect): Use assuan_socket_connect to
connect to dirmngr, not connect_pipe().
(connect_pipe): Removed function.

doc:

2008-04-13  Moritz  <moritz@gnu.org>

* poldi.texi: Many improvements (primarily in respect to X509
auth).

10 years agoAdded TODO list
Moritz Schulte [Sun, 13 Apr 2008 12:26:13 +0000 (12:26 +0000)]
Added TODO list

10 years agopreviously commited wrong Makefile.am ...
Moritz Schulte [Sun, 6 Apr 2008 22:20:32 +0000 (22:20 +0000)]
previously commited wrong Makefile.am ...

10 years ago2008-04-05 Moritz <moritz@gnu.org>
Moritz Schulte [Sun, 6 Apr 2008 22:12:02 +0000 (22:12 +0000)]
2008-04-05  Moritz  <moritz@gnu.org>

* configure.ac: Renamed auth method simpledb to localdb.  Removed
auth method test.  Adjust AC_CONFIG_FILES to new source tree
layout.

conf/

2008-04-05  Moritz  <moritz@gnu.org>

* README.keys, users.skel: New files.
* Makefile.am (install-conf-skeleton): use "localdb" prefix;
install new files.

src/

2008-04-05  Moritz  <moritz@gnu.org>

Renamed directory "common" to "util".
Renamed directory "test" to "pam-test".
Removed directory "dirmngr".
* Makefile.am: adjusted.

src/ctrl/

2008-04-05  Moritz  <moritz@gnu.org>

* poldi-ctrl.c (cmd_dump): Use bin2hex instead of convert_to_hex.
Removed usersdb manipulating functions.

src/scd/

2008-04-05  Moritz  <moritz@gnu.org>

* scd.c: Include "util/support.h".
(scd_pksign): Use bin2hex.
(scd_pksign): Removed unused code.

2008-04-05  Moritz  <moritz@gnu.org>

* scd.c, scd.h: Minor changes/cleanup.
* poldi-scd.c, poldi-scd.h: Removed.

src/pam-test/

2007-12-15  Moritz Schulte  <moritz@g10code.com>

* pam-test.c: Slightly polished, uses getopt now.

src/pam/

2008-04-05  Moritz  <moritz@gnu.org>

* pam_poldi.so: Slightly reorganized.

* auth-method-localdb, auth-method-x509, auth-support: New
directories.
* auth-simpledb.c, auth-test.c, auth-x509.c, conv.c, conv.h,
getpin-cb.c, pam-util.c, pam-util.h, wait-for-card.c,
wait-for-card.h: Removed (or rather: moved into other
directories).

* auth-methods.h: Mostly rewritten.

2008-02-21  Moritz Schulte  <moritz@gnu.org>

* Makefile.am: Use new variables SCD, DIRMNGR to implement
conditional linking of scdaemon/dirmngr.

* auth-methods.h: Include <gpg-error.h>, <jnlib/argparse.h>; new
types: auth_method_func_init_t, auth_method_func_deinit_t,
auth_method_func_parsecb_t, auth_method_func_auth_t;
auth_method_t; removed type: auth_method_func_t.

2008-02-15  Moritz Schulte  <moritz@gnu.org>

* auth-x509.c (email_address_match)
(email_address_extract_account): New functions.
(extract_username_from_cert): Rewritten to use above function.

doc/

2008-04-05  Moritz  <moritz@gnu.org>

* poldi.tex: Updated and improved.

11 years ago2008-01-04 Moritz Schulte <moritz@gnu.org>
Moritz Schulte [Fri, 4 Jan 2008 00:06:20 +0000 (00:06 +0000)]
2008-01-04  Moritz Schulte  <moritz@gnu.org>

* pam_poldi.c (arg_opts): Cosmetic change in description of
logfile option.

11 years ago2008-01-04 Moritz Schulte <moritz@gnu.org>
Moritz Schulte [Fri, 4 Jan 2008 00:05:39 +0000 (00:05 +0000)]
2008-01-04  Moritz Schulte  <moritz@gnu.org>

* poldi.texi: Started with a major reorganization of this manual.

11 years agosrc/test/ChangeLog:
Moritz Schulte [Sat, 15 Dec 2007 16:15:35 +0000 (16:15 +0000)]
src/test/ChangeLog:

2007-12-15  Moritz Schulte  <moritz@g10code.com>

* pam-test.c: Slightly polished, uses getopt now.

src/dirmngr/ChangeLog:

2007-12-15  Moritz Schulte  <moritz@g10code.com>

* dirmngr.c (unhexify_fpr): Removed unused function.

* poldi-dirmngr.h: Declare poldi_dirmngr_disconnect void.

* poldi-dirmngr.c: Include poldi-dirmngr.h.

* dirmngr.c (inq_certificate): Removed unused function.
(struct run_command_parm_s): Removed unused struct.
(extract_socket_from_infostr): Use free instead of xfree.
(connect_socket): Likewise.
(dirmngr_connect): Use malloc/free instead of xtrymalloc/xfree.
(dirmngr_disconnect): Use free instead of xfree.
(isvalid_status_cb): Removed disabled/unused function.
(inq_cert): Simplify code: merge several "else if" branches into one.
(dirmngr_isvalid): Removed disabled/unused function.

src/common/ChangeLog:

2007-12-15  Moritz Schulte  <moritz@g10code.com>

* poldi-ctx.h (struct poldi_ctx_s): Remove const attribute from
member: logfile. New member: dirmngr_socket.
Added copyright notice.

* util.h: Removed unused replacement dummy function for ttyname().

* sexputil.c (cmp_simple_canon_sexp): Removed unused function.
(make_simple_sexp_from_hexstr): Likewise.

* util.h (xmalloc_secure_clear, xmalloc_clear): Removed these
compat macro for gpg 1.4.
* util.h: Removed declaration for cmp_simple_canon_sexp.

src/scd/ChangeLog:

2007-12-15  Moritz Schulte  <moritz@g10code.com>

* scd.c (scd_release_cardinfo): Don't forget to release
PUBKEY_URL.
(inq_needpin): Use xtrymalloc_secure instead of gcry_malloc_secure
directly (it's more consistent this way, I think).
Removed disabled getattr related code.
(agent_connect_from_infostr): Use strdup/free instead of
xstrdup/xfree.

src/pam/ChangeLog:

2007-12-15  Moritz Schulte  <moritz@g10code.com>

* pam_poldi.c (enum arg_opt_ids): New entry for arg_dirmngr_socket.
(arg_opts): Likewise.
(pam_poldi_options_cb): Handle arg_dirmngr_socket.  Use strdup
instead of xstrdup.
(destroy_context, create_context): New functions ...
(pam_sm_authenticate): ... use them here.

* auth-x509.c: Include <config.h>.
(auth_method_x509): Removed pubkey url overwriting debug code.
(auth_method_x509): modified conv_tell interaction with application.

* getpin-cb.c (getpin_cb): Use gcry_free instead of xfree.
(agent_popup_message_start, agent_popup_message_stop): Declare static.
(agent_popup_message_start): Removed extra args.
(agent_popup_message_stop): Return error code.
Do not include jnlib/xmalloc.h.

11 years ago2007-12-13 Moritz Schulte <moritz@g10code.com>
Moritz Schulte [Thu, 13 Dec 2007 22:24:10 +0000 (22:24 +0000)]
2007-12-13  Moritz Schulte  <moritz@g10code.com>

* configure.ac (AC_CONFIG_FILES): New: src/test/Makefile.

2007-12-13  Moritz Schulte  <moritz@g10code.com>

* test: New directory.
* Makefile.am (SUBDIRS): Added test.

2007-12-13  Moritz Schulte  <moritz@g10code.com>

* pam-test.c, Makefile.am: New files.

11 years agosrc/common/ChangeLog:
Moritz Schulte [Sun, 25 Nov 2007 21:56:44 +0000 (21:56 +0000)]
src/common/ChangeLog:

2007-11-25  Moritz  <moritz@g10code.com>

* support.h: Declare function file_to_binstring.
* support.c (file_to_string_internal): New function, based in
former function file_to_string.
(file_to_string): is now a wrapper on top of
file_to_string_internal.
(file_to_binstring): New function, wrapper on top of
file_to_string_internal.

src/dirmngr/ChangeLog:

2007-11-25  Moritz  <moritz@g10code.com>

* dirmngr.c (dirmngr_isvalid): Disabled function.
(isvalid_status_cb): Likewise.
(inq_certificate): Likewise.
(struct inq_certificate_parm_s): Disable struct.
(struct isvalid_status_parm_s): Likewise.

* poldi-dirmngr.h: Renamed poldi_dirmngr_isvalid to
poldi_dirmngr_validate.
* dirmngr.h: Likewise.

* poldi-dirmngr.c (poldi_dirmngr_isvalid): Disabled function.
(poldi_dirmngr_validate): New function.

src/pam/ChangeLog:

2007-11-25  Moritz  <moritz@g10code.com>

* Makefile.am (libpam_poldi_a_SOURCES): Added files: conv.h,
wait-for-card.h, getpin-cb.h, pam-util.c, pam-util.h.

* auth-simpledb.c (auth_method_simpledb): Removed local variable
username_void.  Use retrieve_username_from_pam instead of
pam_get_item directly.  Use send_username_to_pam instead of
pam_set_item.

* pam-util.h, pam-util.c: New file.
* auth-x509.c, auth-simpledb.c: Include "pam-util.h" and use
functions contained in pam-util.c for retrieving username from PAM
and sending username to PAM.
(extract_username_from_cert): New DUMMY(!) function.
(lookup_cert_from_file): New function.

(auth_method_x509): Some cleanups; use retrieve_username_from_pam,
allow pubkey_url to be prefixed with "file://" using
looking_cert_from_file in that case.  Use poldi_dirmngr_validate
instead of poldi_dirmngr_isvalid.  Handle username.

* auth-x509.c (auth_method_x509): Call poldi_dirmngr_validate
instead of poldi_dirmngr_isvalid.

007-11-18  Moritz  <moritz@g10code.com>

* auth-x509.c (auth_method_x509): In case of a invalid pubkey_url,
return GPG_ERR_INV_CARD, not GPG_ERR_GENERAL.
(auth_method_x509): Don't forget to release CERT.

11 years ago2007-11-11 Moritz <moritz@g10code.com>
Moritz Schulte [Sun, 11 Nov 2007 17:09:23 +0000 (17:09 +0000)]
2007-11-11  Moritz  <moritz@g10code.com>

* util.h: Cleanup: removed plenty of unnecessary declarations.

11 years agoChangeLog:
Moritz Schulte [Sun, 11 Nov 2007 16:26:21 +0000 (16:26 +0000)]
ChangeLog:

2007-11-11  Moritz  <moritz@g10code.com>

* configure.ac: Add hardwired dirmngr path to AH_BOTTOM call.

src/dirmngr/ChangeLog:

2007-11-11  Moritz  <moritz@g10code.com>

* dirmngr.c (connect_socket, connect_pipe): New functions...
(dirmngr_connect): ... use here.  New parameters: infostr, path.
* dirmngr.h: Adjust declaration.
* poldi-dirmngr.c (poldi_dirmngr_connect): New parameters:
infostr, path; pass to dirmngr_connect.
* poldi-dirmngr.h: Adjust declaration.

src/pam/ChangeLog:

2007-11-11  Moritz  <moritz@g10code.com>

* auth-x509.c (auth_method_x509): adjust call to
poldi_dirmngr_connect; pass return value from getenv.
(extract_public_key_from_cert, verify_challenge_sig): New
functions.

11 years agosrc/dirmngr/ChangeLog:
Moritz Schulte [Sat, 10 Nov 2007 15:08:48 +0000 (15:08 +0000)]
src/dirmngr/ChangeLog:

2007-11-10  Moritz  <moritz@g10code.com>

* poldi-dirmngr.h: use POLDI_DIRMNGR_H symbol, not DIRMNGR_H.

src/ctrl/ChangeLog:

2007-11-10  Moritz  <moritz@g10code.com>

* poldi-ctrl.c (conversation): Removed unused function.

src/common/ChangeLog:

2007-11-10  Moritz  <moritz@g10code.com>

* optparse.c (options_parse_argv): Removed const qualifier from
argv.  Removed argv_cp related snippets.
(options_parse_argv_const): New function, wrapper for
options_parse_argv, using char_vector_dup.
* optparse.h (options_parse_argv, options_parse_argv, const):
Adjusted declarations.

* support.c (char_vector_dup): Removed unused variable s. Set c[i]
to NULL, not to a[i] (which is also NULL), because of const
qualifier.

src/scd/ChangeLog:

2007-11-10  Moritz  <moritz@g10code.com>

* scd.c (learn_status_cb): Handle PUBKEY_URL.

src/pam/ChangeLog:

2007-11-10  Moritz  <moritz@g10code.com>

* auth-simpledb.c (auth_method_simpledb): Uuuh: return !err,
instead of !!err.  Currently the semantics for the auth_method_*
functions are: they return TRUE for success and FALSE for failure.

* Makefile.am (AM_CFLAGS): Added: KSBA_CFLAGS.
(pam_poldi.so): Added: KSBA_LIBS.

* pam_poldi.c (pam_sm_authenticate): Connect/disconnect to/from
scdaemon.

* auth-simpledb.c: Added plenty of missing includes.
(cardinfo_null): New static variable.

* pam_poldi.c (pam_sm_authenticate): Use options_parse_argv_const
instead of options_parse_argv.

Furthermore:

* finally added some missing files into repository
* added some missing copyright blobs.

11 years agoChangLog:
Moritz Schulte [Sun, 4 Nov 2007 21:48:26 +0000 (21:48 +0000)]
ChangLog:

2007-11-04  Moritz  <moritz@g10code.com>

* configure.ac: AC_DEFINE ENABLE_AUTH_METHOD_SIMPLEDB if simpledb
authentication is enabled.  Same for the new "test" authentication
method.

src/common/ChangeLog:

2007-11-04  Moritz  <moritz@g10code.com>

* poldi-ctx.h (struct poldi_ctx_s): New members: auth_method,
debug.

* optparse.c (options_parse_argv): New parameter: flags; declare
argv parameter const.  New local variable: argv_cp; use
char_vector_dup/char_vector_free to create temporary non-const
argv.  Include "support.h".
* optparse.h (OPTPARSE_FLAG_DONT_SKIP_FIRST): New symbol.
(options_parse_argv): Adjust declaration.
* support.c (char_vector_dup, char_vector_free): New functions.
* support.h: Declare new functions.

src/pam/ChangeLog:

2007-11-04  Moritz  <moritz@g10code.com>

* Makefile.am: Changed the way the pam module gets built.  No, a
static library libpam_poldi.a is built.  Based on conditionals,
decide which auth-*.c files shall be built.

* auth-x509.c: New file.
* auth-test.c: New file.
* auth-simpledb.c (auth_method_simpledb): New file.  Basically
contains the former pam_sm_authenticate().

* auth-methods.h: New file.

* pam_poldi.c (parse_argv): Removed function.
(pam_sm_authenticate): Call options_parse_argv instead of
parse_argv.
Include auth-methods.h.
Added declarations for authentication method functions.
(struct auth_method): New.
(auth_methods): New array.
(struct pam_poldi_opt): Removed.
(enum arg_opt_ids): New: arg_auth_method, arg_debug.
(arg_opts): New entries for new args.
(auth_method_lookup): New function.
(pam_poldi_options_cb): Handle new arguments.
(pam_sm_authenticate): Heavily stripped.  Calls authentication
method.

src/ctrl/ChangeLog:

2007-11-04  Moritz  <moritz@g10code.com>

* poldi-ctrl.c (main): Adjust to new options_parse_argv API.

11 years agoChangeLog:
Moritz Schulte [Sat, 3 Nov 2007 14:31:13 +0000 (14:31 +0000)]
ChangeLog:

2007-11-03  Moritz Schulte  <moritz@g10code.com>

* configure.ac: AC_DEFINE ENABLE_AUTH_METHOD_X509 if x509
authentication is enabled.

src/common/ChangeLog:

2007-11-03  Moritz Schulte  <moritz@g10code.com>

* poldi-ctx.h: Include config.h.  In case ENABLE_AUTH_METHOD_X509
is defined: include dirmngr.h, define dirmngr_ctx_t member in
struct poldi_ctx_s.
* sexputil.c: New file, taken from GnuPG.
* sexp-parse.h: Likewise.
* convert.c: Likewise.
* Makefile.am (libpoldi_common_a_SOURCES): Added new files.

src/dirmngr/ChangeLog:

2007-11-03  Moritz Schulte  <moritz@g10code.com>

* dirmngr.c, dirmngr.h, poldi-dirmngr.c, poldi-dirmngr.h: New files.
* fingerprint.c: New file, merged from GnuPG.
* fingerprint.h: New file.
* Makefile.am (libdirmngr_a_SOURCES): Added new files.

11 years agoSome build fixes.
Moritz Schulte [Sun, 28 Oct 2007 19:23:50 +0000 (19:23 +0000)]
Some build fixes.

ChangeLog:

2007-10-28  Moritz  <moritz@g10code.com>

* Makefile.am (ACLOCAL_AMFLAGS): New.
(SUBDIRS): Added: m4.

* configure.ac (AC_CONFIG_FILES): Added src/dirmngr/Makefile.

src/ctrl/ChangeLog:

2007-10-28  Moritz  <moritz@g10code.com>

* poldi-ctrl.c: Do not include scd-support.h; include
common/support.h.
* Makefile.am (poldi_ctrl_LDADD): Removed reference to
libscd-support.a

src/pam/ChangeLog:

2007-10-28  Moritz  <moritz@g10code.com>

* Makefile.am (pam_poldi.so): Removed reference to
libscd-support.a.

11 years agoChangeLog:
Moritz Schulte [Sun, 28 Oct 2007 18:19:22 +0000 (18:19 +0000)]
ChangeLog:

2007-10-28  Moritz  <moritz@g10code.com>

* configure.ac: Integrated KSBA support; call AM_PATH_KSBA.  Use
POLDI_ENABLE_FEATURE macro for --enable-x509-auth and
--enable-simpledb-auth arguments.  AC_DEFINE_UNQUOTED the symbols
NEED_LIBGCRYPT_VERSION and NEED_KSBA_VERSION.  Define
AM_CONDITIONAL for symbols AUTH_METHOD_X509 and
AUTH_METHOD_SIMPLEDB.  Print final status message.

* acinclude.m4: Added quoting; removed gpg-error and libgcrypt
related macros; new macro: POLDI_ENABLE_FEATURE.

m4/ChangeLog:

2007-10-28  Moritz  <moritz@g10code.com>

* gpg-error.m4: New.
* libgcrypt.m4: New.
* ksba.m4: New.

src/ChangeLog:

2007-10-28  Moritz  <moritz@g10code.com>

* Makefile.am (dirmngr): Depending on conditional
AUTH_METHOD_X509, add directory dirmngr to SUBDIRS.

11 years agoChangeLog:
Moritz Schulte [Sat, 27 Oct 2007 18:50:10 +0000 (18:50 +0000)]
ChangeLog:

2007-10-27  Moritz  <moritz@g10code.com>

* configure.ac (AC_CONFIG_FILES): Removed reference to
scd-support.

src/ChangeLog:

2007-10-27  Moritz  <moritz@g10code.com>

* scd-support: Removed directory.
* Makefile.am (SUBDIRS): Likewise.

src/common/ChangeLog:

2007-10-27  Moritz  <moritz@g10code.com>

* poldi-ctx.h, poldi-ctx-opaque.h: New files.
* Makefile.am (libpoldi_common_a_SOURCES): Added: poldi-ctx.h,
poldi-ctx-opaque.h.

src/scd/ChangeLog:

2007-10-27  Moritz  <moritz@g10code.com>

* poldi-scd.c, poldi-scd.h: New files.  Layer on top of scd.c.
* Makefile.am (libscd_a_SOURCES): Added poldi-scd.c, poldi-scd.h.

src/pam/ChangeLog:

2007-10-27  Moritz  <moritz@g10code.com>

* pam_poldi.c (poldi_ctx_NULL): New static variable.
(pam_poldi_opt): Removed static structure.
(enum arg_opt_ids): Removed all args except arg_logfile,
arg_wait_timeout.  Note: debug/verbose option handling will
be reintegrated soon.
(arg_opts): See above.
(pam_poldi_options_cb): See above.

(pam_sm_authenticate): Removed scd_context_t ctx.  New variable:
poldi_ctx_t ctx; allocate and initialize.  Use poldi_scd_*
functions instead of scd_*.  Use new conv_tell/conv_ask functions
instead of old tell_user/ask_user.  Removed old conv_opaque
struct.  Simplified PAM conv calling, no idea why it was written
the way it was written before.

(parse_argv): Made a dummy function for now, proper argument
parsing will be integrated soon.

* Makefile.am (pam_poldi.so): Include conv.o, wait-for-card.o,
getpin-cb.o.  Removed libscd-support.
* Makefile.am: Added new implicit rule for compiling .c objects.
(CLEANFILES): Added new object files.

* conv.c, conv.h: New files, contains slightly modified PAM
conversation functions formerly contained in pam_poldi.c.  Uses
new poldi_ctx_t.

* getpin-cb.c, getpin-cb.h: New files, contain slightly modified
code formerly contained in ../common.  Uses new poldi_ctx_t.

* wait-for-card.c, wait-for-card.h: New files, contain slightly
modified code formerly contained in ../common.  Uses new
poldi_ctx_t.

11 years ago2007-10-27 Moritz <moritz@g10code.com>
Moritz Schulte [Sat, 27 Oct 2007 15:13:35 +0000 (15:13 +0000)]
2007-10-27  Moritz  <moritz@g10code.com>

* poldi-ctrl.c: Removed "test" command completely.  It's rationale
was to test authentication through Poldi.  But since poldi-ctrl
didn't use the PAM module (instead it duplicated some
authentication code), it's not suitable for testing Poldi through
*PAM*.  Removing this command simplifies the Poldi package. There
are more reliable ways of testing authentication through Poldi:
e.g. the "pamtester" program (not included in PAM Poldi), which
uses the PAM API.

11 years agoChangeLog:
Moritz Schulte [Tue, 28 Aug 2007 15:56:09 +0000 (15:56 +0000)]
ChangeLog:

2007-08-17  Moritz Schulte  <moritz@g10code.com>

* configure.ac (AC_CHECK_FUNCS): Added nanosleep.

src/scd-support/ChangeLog:

2007-08-17  Moritz  <moritz@g10code.com>

* wait-for-card.c (wait_for_card): Rewritten to use scd_serialno()
instead of scd_getinfo() for checking if smartcard is present.
Some cleanups.

src/ctrl/ChangeLog:

2007-08-25  Moritz  <moritz@g10code.com>

* poldi-ctrl.c (my_strusage): Handle copyright line.
Implemented new CLI argument: --serialno-inserted.
(struct poldi_ctrl_opt): New member: serialno_inserted.
(enum arg_opt_ids): New: arg_serialno_inserted.
(ARGPARSE_OPTS arg_opts): Specify arg_serialno_inserted.
(poldi_ctrl_options_cb): Handle arg_serialno_inserted.
(serialno_from_inserted_card): New function.
(cmd_register_card): New variable: use_inserted; use
serialno_from_inserted_card.
(cmd_unregister_card): New variables: serialno, use_inserted; use
serialno_from_inserted_card.
(cmd_associate):  New variables: serialno,  account, use_inserted;
use serialno_from_inserted_card().
(cmd_disassociate): Likewise.  Allow disassociate if serialno AND
account is given (removed wildcard mechanism with one of these two
being NULL).

src/pam/ChangeLog:

2007-08-17  Moritz  <moritz@g10code.com>

* pam_poldi.c (pam_sm_authenticate): Call wait_for_card().

doc/:

Started partial rewrite of the manual.

11 years agosrc/scd:
Moritz Schulte [Thu, 16 Aug 2007 20:31:23 +0000 (20:31 +0000)]
src/scd:

2007-08-16  Moritz  <moritz@g10code.com>

* scd.c (scd_serialno_internal): New function, it's basically the
old scd_serialno() with a new parameter.
(scd_serialno): Ripped; simply call scd_serialno_internal().
(get_scd_socket_from_agent): Call scd_serialno_internal in order
to select the OpenPGP app on the card.
Comments.
(scd_reset): Unused variable.
(scd_readkey): Likewise; initialize *KEY to NULL.
* scd.h: Comments.

src/scd-support:

2007-08-16  Moritz  <moritz@g10code.com>

* getpin-callback.c (agent_askpin): Rename parameter "parmx" to
"parm".
(agent_askpin): Use POLDI_PIN2_QUERY_MSG instead of hardcoded
"GETPIN".

11 years agosrc/scd-support:
Moritz Schulte [Thu, 16 Aug 2007 13:14:00 +0000 (13:14 +0000)]
src/scd-support:

2007-07-13  Moritz  <moritz@g10code.com>

* getpin-callback.c (agent_askpin): Rename parameter "parmx" to
"parm".

src/ctrl:

2007-07-05  Moritz  <moritz@g10code.com>

* poldi-ctrl.c (cmd_test): Lookup GPG_AGENT_INFO, not
SCDAEMON_INFO.
(cmd_dump): Likewise.
(cmd_set_key): Likewise.

src/common:

2007-08-16  Moritz  <moritz@g10code.com>

* defs.h.in: Cosmetics.

src/scd:

2007-08-16  Moritz  <moritz@g10code.com>

* scd.c (agent_connect_from_infostr): New function.
(agent_scd_getinfo_socket_name): New function.
(scd_connect): Use above functions for connecting to the agent and
receiving scdaemons socket from the agent instead of connecting to
the agent directly.

src/pam:

2007-07-13  Moritz  <moritz@g10code.com>

* pam_poldi.c (pam_sm_authenticate): Lookup GPG_AGENT_INFO, not
SCDAEMON_INFO, error checking after scd_connect.

11 years ago2007-08-10 Moritz <moritz@g10code.com>
Moritz Schulte [Fri, 10 Aug 2007 04:17:39 +0000 (04:17 +0000)]
2007-08-10  Moritz  <moritz@g10code.com>

* Makefile.am (AM_CFLAGS): Include $(top_builddir)/src.
* getpin-callback.c (agent_askpin): Use POLDI_PIN2_QUERY_MSG
instead of hardcoded string.
(agent_popup_message_stop): Removed unused var.

11 years agoIt seems, scdaemon wants us to send RESTART commands after using it.
Moritz Schulte [Fri, 10 Aug 2007 04:02:24 +0000 (04:02 +0000)]
It seems, scdaemon wants us to send RESTART commands after using it.
Not sure why, but this does not seem robust.

scd/ChangeLog:

2007-08-10  Moritz  <moritz@euler>

* scd.c (scd_reset): New function.
* scd.h: Declare it.

ctrl/ChangeLog:

2007-08-10  Moritz  <moritz@euler>

* poldi-ctrl.c (cmd_test): Call scd_reset.
(cmd_dump): Likewise.
(cmd_set_key): Likewise.

11 years ago2007-06-30 Moritz <moritz@g10code.com>
Moritz Schulte [Fri, 29 Jun 2007 23:03:48 +0000 (23:03 +0000)]
2007-06-30  Moritz  <moritz@g10code.com>

        * configure.ac (AC_CONFIG_FILES): Added am/Makefile.

11 years agoadded the RIGHT Makefile.am file
Moritz Schulte [Fri, 29 Jun 2007 23:01:57 +0000 (23:01 +0000)]
added the RIGHT Makefile.am file

11 years ago2007-06-29 Moritz <moritz@g10code.com>
Moritz Schulte [Fri, 29 Jun 2007 22:54:13 +0000 (22:54 +0000)]
2007-06-29  Moritz  <moritz@g10code.com>

        * README, scd.c, scd.h: New files.

11 years ago2007-06-29 Moritz <moritz@g10code.com>
Moritz Schulte [Fri, 29 Jun 2007 22:53:19 +0000 (22:53 +0000)]
2007-06-29  Moritz  <moritz@g10code.com>

        * README, scd-support.h, getpin-callback.c, wait-for-card.c: New
        files.

11 years ago2007-06-30 Moritz <moritz@g10code.com>
Moritz Schulte [Fri, 29 Jun 2007 22:46:39 +0000 (22:46 +0000)]
2007-06-30  Moritz  <moritz@g10code.com>

        * autogen,sh: New file.

11 years ago2007-06-30 Moritz <moritz@g10code.com>
Moritz Schulte [Fri, 29 Jun 2007 22:44:34 +0000 (22:44 +0000)]
2007-06-30  Moritz  <moritz@g10code.com>

        * Makefile.am (SUBDIRS): Added "am".
        * am: New directory.

11 years ago(no commit message)
Moritz Schulte [Fri, 29 Jun 2007 22:27:35 +0000 (22:27 +0000)]

11 years ago2007-06-29 Moritz <moritz@g10code.com>
Moritz Schulte [Fri, 29 Jun 2007 22:26:29 +0000 (22:26 +0000)]
2007-06-29  Moritz  <moritz@g10code.com>

        * libscd: Directory removed.
        * scd: New directory.
        * scd-support: Likewise.
        * README: New file.
        * Makefile.am (SUBDIRS): Adjusted to new directory tree.
        (EXTRA_DIST): README.

11 years ago2007-06-30 Moritz <moritz@g10code.com>
Moritz Schulte [Fri, 29 Jun 2007 22:25:06 +0000 (22:25 +0000)]
2007-06-30  Moritz  <moritz@g10code.com>

        * pam_poldi.c: Removed includes: <common/options.h>,
        <libscd/scd.h>; added includes: <common/optparse.h>, <scd/scd.h>,
        <scd/scd-support.h>.  Removed option switches: debug-sc,
        ctapi-driver, pscs-driver, reader-port, disable-opensc,
        disable-ccid, debug-ccid-driver
        (cardinfo_null): New static variable.
        (pam_sm_authenticate): Quasi rewrite, uses new scd interface.

        * Makefile.am: include $(top_srcdir)/am/cmacros.am.
        (pam_poldi.so): Removed $(LIBUSB_LIBS) from linking command.

11 years ago2007-06-29 Moritz <moritz@g10code.com>
Moritz Schulte [Fri, 29 Jun 2007 22:18:25 +0000 (22:18 +0000)]
2007-06-29  Moritz  <moritz@g10code.com>

        * poldi-ctrl.c: Removed includes: <common/card.h>, <libscd/scd.h>,
        <common/options.h>; new includes: <common/optparse.h>,
        <scd/scd.h>, <scd-support/scd-support.h>.
        (struct poldi_ctrl_opt): Removed members: debug_sc, ctapi_driver,
        pcsc_driver, reader_port, disable_opensc, disable_ccid,
        debug_ccid_driver.
        (enum arg_opt_ids): Removed: arg_ctapi_driver, arg_pcsc_driver,
        arg_reader_port, arg_disable_ccid, arg_disable_opensc,
        arg_debug_ccid_driver, arg_require_card_switch.
        (arg_opts[]): Adjusted to arg_opt_ids changes.
        (poldi_ctrl_options_cb): Likewise.
        (cardinfo_NULL): New variable.
        (cmd_test, cmd_dump, cmd_set_key): Slightly rewritte, use new scd
        interface.
        (main): Initialize libgcrypt secure memory, removed call to
        scd_init.

        * Makefile.am: Adjusted CFLAGS/LDADD, include cmacros.am.
        (poldi_ctrl_LDADD): Removed $(GPG_ERR_LDFLAGS),$(LIBUSB_LIBS);
        added: $(LIBASSUAN_LIBS).

11 years ago2007-06-29 Moritz <moritz@g10code.com>
Moritz Schulte [Fri, 29 Jun 2007 21:52:54 +0000 (21:52 +0000)]
2007-06-29  Moritz  <moritz@g10code.com>

        * Makefile.am (libpoldi_common_a_SOURCES): Adjusted.
        * card.c, card.h: Removed.
        * i18n.h, membuf.c, membuf.h, util.h, README: New files.
        * options.c, options.h: Renamed to optparse.c, optparse.h;
        adjusted ifndef and include line.
        * support.c: Include scd.h instead of card.h.
        (authenticate): Removed function.
        (wait_for_card): Likewise.
        (convert_to_hex): New function.
        * support.h: Added declaration for convert_to_hex, removed
        declarations for authenticate and wait_for_card. Include scd.h
        instead of card.h.
        * usersdb.c: Added some assertions.

11 years ago(no commit message)
Moritz Schulte [Fri, 29 Jun 2007 21:47:09 +0000 (21:47 +0000)]

11 years ago2007-06-29 Moritz <moritz@g10code.com>
Moritz Schulte [Fri, 29 Jun 2007 21:46:23 +0000 (21:46 +0000)]
2007-06-29  Moritz  <moritz@g10code.com>

        * BUGS: New file.
        * NEWS: Updated.

11 years ago2007-06-29 Moritz <moritz@g10code.com>
Moritz Schulte [Fri, 29 Jun 2007 21:44:40 +0000 (21:44 +0000)]
2007-06-29  Moritz  <moritz@g10code.com>

        * m4: New directory.
        * m4/libassuan.m4: New file.
        * configure.ac: Require libassuan.
        (AH_BOTTOM): Cleared, define GNUPG_DEFAULT_SCD.
        Use AM_PROG_CC_C_O.
        (AC_CONFIG_FILES): Added: m4/Makefile, src/scd-support/Makefile,
        src/scd/Makefile; removed: src/libscd/Makefile.

11 years agodeleting old libscd
Moritz Schulte [Fri, 29 Jun 2007 21:38:12 +0000 (21:38 +0000)]
deleting old libscd

11 years agonew branch dev-0.4
Moritz Schulte [Fri, 29 Jun 2007 21:34:37 +0000 (21:34 +0000)]
new branch dev-0.4

12 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().

12 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.