scute.git
8 weeks agoDo not request certificate data when LEARNing. master
Damien Goutte-Gattat [Sat, 19 May 2018 22:03:21 +0000 (23:03 +0100)]
Do not request certificate data when LEARNing.

* src/agent.c (scute_agent_learn): Use LEARN --sendinfo instead
of LEARN --send.
--

Using --send is useless here and we don't even collect the data
that the agent may send (no data callback), which may cause the
LEARN command to fail.

Of note, the --sendinfo option is available since GnuPG 2.1.1,
meaning Scute would not work anymore with GnuPG 2.0.x. Since that
branch is now EOLed, this should not be a concern.

Signed-off-by: Damien Goutte-Gattat <dgouttegattat@incenp.org>
2 months agoClean up files generated by make check.
Damien Goutte-Gattat [Sat, 19 May 2018 21:56:34 +0000 (22:56 +0100)]
Clean up files generated by make check.

* tests/clean-socketdir: Remove more test-generated files.
--

Running make check may generate more files in the test directory
(notably, if the tests are run while a token is present, the agent
will have written down the shadow keys), that we need to cleanup
afterwards.

Signed-off-by: Damien Goutte-Gattat <dgouttegattat@incenp.org>
11 months agodoc: Revert bug report address to bugs.gnupg.org.
Damien Goutte-Gattat [Mon, 24 Jul 2017 09:33:20 +0000 (11:33 +0200)]
doc: Revert bug report address to bugs.gnupg.org.

--

In agreement with Werner's decision as stated in GnuPG commit
5dac85fba780: bugs.gnupg.org is the canonical bug report address,
independently of what the current development platform is.

Signed-off-by: Damien Goutte-Gattat <dgouttegattat@incenp.org>
12 months agoPost-release updates.
Damien Goutte-Gattat [Fri, 14 Jul 2017 09:13:07 +0000 (11:13 +0200)]
Post-release updates.

--
Signed-off-by: Damien Goutte-Gattat <dgouttegattat@incenp.org>
12 months agoRelease 1.5.0. scute-1.5.0
Damien Goutte-Gattat [Fri, 14 Jul 2017 08:53:59 +0000 (10:53 +0200)]
Release 1.5.0.

* AUTHORS: Update maintainer name and contact.
* NEWS: Update release date.
* configure.ac: Update PACKAGE_BUGREPORT url. Bump LT_REVISION.
* doc/website/download.xhtml: Add 1.5.O release.

Signed-off-by: Damien Goutte-Gattat <dgouttegattat@incenp.org>
12 months agoSearch gpg-connect-agent in PATH at runtime.
Damien Goutte-Gattat [Wed, 12 Jul 2017 07:48:43 +0000 (09:48 +0200)]
Search gpg-connect-agent in PATH at runtime.

* configure.ac: Do not hard-code full path to gpg-connect-agent.
--

By default, Scute should use the gpg-connect-agent program
present in PATH at runtime, unless the user chooses otherwise
at configure-time.

GnuPG-bug-id: 3274
Signed-off-by: Damien Goutte-Gattat <dgouttegattat@incenp.org>
12 months agoSanitize tests environment.
Damien Goutte-Gattat [Wed, 12 Jul 2017 07:48:19 +0000 (09:48 +0200)]
Sanitize tests environment.

* tests/Makefile.am (clean-local): New target.
(TESTS_ENVIRONMENT): New variable.
(EXTRA_DIST): New variable.
* tests/clean-socketdir: New file.
--

We should avoid using the current user's GNUPGHOME directory
(and any pre-existing agent) when running the tests.

Then, since running the tests imply spawning an agent, we should
wipe out the corresponding socket directory upon 'make clean'.
This will also terminate the agent.

GnuPG-bug-id: 3274
Signed-off-by: Damien Goutte-Gattat <dgouttegattat@incenp.org>
12 months agoAdd a manual section for card-stored certificates.
Damien Goutte-Gattat [Mon, 10 Jul 2017 12:27:36 +0000 (14:27 +0200)]
Add a manual section for card-stored certificates.

