Jonathan McDowell [Sun, 3 Nov 2013 01:22:33 +0000 (18:22 -0700)]
Add support for old Elgamal v3 key IDs
Old versions of GnuPG put Elgamal (type 16) keys inside v3 packets.
The method of getting the keyid for these keys was via a RIPE MD160
hash approach similar to the SHA-1 approach used in v4. While nothing
supports this these days there are keys in the public keyserver
network that contain this sort of data and if we don't parse the keyid
correctly we can't show things like self-sigs.
Jonathan McDowell [Sat, 2 Nov 2013 05:00:25 +0000 (22:00 -0700)]
Don't store a key if we can't get the keyid
If the get_keyid call fails for a key then we shouldn't be storing it,
so don't.
Jonathan McDowell [Sat, 2 Nov 2013 04:58:02 +0000 (21:58 -0700)]
Add a subkey ID mapping DB for DB4 backend
With the increased use of signature subkeys and the fact long
keyids are being used to do HKP lookups we need to store a mapping
of the subkey long keyids to primary key ids. Previously the fact
we did this for the 32 bit subkey id was enough. Add a new DB for
the DB4 backend that can map the 64 bit subkey ID to the 64 bit
primary key ID.
Jonathan McDowell [Sat, 2 Nov 2013 04:51:09 +0000 (21:51 -0700)]
Check that libcurl supports SSL if using HKPS with HKP backend
Use CURL's runtime feature checking to ensure that we have support
for SSL before trying to use a HKPS (HTTPS) remote keyserver with
the HKP keydb backend.
Jonathan McDowell [Sat, 2 Nov 2013 04:31:43 +0000 (21:31 -0700)]
Include keyid when logging signature checking errors
Having information on an unknown signature hash or version is much
more useful if we know what key it's associated with.
Jonathan McDowell [Sat, 2 Nov 2013 04:15:04 +0000 (21:15 -0700)]
Try to use a user specific configuration file if available
Try looking for $XDG_CONFIG_HOME/onak.conf (or $HOME/.config/onak.conf
if $XDG_CONFIG_HOME is not set) before looking for the system wide
config file. This allows users to use their own config file without
having to always use the -c option to provide it.
Jonathan McDowell [Sat, 2 Nov 2013 03:59:51 +0000 (20:59 -0700)]
Fix memory leaks found using valgrind
A harmless failure to cleanup the config structure before exiting
keydctl and a more major (small, but key runs for a long period of
time) leak of the search string for fetching a key by text string
in keyd.
Jonathan McDowell [Sat, 2 Nov 2013 03:56:41 +0000 (20:56 -0700)]
Add some more algorithm constants to openpgp.h
Some from RFC2440 (MD2/SHA1X), some from GnuPG (CAMELLIA).
Jonathan McDowell [Wed, 9 Oct 2013 16:35:29 +0000 (17:35 +0100)]
Make wotsap ignore revoked keys
wotsap wasn't paying attention to keys that were revoked, leading to them
being included in the output key/signature lists. Force the load of a key
before colouring it so we can ignore it if it's revoked.
Jonathan McDowell [Wed, 9 Oct 2013 16:10:00 +0000 (17:10 +0100)]
Enhance HKP backend URL parsing
The initial commit of the HKP backend just took a hostname as the "db_dir"
parameter. Extend this to cope with an http:// or hkp:// style URL, allowing
the port to be specified as well.
Jonathan McDowell [Wed, 9 Oct 2013 11:30:44 +0000 (12:30 +0100)]
Remove now obsolete SYMBOL_CACHE_SIZE directive from Doxygen config
Jonathan McDowell [Wed, 9 Oct 2013 11:15:56 +0000 (12:15 +0100)]
Clean up use of K&R style function definitions in md5.c
md5_process_block / md5_read_ctx had K&R style function definitions.
Clean them up to use ANSI C style like the rest of the code (including
other functions in that file). Spotted by Doxygen.
Jonathan McDowell [Wed, 9 Oct 2013 10:46:42 +0000 (11:46 +0100)]
Switch keyd to allow multiple clients to be served at once
keyd was only accepting a single connection at a time and dealing with
all the requests from it before accepting the next client. This causes
delays in regular HKP processing while running something like wotsap on
a live keyserver.
Most of the pieces were already in place to deal with a per request select
based processing loop, so this commit switches to that model. A better
solution in the future may be to consider the use of libevent or libev,
but at present this enables the use of long runs stats programs while
still being able to service HKP requests in reasonable time.
Jonathan McDowell [Sun, 6 Oct 2013 17:05:20 +0000 (18:05 +0100)]
Bump debhelper compat level to 9
Jonathan McDowell [Sun, 6 Oct 2013 12:19:19 +0000 (13:19 +0100)]
Alter version number to indicate git build
Jonathan McDowell [Sun, 6 Oct 2013 12:15:39 +0000 (13:15 +0100)]
Use dh-autoreconf to rebuild autoconf artifacts
Jonathan McDowell [Sun, 6 Oct 2013 11:41:18 +0000 (12:41 +0100)]
Merge branch 'switch-to-debhelper' of git://git.sommitrealweird.co.uk/onak
Jonathan McDowell [Wed, 2 Oct 2013 10:34:23 +0000 (11:34 +0100)]
Add aclocal.m4 to .gitignore
Jonathan McDowell [Tue, 1 Oct 2013 16:08:38 +0000 (17:08 +0100)]
Set the user agent to onak/<version> for HKP backend
Jonathan McDowell [Tue, 1 Oct 2013 15:33:06 +0000 (16:33 +0100)]
Fix reference to onak binary to keydctl in keydctl help output
Brett Parker [Tue, 1 Oct 2013 11:30:52 +0000 (12:30 +0100)]
Switch debian build system to dh
Jonathan McDowell [Tue, 1 Oct 2013 11:09:01 +0000 (12:09 +0100)]
0.4.2 release
Release; update version string in configure.ac, README, Doxyfile.
Update HISTORY and debian/changelog.
Jonathan McDowell [Tue, 1 Oct 2013 10:42:22 +0000 (11:42 +0100)]
Update Debian Vcs-* fields to point to git repository
Jonathan McDowell [Tue, 1 Oct 2013 10:32:18 +0000 (11:32 +0100)]
Update Debian packaging standards version to 3.9.4
No changes other than bumping the date in the copyright file to be current.
Jonathan McDowell [Tue, 1 Oct 2013 10:29:12 +0000 (11:29 +0100)]
Use LDFLAGS when building backend shared objects
The LDFLAGS weren't being passed when linking the backend shared
objects; fix that so things like the hardening flags Debian adds
get uses correctly.
Jonathan McDowell [Mon, 30 Sep 2013 16:31:03 +0000 (17:31 +0100)]
Add HKP database backend
A potential use case of onak is as a proxy server. Add an HKP backend
that uses libcurl to make requests to a remote keyserver to fetch, search
or store keys. The "db_dir" configuration parameter becomes the base
host name for the remote keyserver e.g.:
db_backend hkp
db_dir the.earth.li
In the future the addition of the ability to stack database backends
should allow this to be used to turn onak into a caching keyserver.
Jonathan McDowell [Mon, 30 Sep 2013 14:18:31 +0000 (15:18 +0100)]
Add initial wotsap file generation tool
Wotsap (http://www.lysator.liu.se/~jc/wotsap/) is a web of trust
statistics and pathfinding tool. It takes a set of preformatted key
data covering the primary UID and signatures on each key.
This commit adds a tool which will generate the file data required for
wotsap. These files still need ar/bzip2 run against them in order to
be fed into wotsap, but are generated from the live keyring data.
Jonathan McDowell [Mon, 30 Sep 2013 11:50:01 +0000 (12:50 +0100)]
Add support for checking RIPEMD160 signatures
Sufficiently recent versions of nettle have support for RIPEMD160 and
there are various keys in the wild that use this algorithm, so add an
autoconf check for the nettle support and use it if it's available.
Jonathan McDowell [Mon, 30 Sep 2013 11:22:59 +0000 (12:22 +0100)]
Add -c option to maxpath / sixdegrees to specify config file
maxpath + sixdegrees weren't allowing a config file to be specified
in the same fashion as onak. Add the -c option so they do so, which
helps when using these tools in a non-system install setup.
Jonathan McDowell [Sun, 29 Sep 2013 21:51:18 +0000 (22:51 +0100)]
Fix PostgreSQL backend compilation
This got missed with the changes to get_keyid.
Jonathan McDowell [Sun, 29 Sep 2013 21:35:44 +0000 (22:35 +0100)]
Use OPENPGP_PACKET_COMMENT in parse_keys instead of raw constant
Jonathan McDowell [Sun, 29 Sep 2013 21:19:26 +0000 (22:19 +0100)]
Add ctags/cscope files to .gitignore + clean rule
Jonathan McDowell [Sun, 29 Sep 2013 21:12:21 +0000 (22:12 +0100)]
Prevent read_openpgp_stream from returning empty packets
If read_openpgp_stream got an invalid packet that had a semi valid
header it could potentially return an empty package, which would
confuse splitkeys. Cleanup the final package returned if it turns
out we didn't have valid data for it.
Fixes Debian bug #716350
Jonathan McDowell [Sun, 29 Sep 2013 20:30:06 +0000 (21:30 +0100)]
Only seed initial Debian package database if key file is available.
If the Debian package detected no keyring database on installation it
would seed the database with my key, from
/usr/share/doc/onak/noodles.key.gz. This is against Debian policy 12.3 -
packages cannot require files from /usr/share/doc/ to function. Only
seed the database if the file exists, avoiding issues installing when
skipping /usr/share/doc/
Fixes Debian bug #710665.
Jonathan McDowell [Sat, 25 Aug 2012 04:52:20 +0000 (21:52 -0700)]
Move stats_key structure to stats.h
It still ends up pulled into the core objects by mem.c / hash.c,
but we no longer pollute keystructs.h
Jonathan McDowell [Mon, 30 Jul 2012 01:36:11 +0000 (18:36 -0700)]
Remove dependency on onak-conf and logthing for splitkeys
No need for this to pull either the overall onak config or logthing in.
Jonathan McDowell [Wed, 25 Jul 2012 05:27:05 +0000 (22:27 -0700)]
Add missing onak.h from last changeset
Jonathan McDowell [Wed, 25 Jul 2012 04:44:51 +0000 (21:44 -0700)]
Start pulling non-library material out of core source files
As part of moving towards a libonak start pulling things that are related
to the onak keyserver out of the core PGP related source files. Start
with logthing, our logging framework, instead moving towards an onak_status_t
enum to allow up to bubble up errors to the caller.
Jonathan McDowell [Fri, 20 Jul 2012 03:18:24 +0000 (20:18 -0700)]
Add some more OpenPGP related constants
Extra packet types, the compression types and the symmetric algorithms.
Jonathan McDowell [Sat, 14 Jul 2012 19:20:27 +0000 (13:20 -0600)]
Fix the size of the hash array when checking sig hashes
It was only 20 bytes - big enough for SHA1, but not when the larger
SHA2 hashes are available in nettle. This allows up to SHA512.
Jonathan McDowell [Sat, 14 Jul 2012 19:14:09 +0000 (13:14 -0600)]
Move .bzrignore to .gitignore
Jonathan McDowell [Sat, 14 Jul 2012 18:44:35 +0000 (12:44 -0600)]
Add initial Doxygen support
Massage the existing function/structure comments into something that
Doxygen likes, and document a few additional bits and pieces that
Doxygen was complaining about.
Jonathan McDowell [Fri, 13 Jul 2012 17:25:12 +0000 (11:25 -0600)]
Don't reject sig hashes we don't have support for.
We should err on the side of caution when we can't verify a sighash
because we don't have that algorithm compiled in, and allow it.
Jonathan McDowell [Fri, 13 Jul 2012 00:11:11 +0000 (18:11 -0600)]
Add checking for signature hashes
Signatures include the first 2 octets of the hash the signature is
over. Checking this matches what we expect is an easy way to drop
corrupt or incorrect signatures. It doesn't provide any cryptographic
verification but is a useful sanity check when accepting keys.
Jonathan McDowell [Thu, 12 Jul 2012 18:24:01 +0000 (12:24 -0600)]
Dump all the stripped keys at the end, rather than one at a time
We don't need to dump everything as we go, and will end up dumping
more than we intend (as we'll dump all of the keys still to go).
Jonathan McDowell [Wed, 11 Jul 2012 00:13:57 +0000 (18:13 -0600)]
Add libnettle autoconf checks for SHA224, SHA384 & SHA512.
Jonathan McDowell [Mon, 25 Jun 2012 21:18:03 +0000 (22:18 +0100)]
Switch to source format 3.0 (quilt) for Debian packaging.
Jonathan McDowell [Wed, 25 Apr 2012 04:59:45 +0000 (21:59 -0700)]
Cleanup hashquery.o on make clean
Jonathan McDowell [Wed, 25 Apr 2012 04:54:58 +0000 (21:54 -0700)]
Build Debian version number to indicate bzr build
Jonathan McDowell [Wed, 25 Apr 2012 04:30:22 +0000 (21:30 -0700)]
0.4.1 release
Release; update version string in configure.ac, README.
Update HISTORY and debian/changelog.
Jonathan McDowell [Wed, 25 Apr 2012 04:15:38 +0000 (21:15 -0700)]
Avoid race condition when receiving incoming mails
There's a race condition between us starting to accept a new incoming
mail and taking the lock to start processing it; a second copy of
onak-mail may come in and start to process the incomplete mail we're
in the process of receiving. Receive to a tmp file and rename to .onak
after we've received everything.
Fixes Debian bug #650557. Thanks to Helmut Grohne <helmut@subdivi.de>
Jonathan McDowell [Wed, 11 Apr 2012 05:27:02 +0000 (06:27 +0100)]
Fix deletion of skshash in DB4 backend
We need to delete the skshash while we still have the publickey
structure, so we can calculate the hash to free.
Jonathan McDowell [Wed, 11 Apr 2012 05:11:32 +0000 (22:11 -0700)]
Fix deletion error logging for DB4 backend
The change to include the keyid failed to remove some commas on the
format string, meaning the output was even less useful.
Jonathan McDowell [Mon, 2 Apr 2012 21:19:15 +0000 (14:19 -0700)]
Install /pks/hashquery in Debian packaging
Jonathan McDowell [Mon, 2 Apr 2012 17:50:21 +0000 (10:50 -0700)]
Add keyid to DB4 backend deletion error messages
We display an error when we fail to delete an entry from the worddb or
similar, but weren't including the keyid so this wasn't very useful.
Jonathan McDowell [Mon, 2 Apr 2012 00:24:18 +0000 (17:24 -0700)]
Add missing initialisation of DB4 cursor for skshash when deleting key
We were trying to use the id32db cursor which had already been closed.
Jonathan McDowell [Sun, 1 Apr 2012 22:21:10 +0000 (15:21 -0700)]
Drop HISTORY file in /usr/share/doc; it's already present as changelog.gz
Debian packaging cleanup.
Jonathan McDowell [Sun, 1 Apr 2012 22:02:24 +0000 (15:02 -0700)]
Allow retrieval of key by full fingerprint
GPG 1.4.12 switches to using the full fingerprint of a key when requesting
a refresh (commit
6fe25e5602fabe92c68e5ba30e4777221e8612df). We were only
supporting retrieval by 32 or 64 bit key ID. Detect when we're passed a
fingerprint and truncate it to the last 64 bits so we can look it up.
In the future we probably want to extend to being able to do lookups by
full fingerprint.
Jonathan McDowell [Sun, 1 Apr 2012 21:27:11 +0000 (14:27 -0700)]
Always put a leading 0x on keyids in HTML output links
We didn't always put a leading 0x when outputting URLs as part of
an index, which confuses some clients that try to autoparse returned
key IDs.
Jonathan McDowell [Sun, 1 Apr 2012 21:09:12 +0000 (14:09 -0700)]
Fix display of SHA-1 fingerprints
SHA-1 fingerprints have a double space in the middle and we were
putting the extra space in the wrong place.
Jonathan McDowell [Sun, 27 Nov 2011 22:45:44 +0000 (14:45 -0800)]
Add AC_PROG_CC_C99 to configure.ac
We aim to compile cleanly under C99, so get autoconf to give us the
appropriate compiler flags to enable it by default.
Jonathan McDowell [Tue, 18 Oct 2011 14:20:43 +0000 (07:20 -0700)]
Use nettle for hashing when available rather than internal MD5/SHA1 routines
Change the internal MD5/SHA1 routines to match nettle's name and
calling convention and add suitable autoconf bits to auto-select
nettle if it's available, otherwise fall back to the internal
routines as usual.
Not so much of an issue for MD5/SHA1 (though we might end up with
more optimised routines in some instances), but allows easier use
of other hashing/crypto functions in the future.
Jonathan McDowell [Tue, 18 Oct 2011 05:02:44 +0000 (22:02 -0700)]
Use C99 uint32_t rather than u_int32_t
Jonathan McDowell [Tue, 18 Oct 2011 04:53:03 +0000 (21:53 -0700)]
Clean up "set but not used" GCC warnings
GCC 4.6 now errors when a variable is set but not used; clean up
instances of this to fix compilation.
Jonathan McDowell [Sat, 7 May 2011 04:59:03 +0000 (21:59 -0700)]
Export find_packet from merge.c
Add find_packet to merge.h so it can be used in other components.
Jonathan McDowell [Mon, 2 May 2011 02:15:41 +0000 (19:15 -0700)]
Add some more subpacket types to the list to ignore
There are various signature subpacket types we know about, but have
no need to decode (or it doesn't make sense to decode if we're not
checking that the signature is valid). Add some more to prevent
warnings when adding keys that have these subpackets present.
Jonathan McDowell [Sun, 1 May 2011 02:55:05 +0000 (19:55 -0700)]
Clean up file header copyrights
Project Purple isn't a legal entity; credit primary author of files
and include a minimal GPL 2 header in each file rather than relying
on the copy of LICENCE shipped with everything else.
Jonathan McDowell [Sun, 1 May 2011 00:49:57 +0000 (17:49 -0700)]
Define OpenPGP constants and use them rather than magic numbers
Take the set of OpenPGP constants from RFC4880 that we're using
and produce some #defines, to try and make the code a bit clearer.
Jonathan McDowell [Sat, 30 Apr 2011 04:13:31 +0000 (21:13 -0700)]
Remove my name from the lookup/gpgwww trailers.
No reason for my name to be there; the onak name + VERSION is more
appropriate.
Jonathan McDowell [Mon, 25 Apr 2011 04:56:36 +0000 (21:56 -0700)]
Add a test for key fetching by SKS hash
New test to check we can correctly retrieve a key by SKS hash using
the onak CLI tool.
Jonathan McDowell [Mon, 25 Apr 2011 04:49:32 +0000 (21:49 -0700)]
Add /pks/hashquery
Add /pks/hashquery - an implementation of the SKS hash retrieval
portion of the gossip protocol.
hashquery takes a marshalled array of SKS hashes to retrieve and
returns a marshalled array of the keys requested.
(The marshalling functions essentially take the hash/key structures
and flatten them to a byte stream with a preceding network order
32 bit size value.)
Jonathan McDowell [Mon, 25 Apr 2011 04:03:30 +0000 (21:03 -0700)]
Add a dependency on CORE_OBJS to the dynamic backends
If these change we need to relink or unexpected things happen.
Jonathan McDowell [Mon, 25 Apr 2011 03:50:40 +0000 (20:50 -0700)]
Add support for displaying/retrieving by SKS hash to lookup and onak CLI
Now we are storing the SKS hash details of a key add the ability to
display the hash in /pks/lookup and retrieve it via the new hget
function. This should be compatible with the way in which SKS extends
lookup to support its hashes.
Also add hget to the onak CLI tool and the -s option for showing the
SKS hash of keys.
Jonathan McDowell [Mon, 25 Apr 2011 03:11:42 +0000 (20:11 -0700)]
Add support for key retrieval by SKS hash
Add a new backend DB function fetch_key_skshash and implement it
for the fs/db4/keyd & dynamic backends. This allows us to retrieve
a key using the SKS hash, which will be necessary to implement the
gossip protocol.
Jonathan McDowell [Mon, 25 Apr 2011 02:06:06 +0000 (19:06 -0700)]
Add support for calculating SKS style key hashes
SKS uses an MD5 hash over the sorted packets from a key as a token
for its gossip protocol. Add support for calculating this hash and a
structure for passing it around within onak.
Jonathan McDowell [Mon, 25 Apr 2011 01:47:24 +0000 (18:47 -0700)]
Make compare_packet follow memcmp semantics and export to other modules
compare_packet is potentially useful elsewhere, but rather than a
true/false comparison provide -1/0/1 for less than/equal/greater
than, as memcmp does.
Jonathan McDowell [Mon, 25 Apr 2011 01:33:13 +0000 (18:33 -0700)]
Fix buffer_getchar to only error if we'd exceed the buffer size
We were erroring when we retrieved the end of the buffer, and not
if we overflowed past the end. Check if we'd overflow and return
an error only in that case.
Jonathan McDowell [Mon, 25 Apr 2011 00:54:59 +0000 (17:54 -0700)]
Remove unused keydb_dynamic.h header file
Jonathan McDowell [Sun, 24 Apr 2011 02:28:31 +0000 (19:28 -0700)]
Add basic testing infrastructure + initial tests
Add some simple scripts to ensure key addition, deletion and retrieval
are at least working ok.
Jonathan McDowell [Sat, 23 Apr 2011 23:05:44 +0000 (16:05 -0700)]
Change fd_write to use fwrite instead of fputc
I have no idea why I had a loop around fputc instead of just
using fwrite.
Jonathan McDowell [Sat, 23 Apr 2011 22:45:16 +0000 (23:45 +0100)]
Change to using void * for character function content parameter
We were passing unsigned char * as the parameter to all of the
character fetching/putting functions. Use void * instead so that
we can pass other types of data without needlessly having to cast.
Jonathan McDowell [Wed, 20 Apr 2011 05:16:18 +0000 (22:16 -0700)]
Fix stupid case syntax error
Jonathan McDowell [Wed, 20 Apr 2011 05:13:09 +0000 (22:13 -0700)]
Add restart/force-reload options to init script
Debian requires these. Just do a stop and start.
Jonathan McDowell [Wed, 20 Apr 2011 05:12:44 +0000 (22:12 -0700)]
Add -1 to Debian package version
We're not a native Debian package.
Jonathan McDowell [Wed, 20 Apr 2011 05:00:14 +0000 (22:00 -0700)]
0.4.0 release
Release; update version string in configure.ac, README.
Update HISTORY and debian/changelog.
Jonathan McDowell [Sun, 17 Apr 2011 06:27:35 +0000 (23:27 -0700)]
Add Debian logrotate config snippet
Add a weekly rotation logrotate config snippet for onak.log
Jonathan McDowell [Sat, 16 Apr 2011 20:28:33 +0000 (13:28 -0700)]
Output details of key search after retrieval for pks/lookup
Rather than logging what we're searching for beforehand, and then
indicating failure after (but not success), just output the results
and search details after retrieval.
Jonathan McDowell [Sat, 16 Apr 2011 17:04:45 +0000 (10:04 -0700)]
Add Debian init.d file for keyd
Add an init.d file to start up/shut down keyd on Debian machines if
it's configured in onak.conf.
Jonathan McDowell [Mon, 11 Apr 2011 00:20:44 +0000 (17:20 -0700)]
Add ${perl:Depends} to dependencies
The onak-mail processing script is written in Perl, so we should
depend on it.
Jonathan McDowell [Sun, 10 Apr 2011 23:30:29 +0000 (16:30 -0700)]
Bump Debian Standards-Version to 3.9.2.0
No changes.
Jonathan McDowell [Sun, 10 Apr 2011 18:26:42 +0000 (19:26 +0100)]
Clean up use of PATH_MAX in keydb_fs.c
Hopefully this will enabled compilation on GNU/Hurd. PATH_MAX is not
entirely removed, but now only used for array definitions and
conditionally defined if not already defined. Moving the static defs
to dynamic allocations is future work, but this provides a start.
Jonathan McDowell [Sun, 10 Apr 2011 17:55:42 +0000 (10:55 -0700)]
Fix onak.c to include version.h not config.h
Oops; broken with the move from PACKAGE_VERSION to ONAK_VERSION.
Jonathan McDowell [Sun, 10 Apr 2011 17:55:16 +0000 (10:55 -0700)]
Added keydctl and testparse to .bzrignore
Jonathan McDowell [Sun, 10 Apr 2011 17:47:35 +0000 (10:47 -0700)]
Add a stats command to keyd
Add KEYD_CMD_STATS to obtain info about when keyd started, how many
connects it has seen and how many instances of each command.
Jonathan McDowell [Sun, 10 Apr 2011 06:38:38 +0000 (23:38 -0700)]
Make onak.c use ONAK_VERSION instead of PACKAGE_VERSION for version number
Missed this in the changes to add the bzr revno to non pristine builds.
Jonathan McDowell [Sun, 10 Apr 2011 06:12:06 +0000 (23:12 -0700)]
Remove keydctl.o in clean rule
Jonathan McDowell [Fri, 8 Apr 2011 06:34:27 +0000 (23:34 -0700)]
Allow db4 backend to compile with later versions of Berkeley DB
db5 is compatible with db4 at an API level, so look for >= v4 rather
than = v4 in our configure script.
Jonathan McDowell [Fri, 8 Apr 2011 06:01:15 +0000 (23:01 -0700)]
Use generic db dependencies rather than 4.8 versioned ones
Rather than depending on libdb4.8-dev and db4.8-util depend on
libdb-dev and db-util, allowing easy binary only rebuilds in the
event of new db4 releases.
Fixes Debian bug #621426
Jonathan McDowell [Thu, 7 Apr 2011 03:17:57 +0000 (20:17 -0700)]
Add the bzr version number to non release builds
If we're building from a bzr checkout then include the revision
number in the version string we report.
Jonathan McDowell [Wed, 6 Apr 2011 04:22:39 +0000 (21:22 -0700)]
Add keydctl for talking to keyd backend
The regular keydb functions for talking to keyd work fine for key
related operations, but there are extra things we want to do with
keyd (such as checking its status or asking it to cleanly exit) that
there's no way to do at present. Add keydctl to provide a way to
access these additional features.