scute.git
3 years agoSupport 4096 bit RSA keys. justus/gcrypt-0
Justus Winter [Mon, 21 Dec 2015 16:37:55 +0000 (17:37 +0100)]
Support 4096 bit RSA keys.

* src/agent.c (MAX_SIGNATURE_{BITS,LEN}): Tweak values.

Signed-off-by: Justus Winter <justus@g10code.com>
3 years agoUse a proper s-expression parser.
Justus Winter [Mon, 21 Dec 2015 16:06:47 +0000 (17:06 +0100)]
Use a proper s-expression parser.

* README: Document new build dependency.
* doc/manual/scute.texi: Likewise.
* configure.ac: Check for libgcrypt.
* m4/libgcrypt.m4: New file copied from GnuPG.
* src/Makefile.am: Link against libgcrypt.
* src/agent.c (scute_agent_sign): Use gcrypts s-expression parser.

Signed-off-by: Justus Winter <justus@g10code.com>
3 years agodoc/manual: Fix versions of build dependencies.
Justus Winter [Tue, 22 Dec 2015 16:06:11 +0000 (17:06 +0100)]
doc/manual: Fix versions of build dependencies.

* doc/manual/scute.texi: Fix versions of build dependencies.

Signed-off-by: Justus Winter <justus@g10code.com>
3 years agodoc/manual: Fix CAcert instructions, hide FIXMEs.
Justus Winter [Tue, 22 Dec 2015 15:20:14 +0000 (16:20 +0100)]
doc/manual: Fix CAcert instructions, hide FIXMEs.

* doc/manual/scute.texi: Fix CAcert instructions, turn remaining
FIXMEs into comments.

Signed-off-by: Justus Winter <justus@g10code.com>
3 years agodoc/manual: Include screenshot of generic error message.
Justus Winter [Tue, 22 Dec 2015 14:31:09 +0000 (15:31 +0100)]
doc/manual: Include screenshot of generic error message.

* doc/manual/Makefile.am (images): Add new file.
* doc/manual/firefox-bad-pin.png: New file.
* doc/manual/scute.texi: Update the paragraph on generic error
messages printed by Firefox, and include screenshot.

Signed-off-by: Justus Winter <justus@g10code.com>
3 years agodoc/manual: Include screenshot of certificate manager.
Justus Winter [Tue, 22 Dec 2015 14:27:27 +0000 (15:27 +0100)]
doc/manual: Include screenshot of certificate manager.

* doc/manual/scute.texi: Include screenshot of certificate manager.
There are two more unused screenshots, but I do not see why they
should be included.

Signed-off-by: Justus Winter <justus@g10code.com>
3 years agodoc/manual: Rework image handling.
Justus Winter [Tue, 22 Dec 2015 13:34:05 +0000 (14:34 +0100)]
doc/manual: Rework image handling.

* doc/manual/Makefile.am: Do not convert PNGs to PDFs first for the
PDF manual, do not scale the EPS pictures down.
* doc/manual/scute.texi: Scale and center images for the LaTeX-based
formats.

Signed-off-by: Justus Winter <justus@g10code.com>
3 years agodoc/manual: Adapt to renamed shared object.
Justus Winter [Tue, 22 Dec 2015 13:03:40 +0000 (14:03 +0100)]
doc/manual: Adapt to renamed shared object.

* doc/manual/firefox-dm-load.png: Adapt to renamed shared object.
* doc/manual/scute.texi: Likewise.
--
This is a follow-up to dc221117.

Signed-off-by: Justus Winter <justus@g10code.com>
3 years agoFix some minor compiler warnings.
Justus Winter [Tue, 22 Dec 2015 11:24:04 +0000 (12:24 +0100)]
Fix some minor compiler warnings.

* src/agent.c (agent_configure): Avoid dead stores.
(unhexify_fpr): Likewise.
(get_cert_data_cb): Drop unused variable.
* src/gpgsm.c (search_cb): Avoid dead store.
* tests/t-gettokeninfo.c (main): Fail on error.

Signed-off-by: Justus Winter <justus@g10code.com>
3 years agoDrop stray semicolon.
Justus Winter [Mon, 21 Dec 2015 16:13:03 +0000 (17:13 +0100)]
Drop stray semicolon.

--
Signed-off-by: Justus Winter <justus@g10code.com>
3 years agoAvoid implicit function declarations.
Justus Winter [Mon, 21 Dec 2015 14:47:15 +0000 (15:47 +0100)]
Avoid implicit function declarations.

* src/agent.h (scute_agent_get_cert): New prototype.
* src/cert-gpgsm.c: Add missing includes.
* src/debug.c: Likewise.
* src/p11-getslotinfo.c: Likewise.
* tests/t-getattribute.c: Likewise.

Signed-off-by: Justus Winter <justus@g10code.com>
3 years agoCopy the maintainer-mode logic from GnuPG.
Justus Winter [Mon, 21 Dec 2015 14:44:31 +0000 (15:44 +0100)]
Copy the maintainer-mode logic from GnuPG.

* configure.ac: Copy the maintainer-mode logic from GnuPG.

Signed-off-by: Justus Winter <justus@g10code.com>
3 years agoApply patch from Debian.
NIIBE Yutaka [Mon, 21 Dec 2015 02:39:15 +0000 (02:39 +0000)]
Apply patch from Debian.

