poldi.git
15 months agoFix pclose. master
NIIBE Yutaka [Tue, 17 Jan 2017 04:38:45 +0000 (13:38 +0900)]
Fix pclose.

* src/scd/scd.c (get_agent_socket_name): Use pclose.

Signed-off-by: NIIBE Yutaka <gniibe@fsij.org>
17 months agoUpdate po.
NIIBE Yutaka [Tue, 15 Nov 2016 04:07:15 +0000 (13:07 +0900)]
Update po.

--
Signed-off-by: NIIBE Yutaka <gniibe@fsij.org>
17 months agoDon't translate logged message.
NIIBE Yutaka [Tue, 15 Nov 2016 04:03:15 +0000 (13:03 +0900)]
Don't translate logged message.

* src/pam/auth-method-localdb/auth-localdb.c,
src/pam/auth-method-localdb/key-lookup.c,
src/pam/auth-method-x509/auth-x509.c, src/pam/auth-method-x509/dirmngr.c,
src/pam/auth-support/getpin-cb.c, src/pam/pam_poldi.c: Don't translate.

--

Signed-off-by: NIIBE Yutaka <gniibe@fsij.org>
17 months agoDon't translate debug messages.
NIIBE Yutaka [Tue, 15 Nov 2016 03:11:44 +0000 (12:11 +0900)]
Don't translate debug messages.

* src/scd/scd.c (scd_connect): No use of translation.
* src/pam/auth-method-x509/auth-x509.c (auth_method_x509_auth_do): Ditto.
* src/pam/auth-method-localdb/auth-localdb.c
(auth_method_localdb_auth_do): Ditto.
* src/pam/auth-method-x509/dirmngr.c (inq_cert): Ditto.
* src/pam/pam_poldi.c (pam_sm_authenticate): Ditto.

--
Signed-off-by: NIIBE Yutaka <gniibe@fsij.org>
17 months agoUse ERR instead of RC.
NIIBE Yutaka [Tue, 15 Nov 2016 03:06:32 +0000 (12:06 +0900)]
Use ERR instead of RC.

* src/scd/scd.c (scd_connect): Clean up for ERR.

--
"Return code" is not good when we have definition of
error code properly.

Signed-off-by: NIIBE Yutaka <gniibe@fsij.org>
17 months agoFallback to invoking scdaemon.
Marc-Antoine Perennou [Fri, 11 Nov 2016 14:51:23 +0000 (15:51 +0100)]
Fallback to invoking scdaemon.

* src/scd/scd.c (scd_connect): When gpg-agent is not available
in the case of pam_username == username_of_process_uid, try
normal way to invoke scdaemon through pipe.

--

Signed-off-by: Marc-Antoine Perennou <Marc-Antoine@Perennou.com>
17 months agoInvoke gpgconf by absolute path.
NIIBE Yutaka [Tue, 15 Nov 2016 02:41:49 +0000 (11:41 +0900)]
Invoke gpgconf by absolute path.

* configure.ac (GNUPG_DEFAULT_GPGCONF): No parens.
(GNUPG_DEFAULT_DIRMNGR): Remove unused var.
* src/scd/scd.c (get_agent_socket_name): Use GNUPG_DEFAULT_GPGCONF.

--

Signed-off-by: NIIBE Yutaka <gniibe@fsij.org>
17 months agoRestrict use of scdaemon under gpg-agent.
NIIBE Yutaka [Tue, 15 Nov 2016 00:49:28 +0000 (09:49 +0900)]
Restrict use of scdaemon under gpg-agent.

* src/pam/pam_poldi.c (opt_ids, opt_specs): Remove use-agent option.
(pam_poldi_options_cb): Remove use-agent handling.
(pam_sm_authenticate): Determin use_agent by username.

--

Signed-off-by: NIIBE Yutaka <gniibe@fsij.org>
17 months agoMore clean up.
NIIBE Yutaka [Mon, 14 Nov 2016 23:28:21 +0000 (08:28 +0900)]
More clean up.

* src/pam/pam_poldi.c (retrieve_username_from_pam): Remove.
(send_username_to_pam): Remove.
(pam_sm_authenticate): Call pam_get_item, pam_set_item directly.
--

Signed-off-by: NIIBE Yutaka <gniibe@fsij.org>
17 months agoSimplify things for PAM.
NIIBE Yutaka [Mon, 14 Nov 2016 23:14:15 +0000 (08:14 +0900)]
Simplify things for PAM.

* src/pam/auth-support/pam-util.h: Remove.
* src/pam/auth-support/pam-util.c: Remove.  Merge into...
* src/pam/pam_poldi.c (retrieve_username_from_pam): ... here.
(send_username_to_pam): Likewise.
* src/pam/auth-method-localdb/auth-localdb.c: Clean up.
* src/pam/auth-method-x509/auth-x509.c: Likewise.
* src/pam/auth-support/Makefile.am: Remove pam-util.{c,h}.
--