* doc/manual/scute.texi: Explain how to store the certificate
directly on the card.

Signed-off-by: Damien Goutte-Gattat <dgouttegattat@incenp.org>
12 months agoUpdate manual.
Damien Goutte-Gattat [Sun, 9 Jul 2017 20:40:51 +0000 (22:40 +0200)]
Update manual.

* doc/manual/scute.texi: Update some links. Refer to GnuPG 2
instead of GnuPG 2.0.

Signed-off-by: Damien Goutte-Gattat <dgouttegattat@incenp.org>
12 months agoFix minor typos in doc and comments.
Yuri Chornoivan [Sat, 8 Jul 2017 19:15:42 +0000 (21:15 +0200)]
Fix minor typos in doc and comments.

--
Signed-off-by: Damien Goutte-Gattat <dgouttegattat@incenp.org>
12 months agoUpdate documentation files.
Damien Goutte-Gattat [Wed, 5 Jul 2017 19:52:25 +0000 (21:52 +0200)]
Update documentation files.

* AUTHORS: Update bug report submission URL.
* doc/website/contact.xhtml: Likewise.
* NEWS: Update for upcoming release.
* README: Replace libscute.so by scute.so. Indicate that GnuPG 2.1
is required for some features.
* doc/manual/scute.texi: Likewise.

Signed-off-by: Damien Goutte-Gattat <dgouttegattat@incenp.org>
12 months agoAdd safety check against bad card certificate.
Damien Goutte-Gattat [Tue, 6 Jun 2017 10:39:08 +0000 (12:39 +0200)]
Add safety check against bad card certificate.

* src/agent.c (scute_agent_get_cert): Reject card certificate if
it does not start with an ASN.1 sequence tag.

Signed-off-by: Damien Goutte-Gattat <dgouttegattat@incenp.org>
12 months agoCleanup now unused code.
Damien Goutte-Gattat [Mon, 16 Jan 2017 10:32:45 +0000 (11:32 +0100)]
Cleanup now unused code.

* src/agent.c (build_w32_commandline_copy): Removed.
(build_w32_commandline): Removed.
(spawn_process_detached): Removed.
* src/get-path.c (get_gpg_agent_path): Removed.
(standard_homedir): Removed.
(default_homedir): Removed.
(make_filename): Removed.
* src/support.h: Removed corresponding prototypes.
* configure.ac: Removed --with-gpg-agent option.
--

This patch removes functions that were only used to find the
socket for GnuPG Agent and that are not needed anymore.

Signed-off-by: Damien Goutte-Gattat <dgouttegattat@incenp.org>
12 months agoGet GPG Agent's socket directly from the agent.
Damien Goutte-Gattat [Mon, 16 Jan 2017 10:49:18 +0000 (11:49 +0100)]
Get GPG Agent's socket directly from the agent.

* src/agent.c (agent_connect): Call gpg-connect-agent to get
the socket for a running agent.
* src/get-path.c (get_gpg_connect_agent_path): New function.
* src/support.h (get_gpg_connect_agent_path): New prototype.
* configure.ac: New option --with-gpg-connect-agent-path.
--

This patch replaces all the logic needed to find the socket for
a running GnuPG Agent by a single call to gpg-connect-agent.
This will ensure we will always be able to find the agent,
without having to duplicate the logic already implemented in
GnuPG. Gpg-connect-agent will also take care of starting the
agent if it's not already running.

GnuPG-bug-id: 3195
Signed-off-by: Damien Goutte-Gattat <dgouttegattat@incenp.org>
17 months agoAdd error handling.
NIIBE Yutaka [Mon, 30 Jan 2017 03:30:28 +0000 (12:30 +0900)]
Add error handling.

* src/slots.c (slots_update_slot): Ignore GPG_ERR_ENODEV too.

--
In GnuPG 2.1, scdamon can return GPG_ERR_ENODEV.

Signed-off-by: NIIBE Yutaka <gniibe@fsij.org>
20 months agoFix formatting.
NIIBE Yutaka [Wed, 2 Nov 2016 00:34:30 +0000 (09:34 +0900)]
Fix formatting.