* src/Makefile.am (lib_LTLIBRARIES): Rename from libscute.
* tests/Makefile.am (LDADD): Follow the change.

--

Shared module (for plug-in to an application) is not a library and it
shouldn't have version number in the pathname.

3 years agodoc/website: Make border picture vertically tiling.
Justus Winter [Wed, 16 Dec 2015 13:54:41 +0000 (14:54 +0100)]
doc/website: Make border picture vertically tiling.

--
Signed-off-by: Justus Winter <justus@g10code.com>
3 years agodoc/website: Manual kerning, convert text to path.
Justus Winter [Wed, 16 Dec 2015 10:46:26 +0000 (11:46 +0100)]
doc/website: Manual kerning, convert text to path.

--
Signed-off-by: Justus Winter <justus@g10code.com>
3 years agodoc/website: Vacuum unused definitions, center view on logo.
Justus Winter [Wed, 16 Dec 2015 10:37:32 +0000 (11:37 +0100)]
doc/website: Vacuum unused definitions, center view on logo.

--
Signed-off-by: Justus Winter <justus@g10code.com>
3 years agodoc/website: Fix broken links.
Justus Winter [Tue, 15 Dec 2015 17:32:49 +0000 (18:32 +0100)]
doc/website: Fix broken links.

--
Signed-off-by: Justus Winter <justus@g10code.com>
3 years agodoc/website: Update VCS instructions.
Justus Winter [Tue, 15 Dec 2015 17:15:41 +0000 (18:15 +0100)]
doc/website: Update VCS instructions.

--
Signed-off-by: Justus Winter <justus@g10code.com>
3 years agodoc/website: Update list of releases.
Justus Winter [Tue, 15 Dec 2015 16:56:04 +0000 (17:56 +0100)]
doc/website: Update list of releases.

--
Signed-off-by: Justus Winter <justus@g10code.com>
3 years agoUpdate the version magic to work with git.
Justus Winter [Tue, 15 Dec 2015 16:26:11 +0000 (17:26 +0100)]
Update the version magic to work with git.

--
Signed-off-by: Justus Winter <justus@g10code.com>
3 years agoRename 'README.SVN' to 'README.GIT', and update it.
Justus Winter [Tue, 15 Dec 2015 15:54:44 +0000 (16:54 +0100)]
Rename 'README.SVN' to 'README.GIT', and update it.

--
Signed-off-by: Justus Winter <justus@g10code.com>
3 years agodoc: Rewrite to use 'gpgsm' instead of 'gpgsm-gencert.sh'.
Justus Winter [Fri, 11 Dec 2015 13:12:24 +0000 (14:12 +0100)]
doc: Rewrite to use 'gpgsm' instead of 'gpgsm-gencert.sh'.

* README: Rewrite to use 'gpgsm' instead of 'gpgsm-gencert.sh'.
* doc/manual/scute.texi: Likewise.
--
We no longer ship 'gpgsm-gencert.sh' with GnuPG.

Signed-off-by: Justus Winter <justus@g10code.com>
Debian-bug-id: 790891

3 years agodoc: Improve 'scute.html' generation.
Justus Winter [Fri, 11 Dec 2015 12:30:36 +0000 (13:30 +0100)]
doc: Improve 'scute.html' generation.

* doc/manual/Makefile.am: Override the implicit rule for the html
generation, and copy the images into the built documentation.
--
Previously, all the images were missing from the manual.

Signed-off-by: Justus Winter <justus@g10code.com>
3 years agoDrop custom printf functions.
Justus Winter [Fri, 11 Dec 2015 10:34:48 +0000 (11:34 +0100)]
Drop custom printf functions.

* src/Makefile.am (sources): Drop files.
* src/estream-printf.c: Drop file.
* src/estream-printf.h: Likewise.
* src/support.h: Fix accordingly.
--
Use the ones from libgpg-error instead.

Signed-off-by: Justus Winter <justus@g10code.com>
3 years agoFix logging.
Justus Winter [Thu, 10 Dec 2015 12:01:10 +0000 (13:01 +0100)]
Fix logging.

* src/debug.h (DEBUG): Display critical messages.
--
Previously, these messages were not displayed because DBG_CRIT is '0'.

Signed-off-by: Justus Winter <justus@g10code.com>
3 years agoFix typos found by codespell.
Justus Winter [Tue, 8 Dec 2015 14:41:37 +0000 (15:41 +0100)]
Fix typos found by codespell.

--
Signed-off-by: Justus Winter <justus@g10code.com>
3 years agoAdd .gitignore.
Justus Winter [Tue, 8 Dec 2015 14:35:46 +0000 (15:35 +0100)]
Add .gitignore.

--
Signed-off-by: Justus Winter <justus@g10code.com>
3 years agodoc: Fix build.
Justus Winter [Tue, 8 Dec 2015 14:05:57 +0000 (15:05 +0100)]
doc: Fix build.

* doc/manual/gpl.texi: Fix section.
* doc/manual/scute.texi: Drop empty item.

Signed-off-by: Justus Winter <justus@g10code.com>
3 years agoUpdate to autoconf 2.69.
Justus Winter [Tue, 8 Dec 2015 13:55:36 +0000 (14:55 +0100)]
Update to autoconf 2.69.