Signed-off-by: NIIBE Yutaka <gniibe@fsij.org>
17 months agoFix info entry of poldi.texi
NIIBE Yutaka [Fri, 11 Nov 2016 08:51:36 +0000 (17:51 +0900)]
Fix info entry of poldi.texi

17 months agoAdd "use-agent" PAM option.
NIIBE Yutaka [Fri, 11 Nov 2016 08:50:12 +0000 (17:50 +0900)]
Add "use-agent" PAM option.

* configure.ac (GNUPG_DEFAULT_GPGCONF): New.
* src/pam/pam_poldi.c (pam_poldi_options_cb): Support the option.
(pam_sm_authenticate): Call scd_connect with use_agent option.
* src/scd/scd.c (get_agent_socket_name): New.
(agent_scd_getinfo_socket_name): Revert the change of removing this
function.  Clean it up.
(get_scd_socket_from_agent): New.
(scd_connect): Clean up and support use_agent.
--

Using Poldi for su/sudo with gpg-agent is questionable usage.
However, for backward compatibility, the feature is back.

Signed-off-by: NIIBE Yutaka <gniibe@fsij.org>
17 months agoFix SERIALNO command.
NIIBE Yutaka [Mon, 7 Nov 2016 04:56:16 +0000 (13:56 +0900)]
Fix SERIALNO command.

* src/scd/scd.c (scd_serialno_internal): No agent any more.

--
Signed-off-by: NIIBE Yutaka <gniibe@fsij.org>
17 months agoAdd NEWS entries.
NIIBE Yutaka [Mon, 7 Nov 2016 03:51:16 +0000 (12:51 +0900)]
Add NEWS entries.

--
Signed-off-by: NIIBE Yutaka <gniibe@fsij.org>
17 months agoFix path of scdaemon.
NIIBE Yutaka [Mon, 7 Nov 2016 02:49:08 +0000 (11:49 +0900)]
Fix path of scdaemon.

* am/cmacros.am (AM_CPPFLAGS): Add GNUPG_LIBEXECDIR.
* configure.ac (GNUPG_DEFAULT_SCD): Use GNUPG_LIBEXECDIR.

--
Signed-off-by: NIIBE Yutaka <gniibe@fsij.org>
17 months agospelling fixes of doc/poldi.texi.
NIIBE Yutaka [Mon, 7 Nov 2016 01:16:56 +0000 (10:16 +0900)]
spelling fixes of doc/poldi.texi.

--
Signed-off-by: NIIBE Yutaka <gniibe@fsij.org>
17 months agoRemove src/ctrl from configure.
NIIBE Yutaka [Sat, 5 Nov 2016 02:13:32 +0000 (11:13 +0900)]
Remove src/ctrl from configure.

* configure.ac: Remove src/ctrl.
--
Signed-off-by: NIIBE Yutaka <gniibe@fsij.org>
17 months agoOnly support forking off scdaemon.
NIIBE Yutaka [Fri, 4 Nov 2016 07:46:11 +0000 (16:46 +0900)]
Only support forking off scdaemon.

* src/scd/scd.c (scd_serialno_internal): Cleanup API with no AGENT.
(agent_connect_from_infostr): Remove.
(agent_scd_getinfo_socket_name): Remove.
(get_scd_socket_from_agent): Remove.
(scd_connect): Change API to only support forking off scdaemon.
* src/pam/pam_poldi.c (pam_sm_authenticate): Follow the change of API.

--
Signed-off-by: NIIBE Yutaka <gniibe@fsij.org>
17 months agoModify document for removal of poldi-ctrl.
NIIBE Yutaka [Fri, 4 Nov 2016 06:55:59 +0000 (15:55 +0900)]
Modify document for removal of poldi-ctrl.

--
Signed-off-by: NIIBE Yutaka <gniibe@fsij.org>
17 months agoRemove poldi-ctrl.
NIIBE Yutaka [Fri, 4 Nov 2016 05:10:10 +0000 (14:10 +0900)]
Remove poldi-ctrl.

* src/Makefile.am (SUBDIRS): Remove ctrl.
* src/ctrl: Remove.

--
Signed-off-by: NIIBE Yutaka <gniibe@fsij.org>
2 years agodoc: Update.
NIIBE Yutaka [Fri, 18 Dec 2015 04:35:32 +0000 (04:35 +0000)]
doc: Update.

* doc/poldi.texi: Fix gpgsm-gencert.sh to gpgsm --gen-key.
* po/de.po, po/poldi.pot: Update.

3 years agoSCD: fix for pinpad.
NIIBE Yutaka [Wed, 7 May 2014 01:10:38 +0000 (10:10 +0900)]
SCD: fix for pinpad.

* src/scd/scd.c (inq_needpin): It's now PINPAD.

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

8 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).

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

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

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

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

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

9 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/".

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

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

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

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

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

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

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

9 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).

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

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

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

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

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

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

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

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

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

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

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

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

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

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

9 years agoMerged branch dev-0.4
Moritz Schulte [Fri, 8 Aug 2008 13:30:51 +0000 (13:30 +0000)]
Merged 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.

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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