* src/agent.c (scute_agent_get_random): Use '%zu'.

--
'%lu' is wrong on some arch where size_t is unsigned int.
Since we use gpgrt_snprintf, we can depend on the '%z' feature.

Signed-off-by: NIIBE Yutaka <gniibe@fsij.org>
20 months agoautogen.sh: Update from gnupg.
NIIBE Yutaka [Tue, 1 Nov 2016 22:52:50 +0000 (07:52 +0900)]
autogen.sh: Update from gnupg.

--
Detection of .git should be -e so that git worktree can be used.

Signed-off-by: NIIBE Yutaka <gniibe@fsij.org>
23 months agodoc: Update list of not implemented functions.
Damien Goutte-Gattat [Fri, 5 Aug 2016 20:45:09 +0000 (22:45 +0200)]
doc: Update list of not implemented functions.

* README: Update list of not implemented functions.
* doc/manual/scute.texi: Likewise.
* TODO: Remove C_GenerateRandom from the TODO list.

Signed-off-by: Damien Goutte-Gattat <dgouttegattat@incenp.org>
23 months agodoc: Scute can be used to sign documents.
Damien Goutte-Gattat [Fri, 5 Aug 2016 20:45:08 +0000 (22:45 +0200)]
doc: Scute can be used to sign documents.

* doc/manual/scute.texi: Explain how to use Scute with LibreOffice.
* doc/manual/libreoffice-certificate-selection.png: New image.
* doc/manual/libreoffice-digital-signatures.png: New image.
* doc/manual/libreoffice-pdf-signature.png: New image.
* doc/manual/Makefile.am: Include the new images.
* README: Mention that Scute can work with LibreOffice.
* doc/website/index.xhtml: Likewise.

Signed-off-by: Damien Goutte-Gattat <dgouttegattat@incenp.org>
23 months agodoc: Scute can now be used to sign emails.
Damien Goutte-Gattat [Fri, 5 Aug 2016 20:45:07 +0000 (22:45 +0200)]
doc: Scute can now be used to sign emails.

* doc/manual/scute.texi: Explain how to use Scute for email signing.
* doc/manual/thunderbird-account-settings.png: New image.
* doc/manual/thunderbird-smime-button.png: New image.
* doc/manual/Makefile.am: Include the two above files.
* doc/website/index.xhtml: Mention the email signing capability.
* README: Likewise.
--

Since commit e22c8cf, which added support for generic hash functions
in addition to the TLS-specific 'tls-md5sha1', Scute is no longer
limited to TLS client authentication.

Signed-off-by: Damien Goutte-Gattat <dgouttegattat@incenp.org>
23 months agodoc: Remove obsolete info about Mozilla PSM.
Damien Goutte-Gattat [Fri, 5 Aug 2016 20:45:06 +0000 (22:45 +0200)]
doc: Remove obsolete info about Mozilla PSM.

* README: Remove obsolete instruction about the Mozilla Personal
Security Manager.
--

Mozilla does no longer ship the Personal Security Manager as a
separate package; it is now built directly with Firefox.

Signed-off-by: Damien Goutte-Gattat <dgouttegattat@incenp.org>
23 months agodoc: Scute can automatically start the agent.
Damien Goutte-Gattat [Fri, 5 Aug 2016 20:45:05 +0000 (22:45 +0200)]
doc: Scute can automatically start the agent.

* README: Remove paragraph about the need to have an agent up and
running and the GPG_AGENT_INFO variable set.
* doc/manual/scute.texi: Likewise.
--

As all other components of GnuPG, Scute does not need the
GPG_AGENT_INFO variable anymore, and can start the agent on
demand.

Signed-off-by: Damien Goutte-Gattat <dgouttegattat@incenp.org>
2 years agoAdd test for C_GenerateRandom.
Damien Goutte-Gattat [Wed, 6 Apr 2016 07:17:00 +0000 (09:17 +0200)]
Add test for C_GenerateRandom.

* tests/Makefile.am (TESTS): Add t-generaterandom test.
* tests/t-generaterandom.c: New file.