--
Signed-off-by: Justus Winter <justus@g10code.com>
3 years agoUpdate automake initialization.
Justus Winter [Tue, 8 Dec 2015 13:52:21 +0000 (14:52 +0100)]
Update automake initialization.

* configure.ac: The two-argument form is deprecated.  Update
accordingly.

Signed-off-by: Justus Winter <justus@g10code.com>
3 years agoMove auxiliary build scripts into separate directory.
Justus Winter [Tue, 8 Dec 2015 13:50:00 +0000 (14:50 +0100)]
Move auxiliary build scripts into separate directory.

* configure.ac: Move auxiliary build scripts into separate directory
`build-aux'.

Signed-off-by: Justus Winter <justus@g10code.com>
3 years agoAdd 'autogen.sh' from GnuPG.
Justus Winter [Tue, 8 Dec 2015 13:29:49 +0000 (14:29 +0100)]
Add 'autogen.sh' from GnuPG.

* autogen.rc: New configuration file.
* autogen.sh: New file.

Signed-off-by: Justus Winter <justus@g10code.com>
8 years agoPost release.
Marcus Brinkmann [Wed, 21 Apr 2010 02:54:12 +0000 (02:54 +0000)]
Post release.

8 years agoFix date.
Marcus Brinkmann [Wed, 21 Apr 2010 02:51:43 +0000 (02:51 +0000)]
Fix date.

8 years ago2010-04-21 Marcus Brinkmann <marcus@g10code.de>
Marcus Brinkmann [Wed, 21 Apr 2010 02:29:49 +0000 (02:29 +0000)]
2010-04-21  Marcus Brinkmann  <marcus@g10code.de>

Release 1.4.0.

* configure.ac (NEED_LIBASSUAN_VERSION): Bump to 2.0.0.
(LIBSCUTE_LT_REVISION): Bump to 2.

9 years ago2009-12-08 Marcus Brinkmann <marcus@g10code.de>
Marcus Brinkmann [Tue, 8 Dec 2009 04:34:46 +0000 (04:34 +0000)]
2009-12-08  Marcus Brinkmann  <marcus@g10code.de>

* src/agent.c (agent_connect): Convert posix fd to assuan fd.
* src/cert-gpgsm.c (export_cert_compat): Likewise.

9 years ago2009-12-08 Marcus Brinkmann <marcus@g10code.de>
Marcus Brinkmann [Tue, 8 Dec 2009 04:25:38 +0000 (04:25 +0000)]
2009-12-08  Marcus Brinkmann  <marcus@g10code.de>

* src/agent.c (agent_connect): Convert posix fd to assuan fd.

9 years ago2009-12-08 Marcus Brinkmann <marcus@g10code.de>
Marcus Brinkmann [Tue, 8 Dec 2009 03:49:40 +0000 (03:49 +0000)]
2009-12-08  Marcus Brinkmann  <marcus@g10code.de>

* src/Makefile.am (libgpg-error.a, libassuan.a): Force symlink.

9 years ago2009-11-06 Marcus Brinkmann <marcus@g10code.de>
Marcus Brinkmann [Fri, 6 Nov 2009 00:27:30 +0000 (00:27 +0000)]
2009-11-06  Marcus Brinkmann  <marcus@g10code.de>

* src/cert-gpgsm.c (export_cert_compat, export_cert)
(scute_gpgsm_search_certs_by_grip)
(scute_gpgsm_search_certs_by_fpr): Call assuan_pipe_connect
instead of assuan_pipe_connect_ext.
* src/agent.c (agent_connect): Update use of assuan_socket_connect
and assuan_pipe_connect.

9 years ago2009-10-16 Marcus Brinkmann <marcus@g10code.com>
Marcus Brinkmann [Fri, 16 Oct 2009 13:10:36 +0000 (13:10 +0000)]
2009-10-16  Marcus Brinkmann  <marcus@g10code.com>

* src/p11-initialize.c (CK_DEFINE_FUNCTION): Fix code on
non-Windows.

9 years ago2009-10-08 Marcus Brinkmann <marcus@g10code.com>
Marcus Brinkmann [Thu, 8 Oct 2009 14:11:14 +0000 (14:11 +0000)]
2009-10-08  Marcus Brinkmann  <marcus@g10code.com>

* src/p11-initialize.c (C_Initialize): Call WSAStartup.
* src/p11-finalize.c (CK_DEFINE_FUNCTION): Call WSACleanup.

9 years ago2009-10-06 Marcus Brinkmann <marcus@g10code.com>
Marcus Brinkmann [Tue, 6 Oct 2009 09:03:54 +0000 (09:03 +0000)]
2009-10-06  Marcus Brinkmann  <marcus@g10code.com>

        * src/pkcs11.h: Add support for GOST.  By Andreas Jellinghaus.

9 years ago2009-09-23 Marcus Brinkmann <marcus@g10code.de>
Marcus Brinkmann [Tue, 22 Sep 2009 23:21:55 +0000 (23:21 +0000)]
2009-09-23  Marcus Brinkmann  <marcus@g10code.de>

* configure.ac (NEED_LIBASSUAN_VERSION): Update to 1.1.0.
(_ASSUAN_ONLY_GPG_ERROR): Remove.
* src/p11-initialize.c: Update to new Assuan interface.
* src/debug.c (_scute_debug_init): Remove call to
assuan_set_assuan_log_stream.
* src/agent.c (agent_connect): Allocate assuan context before
connecting to server.  Release it on error.
* src/cert-gpgsm.c (export_cert_compat, export_cert)
(scute_gpgsm_search_certs_by_grip)
(scute_gpgsm_search_certs_by_fpr): Likewise.

9 years ago2009-07-22 Stef Walter <stef@memberwebs.com>
Marcus Brinkmann [Wed, 22 Jul 2009 16:43:23 +0000 (16:43 +0000)]
2009-07-22  Stef Walter  <stef@memberwebs.com>

* src/pkcs11.h: Make all constants UL that should be.

9 years agoPass the version number up. scute-1.3.0
Werner Koch [Fri, 19 Jun 2009 22:18:15 +0000 (22:18 +0000)]
Pass the version number up.

9 years agoFix stupid c+p bug.
Werner Koch [Fri, 19 Jun 2009 21:29:39 +0000 (21:29 +0000)]
Fix stupid c+p bug.

9 years ago2009-06-19 Marcus Brinkmann <marcus@g10code.de>
Marcus Brinkmann [Fri, 19 Jun 2009 21:00:57 +0000 (21:00 +0000)]
2009-06-19  Marcus Brinkmann  <marcus@g10code.de>

* src/Makefile.am (scute_deps): Add libgpg-error.a, libassuan.a.
(scute_libadd): New variable.
(libgpg-error.a, libassuan.a, clean-local): New targets.
(libscute_la_LIBADD): Add $(scute_libadd).

9 years agoAdd a little improvement.
Werner Koch [Fri, 19 Jun 2009 19:04:18 +0000 (19:04 +0000)]
Add a little improvement.

9 years ago2009-06-19 Marcus Brinkmann <marcus@g10code.de>
Marcus Brinkmann [Fri, 19 Jun 2009 15:05:34 +0000 (15:05 +0000)]
2009-06-19  Marcus Brinkmann  <marcus@g10code.de>

* tests/t-getattribute.c (dump_object): Allow empty CKA_START_DATE
and CKA_END_DATE.

9 years ago2009-06-19 Marcus Brinkmann <marcus@g10code.de>
Marcus Brinkmann [Fri, 19 Jun 2009 14:59:38 +0000 (14:59 +0000)]
2009-06-19  Marcus Brinkmann  <marcus@g10code.de>

* src/cert-object.c (scute_attr_prv): Always set CKA_START_DATE
and CKA_END_DATE.

9 years agoHacks to support RSA-2048.
Werner Koch [Fri, 19 Jun 2009 14:55:06 +0000 (14:55 +0000)]
Hacks to support RSA-2048.

9 years agoUse estream for beter portability and future use of the complete estream
Werner Koch [Fri, 19 Jun 2009 10:58:52 +0000 (10:58 +0000)]
Use estream for beter portability and future use of the complete estream
library in case we want to funopen stuff.
Build systems updates.

9 years ago2009-06-19 Marcus Brinkmann <marcus@g10code.de>
Marcus Brinkmann [Fri, 19 Jun 2009 10:25:34 +0000 (10:25 +0000)]
2009-06-19  Marcus Brinkmann  <marcus@g10code.de>

* libtool.m4: Removed.
* m4/libtool.m4, m4/ltoptions.m4, m4/ltsugar.m4, m4/ltversion.m4,
m4/lt~obsolete.m4: New files from libtool 2.2.6.
* configure.ac: Update to libtool 2.2.6.
(lt_cv_deplibs_check_method): Slightly evil hack to get libtool to
our thing.
(AC_DISABLE_STATIC, AC_LIBTOOL_WIN32_DLL, AC_LIBTOOL_RC)
(AC_PROG_LIBTOOL): Obsolete, replaced by ...
(LT_PREREQ, LT_INIT, LT_LANG): ... these new macro invocations.
* src/Makefile.am: Remove a bunch of rules for shared library.
(RCCOMPILE): New.
(LTRCCOMPILE): Use it here.
(.rc.lo): Add quoting.

9 years agoAdd mapping for GPG_ERR_BAD_PIN and _PIN_BLOCKED.
Werner Koch [Thu, 23 Apr 2009 15:22:15 +0000 (15:22 +0000)]
Add mapping for GPG_ERR_BAD_PIN and _PIN_BLOCKED.

10 years ago2008-12-03 Marcus Brinkmann <marcus@g10code.de>
Marcus Brinkmann [Wed, 3 Dec 2008 14:42:56 +0000 (14:42 +0000)]
2008-12-03  Marcus Brinkmann  <marcus@g10code.de>

* configure.ac: Enable AC_CONFIGU_MACRO_DIR.
* m4/ltsugar.m4, m4/libtool.m4, m4/ltversion.m4,
m4/lt~obsolete.m4, m4/ltoptions.m4: New files.
* config.guess, config.sub, ltmain.sh, configure.ac: Updated.

10 years ago2008-10-29 Marcus Brinkmann <marcus@g10code.de>
Marcus Brinkmann [Wed, 29 Oct 2008 20:26:00 +0000 (20:26 +0000)]
2008-10-29  Marcus Brinkmann  <marcus@g10code.de>

* configure.ac (_ASSUAN_ONLY_GPG_ERRORS): Define it.
* src/agent.c (default_inq_cb): Change return type to gpg_error_t
to silence gcc -W warning.
* src/cert-gpgsm.c (search_certs, export_cert_cb): Change type of
argument to silence gcc -W warning.
* src/p11-findobjects.c (CK_DEFINE_FUNCTION): Add explicit cast to
silence gcc -W warning.
* src/table.c (struct scute_table): Change signedness of
FIRST_FREE and LAST_USED members to silence gcc -W warning.
(scute_table_alloc): Change signedness of IDX for the same reason.
* tests/t-getslotinfo.c, tests/t-getsessioninfo.c,
tests/t-getmechanismlist.c, tests/t-auth.c,
tests/t-getattribute.c, tests/t-opensession.c,
tests/t-getslotlist.c, tests/t-getmechanisminfo.c,
tests/t-support.h, tests/t-closeallsessions.c,
tests/t-findobjects.c, tests/t-gettokeninfo.c: Change signedness
of some variables to silence gcc -W warnings.

10 years agoFix last change.
Marcus Brinkmann [Tue, 21 Oct 2008 14:02:21 +0000 (14:02 +0000)]
Fix last change.

10 years ago2008-10-21 Marcus Brinkmann <marcus@g10code.com>
Marcus Brinkmann [Tue, 21 Oct 2008 13:57:04 +0000 (13:57 +0000)]
2008-10-21  Marcus Brinkmann  <marcus@g10code.com>

* src/slots.c (slots_update_slot): Ignore card errors.

10 years ago2008-10-01 Marcus Brinkmann <marcus@g10code.com>
Marcus Brinkmann [Wed, 1 Oct 2008 17:54:25 +0000 (17:54 +0000)]
2008-10-01  Marcus Brinkmann  <marcus@g10code.com>

* src/agent.c (agent_connect): Set assuan log stream.
* src/p11-initialize.c: Include "debug.h".
(C_Initialize): Call _scute_debug_init.
* src/Makefile.am (sources): Add debug.c.
* src/debug.c: New file.
* src/debug.h: Rewritten.
* src/agent.c, src/cert-gpgsm.c, src/cert-object.c,
          src/slots.c, src/error-mapping.c: More or improved or
          adjusted debug output.

10 years ago2008-09-30 Marcus Brinkmann <marcus@g10code.com>
Marcus Brinkmann [Tue, 30 Sep 2008 17:07:04 +0000 (17:07 +0000)]
2008-09-30  Marcus Brinkmann  <marcus@g10code.com>

* src/cert-object.c [!CERT_PARSING]: Disable some certificate
parsing code.  Unfortunately, we can't get rid of all of it for
now.

10 years ago2008-09-30 Marcus Brinkmann <marcus@g10code.com>
Marcus Brinkmann [Tue, 30 Sep 2008 13:13:48 +0000 (13:13 +0000)]
2008-09-30  Marcus Brinkmann  <marcus@g10code.com>

* src/get-path.c (find_program_in_inst_dir): New function.
(get_gpgsm_path, get_gpg_agent_path): Use it to check in install dir.

10 years ago* src/Makefile.am (scute_DEPENDENCIES): Use .libs/versioninfo.o
Werner Koch [Tue, 30 Sep 2008 08:54:19 +0000 (08:54 +0000)]
* src/Makefile.am (scute_DEPENDENCIES): Use .libs/versioninfo.o

* AUTHORS (License): New.

* Makefile.am (AUTOMAKE_OPTIONS): Do not distribute a gzip tarball.
  (EXTRA_DIST): Distibute autogen.sh and README.SVN.

* README.CVS: Replace by README.SVN.

* configure.ac: Update bug address and some comments.
* autogen.sh: Update.

10 years agoBump version.
Marcus Brinkmann [Mon, 29 Sep 2008 16:41:50 +0000 (16:41 +0000)]
Bump version.

10 years ago2008-09-29 Marcus Brinkmann <marcus@g10code.com>
Marcus Brinkmann [Mon, 29 Sep 2008 16:06:31 +0000 (16:06 +0000)]
2008-09-29  Marcus Brinkmann  <marcus@g10code.com>

* src/gpgsm.c (struct search): New member WITH_CHAIN.
(search_cb): Only load chain if WITH_CHAIN is true.
(scute_gpgsm_get_cert): Call search_cb in the agent code path.

10 years ago2008-09-29 Marcus Brinkmann <marcus@g10code.com>
Marcus Brinkmann [Mon, 29 Sep 2008 16:03:54 +0000 (16:03 +0000)]
2008-09-29  Marcus Brinkmann  <marcus@g10code.com>

* src/slots.c (MIN): Remove macro.
(slot_token_maxpinlen, slot_token_pincount): Do not consider
second pincount, which meaning depends on the card version.

10 years ago2008-09-26 Marcus Brinkmann <marcus@g10code.de>
Marcus Brinkmann [Fri, 26 Sep 2008 15:42:17 +0000 (15:42 +0000)]
2008-09-26  Marcus Brinkmann  <marcus@g10code.de>

* src/agent.c: Include "cert.h".
(GET_CERT_INIT_SIZE): New symbol.
(struct get_cert_s): New struct.
(get_cert_data_cb, scute_agent_get_cert): New functions.
* src/gpgsm.c: Include "agent.h".
(scute_gpgsm_get_cert): Take extra argument NO.  Use it to get the
certificate directly from the card, if possible.
* src/gpgsm.h (scute_gpgsm_get_cert): Add extra argument NO to
prototype.
* src/slots.c (slot_init): Pass extra argument to
scute_gpgsm_get_cert invocation.
* src/cert-object.c (scute_attr_prv, scute_attr_cert): Don't use
the fpr, timestamp and expire field of a certificate for now.

10 years agoAdd a lone comment.
Marcus Brinkmann [Tue, 23 Sep 2008 14:18:21 +0000 (14:18 +0000)]
Add a lone comment.

10 years ago2008-09-03 Marcus Brinkmann <marcus@g10code.com>
Marcus Brinkmann [Wed, 3 Sep 2008 18:03:02 +0000 (18:03 +0000)]
2008-09-03  Marcus Brinkmann  <marcus@g10code.com>

* src/Makefile.am (.rc.o): New rule.

10 years ago2008-09-03 Marcus Brinkmann <marcus@g10code.com>
Marcus Brinkmann [Wed, 3 Sep 2008 16:31:30 +0000 (16:31 +0000)]
2008-09-03  Marcus Brinkmann  <marcus@g10code.com>

* src/Makefile.am (EXTRA_DIST): Add stpcpy.h.

10 years ago2008-09-02 Marcus Brinkmann <marcus@g10code.com>
Marcus Brinkmann [Tue, 2 Sep 2008 17:35:03 +0000 (17:35 +0000)]
2008-09-02  Marcus Brinkmann  <marcus@g10code.com>

* configure.ac: Post-release cleanup.
* doc/website/download.xhtml: Update.

10 years ago2008-09-02 Marcus Brinkmann <marcus@g10code.com> scute-1.2.0
Marcus Brinkmann [Tue, 2 Sep 2008 17:14:07 +0000 (17:14 +0000)]
2008-09-02  Marcus Brinkmann  <marcus@g10code.com>

* Released version 1.2.0.

* doc/manual/Makefile.am (CLEANFILES): Add $(images_eps).
(images_eps): New variable.
(scute.dvi): Depend on $(images_eps) instead of $(images_pdf).

10 years ago2008-09-02 Marcus Brinkmann <marcus@g10code.com>
Marcus Brinkmann [Tue, 2 Sep 2008 14:47:44 +0000 (14:47 +0000)]
2008-09-02  Marcus Brinkmann  <marcus@g10code.com>

* Released version 1.2.0.

10 years ago2008-08-23 Marcus Brinkmann <marcus@g10code.com>
Marcus Brinkmann [Sat, 23 Aug 2008 04:40:56 +0000 (04:40 +0000)]
2008-08-23  Marcus Brinkmann  <marcus@g10code.com>

* src/Makefile.am [HAVE_W32_SYSTEM]: Build autonomous DLL.

10 years ago2008-08-23 Marcus Brinkmann <marcus@g10code.com>
Marcus Brinkmann [Sat, 23 Aug 2008 03:33:05 +0000 (03:33 +0000)]
2008-08-23  Marcus Brinkmann  <marcus@g10code.com>

* src/agent.c (gnupg_allow_set_foregound_window)
[!HAVE_W32_SYSTEM]: Define it.

10 years ago2008-08-23 Marcus Brinkmann <marcus@g10code.com>
Marcus Brinkmann [Sat, 23 Aug 2008 03:30:12 +0000 (03:30 +0000)]
2008-08-23  Marcus Brinkmann  <marcus@g10code.com>

* src/Makefile.am [HAVE_W32_SYSTEM]: Build autonomous DLL.
* src/dllmain.c (DllMain): New file.
* src/cert-gpgsm.c: Include "debug.h".  Use
 assuan_pipe_connect_ext instead of assuan_pipe_connect everywhere.
* src/agent.c (WINVER) [HAVE_W32_SYSTEM]: Define symbol.
[HAVE_W32_SYSTEM]: Include <windows.h>.  Do this before including
<assuan.h>.
(gnupg_allow_set_foregound_window): New function.
(agent_connect): Use Sleep() instead of _sleep().
(default_inq_cb): New function, and use it in all transactions.
(agent_configure): Don't bail out if ttytname is not defined.  Set
allow-pinentry-notify.
* tests/t-support.h [_WIN32]: Include <windows.h>.
(init_cryptoki) [_WIN32]: Call WSAStartup.

10 years ago2008-08-21 Marcus Brinkmann <marcus@g10code.com>
Marcus Brinkmann [Thu, 21 Aug 2008 01:40:03 +0000 (01:40 +0000)]
2008-08-21  Marcus Brinkmann  <marcus@g10code.com>

* src/scute.def: Start at @1 instead of @0.

10 years ago2008-08-21 Marcus Brinkmann <marcus@g10code.com>
Marcus Brinkmann [Thu, 21 Aug 2008 00:13:06 +0000 (00:13 +0000)]
2008-08-21  Marcus Brinkmann  <marcus@g10code.com>

* src/agent.c (agent_configure): Fix cut and paste error.

10 years ago2008-08-11 Marcus Brinkmann <marcus@g10code.com>
Marcus Brinkmann [Tue, 12 Aug 2008 15:28:29 +0000 (15:28 +0000)]
2008-08-11  Marcus Brinkmann  <marcus@g10code.com>

* src/agent.c (spawn_process_detachted) [! HAVE_W32_SYSTEM]: Remove.
(agent_configure): Ignore error with old versions of gpg-agent.

10 years ago2008-08-08 Marcus Brinkmann <marcus@g10code.de>
Marcus Brinkmann [Fri, 8 Aug 2008 16:26:17 +0000 (16:26 +0000)]
2008-08-08  Marcus Brinkmann  <marcus@g10code.de>

* configure.ac: Update svn macros.
(BUILD_REVISION, BUILD_FILEVERSION, BUILD_TIMESTAMP): New.
(AC_CONFIG_OUTPUT): Add src/versioninfo.rc.
(GPG_AGENT_DEFAULT, GPG_AGENT): New.
(AC_REPLACE_FUNCS): Add vasprintf and stpcpy.
(AC_CHECK_FUNCS): Add ttyname, localtime_r and timegm.
* src/stpcpy.h, src/stpcpy.c, src/realloc.c: New file from gnulib.
* src/vasprintf.c: New file from libiberty.
* src/support.h [!HAVE_STPCPY]: Include "stpcpy.h".
[!HAVE_TTYNAME]: Define simple replacement function.
(get_gpgsm_path, get_gpg_agent_path)
(default_homedir, make_filename): New prototypes.
* src/Makefile.am: Add W32 support.
(libscute_la_SOURCES): Add get-path.c.
(EXTRA_DIST): Add versioninfo.rc.in.
* src/versioninfo.rc.in: New file.
* src/get-path.c: New file.
* src/agent.c (PATHSEP_C): New macro.
(build_w32_commandline_copy)
(build_w32_commandline) [HAVE_W32_SYSTEM]: New functions.
(spawn_process_deatched): New function.
(agent_connect): Start gpg-agent if it is not running yet.
(agent_configure): Also pass xauthority and pinentry-user-data.
* src/cert-gpgsm.c (COMPAT_FALLBACK) [!HAVE_W32_SYSTEM]: New
macro.
(export_cert_compat) [!COMPAT_FALLBACK]: Remove.
(export_cert) [!COMPAT_FALLBACK]: Don't call export_cert_compat.
Don't create (unused) output pipe cruft.
* src/cert-object.c (time_to_ck_date) [!HAVE_LOCALTIME_R]: Fall
back to localtime.
* tests/t-getslotinfo.c (main) [WIN32]: Call _sleep instead sleep.

10 years ago2008-08-08 Marcus Brinkmann <marcus@g10code.de>
Marcus Brinkmann [Fri, 8 Aug 2008 02:04:10 +0000 (02:04 +0000)]
2008-08-08  Marcus Brinkmann  <marcus@g10code.de>

* src/cryptoki.h (CRYPTOKI_EXPORTS): Define symbol.
* src/error-mapping.h: Do not include <error.h>.
(scute_sys_to_ck): Change type of ERR to int.
* src/error-mapping.c: Do not include <error.h>.
(scute_sys_to_ck): Change type of ERR to int.
* src/slots.c (slot_create_session): Change type of ERR to int.

11 years agoAdd missing word.
Marcus Brinkmann [Mon, 14 Jan 2008 21:43:51 +0000 (21:43 +0000)]
Add missing word.

11 years agoPost-release cleanup.
Marcus Brinkmann [Sat, 19 May 2007 22:12:44 +0000 (22:12 +0000)]
Post-release cleanup.

11 years ago2007-05-03 Marcus Brinkmann <marcus@g10code.de>
Marcus Brinkmann [Thu, 3 May 2007 15:53:21 +0000 (15:53 +0000)]
2007-05-03  Marcus Brinkmann  <marcus@g10code.de>

Released version 1.1.0.

* doc/manual/Makefile.am (images_pdf, CLEANFILES): New variables.
(scute.dvi, scute.pdf): New dependencies.
(%.eps, %.pdf): New rules.
* configure.ac: Check for convert and epstopdf.

* doc/manual/scute.texi (Authentication With Service): Avoid
@indicateurl in TeX output, as this seems to be broken (in
texi2dvi 1.34).

11 years ago2007-05-03 Marcus Brinkmann <marcus@g10code.de>
Marcus Brinkmann [Thu, 3 May 2007 14:27:07 +0000 (14:27 +0000)]
2007-05-03  Marcus Brinkmann  <marcus@g10code.de>

* doc/manual/Makefile.am (images, EXTRA_DIST): New variables.

11 years agoWrap lines correctly.
Marcus Brinkmann [Mon, 30 Apr 2007 03:33:04 +0000 (03:33 +0000)]
Wrap lines correctly.

11 years ago2007-04-30 Marcus Brinkmann <marcus@g10code.de>
Marcus Brinkmann [Mon, 30 Apr 2007 03:31:01 +0000 (03:31 +0000)]
2007-04-30  Marcus Brinkmann  <marcus@g10code.de>

* src/agent.h (scute_agent_is_trusted): New prototype.  Include <stdbool.h>.
* src/agent.c (scute_agent_is_trusted): New implementation.
* src/cert.h (struct cert): New member IS_TRUSTED.
* src/cert-gpgsm.c (export_cert): Set CERT->is_trusted.
* src/cert-object.c (scute_attr_cert): Set CKA_TRUSTED to
CERT->is_trusted.
* tests/t-getattribute.c: Support new option '--printable'.

11 years ago2007-04-30 Marcus Brinkmann <marcus@g10code.de>
Marcus Brinkmann [Mon, 30 Apr 2007 02:17:33 +0000 (02:17 +0000)]
2007-04-30  Marcus Brinkmann  <marcus@g10code.de>

* src/table.c (scute_table_dealloc): Return, but not a value.

12 years ago2007-02-09 Marcus Brinkmann <marcus@g10code.de>
Marcus Brinkmann [Fri, 9 Feb 2007 00:36:34 +0000 (00:36 +0000)]
2007-02-09  Marcus Brinkmann  <marcus@g10code.de>

* src/pkcs11.h: Add definitions for SHA.

12 years ago2006-12-17 Marcus Brinkmann <marcus@g10code.de>
Marcus Brinkmann [Sun, 17 Dec 2006 21:31:01 +0000 (21:31 +0000)]
2006-12-17  Marcus Brinkmann  <marcus@g10code.de>

* src/pkcs11.h: Minor cosmetic changes.  Require CRYPTOKI_GNU now
to switch on the GNU API, and do not check what CRYPTOKI_COMPAT is
defined to, just if it is defined at all.

12 years agoBump revision number.
Marcus Brinkmann [Sun, 17 Dec 2006 14:03:23 +0000 (14:03 +0000)]
Bump revision number.

12 years ago2006-12-17 Marcus Brinkmann <marcus@g10code.de>
Marcus Brinkmann [Sun, 17 Dec 2006 14:02:05 +0000 (14:02 +0000)]
2006-12-17  Marcus Brinkmann  <marcus@g10code.de>

* src/pkcs11.h [__WIN32]: Changed to [_WIN32 ||
CRYPTOKI_FORCE_WIN32] at the end.
Submitted by Alon Bar-Lev.

12 years ago2006-12-11 Marcus Brinkmann <marcus@g10code.de>
Marcus Brinkmann [Sun, 10 Dec 2006 23:32:34 +0000 (23:32 +0000)]
2006-12-11  Marcus Brinkmann  <marcus@g10code.de>

* src/pkcs11.h (CKO_VENDOR_DEFINED): Fixed syntax error.

12 years ago2006-12-10 Marcus Brinkmann <marcus@g10code.de>
Marcus Brinkmann [Sun, 10 Dec 2006 16:44:58 +0000 (16:44 +0000)]
2006-12-10  Marcus Brinkmann  <marcus@g10code.de>

* configure.ac (NEED_GPG_ERROR_VERSION): Bump to 1.4.

12 years agoForgot to update revision.
Marcus Brinkmann [Sun, 10 Dec 2006 00:16:11 +0000 (00:16 +0000)]
Forgot to update revision.

12 years agoFixed last change.
Marcus Brinkmann [Sun, 10 Dec 2006 00:08:40 +0000 (00:08 +0000)]
Fixed last change.

12 years ago2006-12-10 Marcus Brinkmann <marcus@g10code.de>
Marcus Brinkmann [Sun, 10 Dec 2006 00:03:07 +0000 (00:03 +0000)]
2006-12-10  Marcus Brinkmann  <marcus@g10code.de>

* src/pkcs11.h [CRYPTOKI_COMPAT]: Rewrote the compatibility layer.

12 years ago2006-12-09 Marcus Brinkmann <marcus@g10code.de>
Marcus Brinkmann [Sat, 9 Dec 2006 23:27:38 +0000 (23:27 +0000)]
2006-12-09  Marcus Brinkmann  <marcus@g10code.de>

* src/pkcs11.h [__cplusplus]: Protect with extern "C".
Do not use the C++ keyword "template" in parameter lists.
Submitted by Alon Bar-Lev.

12 years agoFix tag.
Marcus Brinkmann [Sat, 9 Dec 2006 23:13:52 +0000 (23:13 +0000)]
Fix tag.

12 years ago2006-12-09 Marcus Brinkmann <marcus@g10code.de>
Marcus Brinkmann [Sat, 9 Dec 2006 23:13:39 +0000 (23:13 +0000)]
2006-12-09  Marcus Brinkmann  <marcus@g10code.de>

* src/pkcs11.h [__WIN32]: Changed to [_WIN32 ||
CRYPTOKI_FORCE_WIN32].
(ck_rv_t): Changed to unsigned long.
(CRYPTOKI_VERSION_MAJOR, CRYPTOKI_VERSION_MINOR,
CRYPTOKI_VERSION_REVISION): New macros.
(CKO_VENDOR_DEFINED, CKH_VENDOR_DEFINED, CKK_VENDOR_DEFINED,
CKC_VENDOR_DEFINED, CKA_VENDOR_DEFINED, CKM_VENDOR_DEFINED,
CKF_EXTENSION, CKR_VENDOR_DEFINED): Add cast to suppress compiler
warning.
Submitted by Alon Bar-Lev.

* src/cryptoki.h (CRYPTOKI_VERSION_MAJOR, CRYPTOKI_VERSION_MINOR):
Removed.

12 years agoDocument the scute SVN repository.
Marcus Brinkmann [Thu, 7 Dec 2006 14:39:22 +0000 (14:39 +0000)]
Document the scute SVN repository.