Signed-off-by: Damien Goutte-Gattat <dgouttegattat@incenp.org>
2 years agoCheck whether the card has a RNG.
Damien Goutte-Gattat [Wed, 6 Apr 2016 07:16:59 +0000 (09:16 +0200)]
Check whether the card has a RNG.

* src/agent.c (learn_status_cb): Learn from the agent whether the
card supports GET CHALLENGE.
* src/agent.h (struct agent_card_info_s): New member rng_available.
* src/p11-gettokeninfo (C_GetTokenInfo): Set CKF_RNG flag.
* src/slots.c (slot_token_has_rng): New function.
* src/slots.h (slot_token_has_rng): New prototype.
Parse card capabilities
--

Now that C_GenerateRandom is implemented, we can inform the client
application that a RNG is available on the token.

But support for the GET CHALLENGE operation does not seem to be
mandatory as per the OpenPGP Card specification, so we should
first make sure that the inserted token does support it.

The code for parsing the EXTCAP line is taken from GnuPG, with
Werner's permission to reuse it under the same licensing terms as
the rest of Scute.

Signed-off-by: Damien Goutte-Gattat <dgouttegattat@incenp.org>
2 years agoImplement C_GenerateRandom.
Damien Goutte-Gattat [Wed, 6 Apr 2016 07:16:58 +0000 (09:16 +0200)]
Implement C_GenerateRandom.

* src/agent.c (scute_agent_get_random, get_challenge_data_cb):
New functions.
* src/agent.h (scute_agent_get_random): New prototype.
* src/p11-generaterandom.c (C_GenerateRandom): Implement feature.

Signed-off-by: Damien Goutte-Gattat <dgouttegattat@incenp.org>
2 years agoUpdate required libgpg-error version.
Damien Goutte-Gattat [Wed, 23 Mar 2016 22:09:45 +0000 (23:09 +0100)]
Update required libgpg-error version.

* configure.ac: Set required version of libgpg-error to 1.14.
* README: Update documentation accordingly.
* doc/manual/scute.texi: Likewise.
* doc/website/download.xhtml: Likewise.
--

Since commit 097a29f, Scute needs the gpgrt_*printf functions,
which were introduced in libgpg-error-1.14.

Signed-off-by: Damien Goutte-Gattat <dgouttegattat@incenp.org>
2 years agoRemove unused variable.
Werner Koch [Wed, 23 Mar 2016 11:40:21 +0000 (12:40 +0100)]
Remove unused variable.

* src/slots.c (session_sign): Remove uses var "session".

Signed-off-by: Werner Koch <wk@gnupg.org>
2 years agoStrip trailing spaces from two files.
Werner Koch [Wed, 23 Mar 2016 11:36:45 +0000 (12:36 +0100)]
Strip trailing spaces from two files.

--

2 years agoMinor cleanup for commit dd7cf6c.
Werner Koch [Wed, 23 Mar 2016 11:35:38 +0000 (12:35 +0100)]
Minor cleanup for commit dd7cf6c.

* src/agent.c (pksign_parse_result): Remove leading Nul byte only if
it is a suffix.
--

Signed-off-by: Werner Koch <wk@gnupg.org>
2 years agoscute: Remove prepended nul byte in signature data
Damien Goutte-Gattat [Wed, 23 Mar 2016 08:35:46 +0000 (09:35 +0100)]
scute: Remove prepended nul byte in signature data

* src/agent.c (pksign_parse_result): Check for nul byte prepended
by the agent to the signature value.
--

GPG Agent may prepend a nul byte in the signature value if the
first byte of the signature has its most significant bit set, to
prevent it from being interpreted as a sign bit (see the function
agent_pksign_do, in GnuPG's agent/pksign.c file).

The current sexp parser in Scute does not expect this extra nul
byte, and will reject any signature containing it with a
GPG_ERR_INV_LENGTH error.

This patch checks for an initial nul byte in the signature
data, and removes it.

Signed-off-by: Damien Goutte-Gattat <dgouttegattat@incenp.org>
2 years agoSet configure options for cross-compilation.
Oleg Gurevich [Mon, 18 Jan 2016 10:39:07 +0000 (11:39 +0100)]
Set configure options for cross-compilation.

* autogen.rc: Set configure options for cross-compilation based on
'myhost'.

Signed-off-by: Justus Winter <justus@g10code.com>
2 years agoFix Windows build
Oleg Gurevich [Mon, 11 Jan 2016 12:50:17 +0000 (13:50 +0100)]
Fix Windows build

* configure.ac: Require newer automake version. Print configuration
summary.
(BUILD_REVISION): Fix.
(BUILD_REVISION_DEC): Add and use the decimal revision where required.
* src/scute.def: Add required 'LIBRARY' statement.
* src/versioninfo.rc.in: Use decimal revision.

Signed-off-by: Justus Winter <justus@g10code.com>
2 years agoscute: Include sexp-parse.h in source files
Damien Goutte-Gattat [Sun, 3 Jan 2016 14:56:23 +0000 (15:56 +0100)]
scute: Include sexp-parse.h in source files

* src/Makefile.am: Add sexp-parse.h in source files.
--

Omitting sexp-parse.h from the list of source files excludes it
from the archive generated by `make dist'.

Signed-off-by: Damien Goutte-Gattat <dgouttegattat@incenp.org>
2 years agoSupport hash functions other than 'tls-md5sha1'.
Justus Winter [Wed, 23 Dec 2015 14:20:17 +0000 (15:20 +0100)]
Support hash functions other than 'tls-md5sha1'.

* src/agent.c (decode_hash): New function.
(scute_agent_sign): Use the new function, and return the correct size
not the maximum size if 'sig_result' is NULL.

Signed-off-by: Justus Winter <justus@g10code.com>
2 years agoSupport 4096 bit RSA keys.
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>
2 years agoProperly parse the s-expressions.
Justus Winter [Wed, 23 Dec 2015 12:21:48 +0000 (13:21 +0100)]
Properly parse the s-expressions.

* src/agent.c (pksign_parse_result): New function.
(scute_agent_sign): Use the new function to parse the s-expression.
* src/sexp-parse.h: New file copied from GnuPG.

Signed-off-by: Justus Winter <justus@g10code.com>
2 years agoIntroduce constant for maximum signature length.
Justus Winter [Wed, 23 Dec 2015 12:21:00 +0000 (13:21 +0100)]
Introduce constant for maximum signature length.

* src/agent.c (MAX_SIGNATURE_BITS): New macro.
(scute_agent_sign): Use new macro.

Signed-off-by: Justus Winter <justus@g10code.com>
2 years agotests: Update Makefile.am, signal skipped tests.
Justus Winter [Wed, 23 Dec 2015 16:38:55 +0000 (17:38 +0100)]
tests: Update Makefile.am, signal skipped tests.

* tests/Makefile.am (INCLUDES): Use the new name 'AM_CPPFLAGS'.
* tests/t-auth.c (main): Properly signal that the test is skipped.
* tests/t-closeallsessions.c (main): Likewise.
* tests/t-findobjects.c (main): Likewise.
* tests/t-getattribute.c (main): Likewise.
* tests/t-getmechanisminfo.c (main): Likewise.
* tests/t-getmechanismlist.c (main): Likewise.
* tests/t-getsessioninfo.c (main): Likewise.
* tests/t-gettokeninfo.c (main): Likewise.
* tests/t-opensession.c (main): Likewise.

Signed-off-by: Justus Winter <justus@g10code.com>
2 years agoMute trivial unused-parameter warnings.
Justus Winter [Wed, 23 Dec 2015 12:15:09 +0000 (13:15 +0100)]
Mute trivial unused-parameter warnings.

--
This covers all trivial cases (e.g. the stubbed-out PKCS#11
functions).  It does not add any code.

Signed-off-by: Justus Winter <justus@g10code.com>
2 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>
2 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>
2 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>
2 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>
2 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>
2 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>
2 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>
2 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>
2 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>
2 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>
2 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.

2 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>
2 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>
2 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>
2 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>
2 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>
2 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>
2 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>
2 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>
2 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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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