Jonathan McDowell [Sat, 7 Jun 2008 13:18:45 +0000 (14:18 +0100)]
0.3.6 release.
Release; update version string in configure.ac, README.
Update HISTORY and debian/changelog.
Jonathan McDowell [Sat, 7 Jun 2008 11:52:41 +0000 (12:52 +0100)]
Use PRIX64, not PRIx64.
We do, of course, want capital IDs to match previous behaviour.
Jonathan McDowell [Sat, 7 Jun 2008 11:48:56 +0000 (12:48 +0100)]
Change to using PRIx64 rather than llX for outputting keyids.
C99 defines PRIx64 which is set appropriate depending on 32/64 bit,
so use that rather than llX, which is only ok for 32 bit.
Jonathan McDowell [Sat, 7 Jun 2008 11:43:35 +0000 (12:43 +0100)]
Fix up keyd compilation under 64 bit.
We were using the void * ctx argument as the file descriptor. Find for
32 bit, but on 64 bit we're truncating. No reason not to just pass the
pointer to the fd, so do so.
Jonathan McDowell [Sat, 7 Jun 2008 10:50:06 +0000 (11:50 +0100)]
Change Debian package to build against libdb4.6
Now we can automatically upgrade from earlier DB4 versions we should
probably be building against the latest version. Closes Debian bug
#421951
Jonathan McDowell [Sat, 7 Jun 2008 10:48:42 +0000 (11:48 +0100)]
Fix bashism in Makefile distclean target
We weren't correctly cleaning up config.{h,sub,guess} when /bin/sh
wasn't bash and thus didn't support that style of expansion.
Jonathan McDowell [Sun, 1 Jun 2008 12:57:30 +0000 (13:57 +0100)]
Add initial support for upgrading db4 DBs built with older DB4 versions
DB4 data base files are tied to the version of DB4 that created them.
It'd be nice to be able to compile with a more recent version of db4
than db4.2, which is currently used for the Debian packages. However
we don't want to have dump and reload the database, so this adds a
first cut at trying to use the DB4 provided upgrade functions.
Jonathan McDowell [Sat, 31 May 2008 22:46:24 +0000 (23:46 +0100)]
Add .bzrignore file
Ignore our autoconf generated files as well as the binaries we create.
Jonathan McDowell [Sat, 31 May 2008 17:03:35 +0000 (18:03 +0100)]
"Recognize" some extra subpacket types
We sometimes see critical subpackets for signature UIDs and and Policy
URIs. While we should probably display such things in indexes in the
future this isn't critical enough for us to log the packets as an error.
Jonathan McDowell [Sat, 31 May 2008 16:52:07 +0000 (17:52 +0100)]
Fix some missing #includes
Clean up some warnings from not including all necessary headers.
Jonathan McDowell [Fri, 16 May 2008 19:26:28 +0000 (20:26 +0100)]
Fix lookup display for more than one photo id.
We would always show the first photo ID on a key when displaying it
in /pks/lookup. Fix this so we show them all correctly. Patch from
Philippe Teuwen as reporting in Debian bug #467020
Jonathan McDowell [Fri, 16 May 2008 17:59:04 +0000 (18:59 +0100)]
Fix fetching key by text bug in db4 backend
We don't want to add keys when there are no keys in the previous list,
we want to only add new keys on the first pass. Otherwise if we end up
with an empty list we'll start again as if none of the previous words
where specified.
Jonathan McDowell [Thu, 24 Apr 2008 20:26:52 +0000 (21:26 +0100)]
Make key addition success text more like SKS/PKS.
Apparently PGP Desktop doesn't like our "Storing %d keys." success
message when storing keys received via HKP. Change our output to match
what the pgp.com and SKS keyservers return. Patch from Timothy Legge.
Jonathan McDowell [Thu, 24 Apr 2008 20:12:09 +0000 (21:12 +0100)]
Allow the use of search text for gets, rather than just keyids
Apparently PGP Desktop sends a get with search text rather than a
specific key id, so add support for that. Reported by Timothy Legge.
Jonathan McDowell [Wed, 16 Jan 2008 22:13:43 +0000 (22:13 +0000)]
Fix Debian changelog versions for real 0.3.5 release.
Jonathan McDowell [Wed, 16 Jan 2008 22:13:04 +0000 (22:13 +0000)]
Fix getfullkeyid in db4 backend.
Jonathan McDowell [Wed, 16 Jan 2008 22:05:58 +0000 (22:05 +0000)]
(Hopefully) really fix the DB4 backend issues.
Jonathan McDowell [Wed, 16 Jan 2008 21:37:06 +0000 (21:37 +0000)]
0.3.5 release.
Release; update version string in configure.ac, README.
Update HISTORY and debian/changelog.
Jonathan McDowell [Tue, 15 Jan 2008 22:24:17 +0000 (22:24 +0000)]
Fix db4 backend - we weren't actually providing a suitable dbfuncs struct.
Jonathan McDowell [Sat, 29 Dec 2007 10:51:25 +0000 (10:51 +0000)]
0.3.4 release.
Release; update version string in configure.ac, README.
Update HISTORY and debian/changelog.
Jonathan McDowell [Fri, 28 Dec 2007 22:41:33 +0000 (22:41 +0000)]
Update Debian web server recommendation from Apache to Apache2
Jonathan McDowell [Fri, 28 Dec 2007 22:38:29 +0000 (22:38 +0000)]
Set -std=gnu99 for Debian builds; stable has supported this now for ages
and it gives us a warning free compile.
Jonathan McDowell [Fri, 28 Dec 2007 22:35:52 +0000 (22:35 +0000)]
Bump Debian Standards-Version.
Jonathan McDowell [Fri, 28 Dec 2007 22:28:33 +0000 (22:28 +0000)]
Add man page for keyd, even though it's not currently recommended for
general use.
Jonathan McDowell [Sat, 15 Dec 2007 13:38:59 +0000 (13:38 +0000)]
Add an install target in the Makefile (can't believe we didn't already
have one).
Jonathan McDowell [Sat, 15 Dec 2007 11:24:36 +0000 (11:24 +0000)]
Give Brett some credit.
Jonathan McDowell [Sat, 15 Dec 2007 10:52:38 +0000 (10:52 +0000)]
Fix PostgreSQL backend compilation.
Jonathan McDowell [Sat, 15 Dec 2007 01:03:17 +0000 (01:03 +0000)]
Fix up dynamic loading; we export a structure of functions now from
each of the backends, which means we can maintain unique namespaces.
This should allow further cleanups/cunningness, but hopefully this is
enough to get us operating correctly across all platforms to start with.
Jonathan McDowell [Mon, 13 Aug 2007 14:51:12 +0000 (14:51 +0000)]
Fix config structure references for dynamic backends
This patch fixes the config structure when dynamic backends are
used - the basic issue is that when the backend was loaded, it wouldn't
(neccessarily) share the config structure with the program that called
it (and had therefore read the config). Thanks to Brett Parker.
Jonathan McDowell [Sun, 4 Mar 2007 23:25:30 +0000 (23:25 +0000)]
Remove bashism from postrm (Debian packaging)
Lintian cleanup; remove use of g{,.1,.*.gz} for cleanup and instead
explicitly list files.
Jonathan McDowell [Sun, 4 Mar 2007 23:23:05 +0000 (23:23 +0000)]
Update FSF address in copyright file.
Lintian cleanup; FSF address is now 51 Franklin St. Update in LICENSE
too.
Jonathan McDowell [Sun, 4 Mar 2007 23:20:29 +0000 (23:20 +0000)]
Add #DEBHELPER# tokens to postinst/postrm (Debian packaging)
Lintian cleanup; add #DEBHELPER# token to the end of postinst/postrm.
Jonathan McDowell [Sun, 4 Mar 2007 23:17:58 +0000 (23:17 +0000)]
Update version to mark arch build.
Bump version to 0.3.3+arch.
Jonathan McDowell [Sun, 4 Mar 2007 23:10:55 +0000 (23:10 +0000)]
0.3.3 release.
Release (finally!); update version string in configure.ac, README.
Update HISTORY and debian/changelog.
Jonathan McDowell [Sun, 4 Mar 2007 22:00:28 +0000 (22:00 +0000)]
Update my key
Update the copy of my key in the keys/ directory.
Jonathan McDowell [Sun, 4 Mar 2007 20:19:17 +0000 (20:19 +0000)]
Fixup config file for Debian package upgrades
We now need to configure a suitable DB backend and are also using the
mail_dir setting, so we need to add/fix these in onak.conf for package
upgrades.
Jonathan McDowell [Sun, 4 Mar 2007 19:27:46 +0000 (19:27 +0000)]
Make sure we own /var/spool/onak (Debian packaging)
chown onak /var/spool/onak in our postinst, so we can write incoming
mail files there.
Jonathan McDowell [Sun, 4 Mar 2007 16:37:52 +0000 (16:37 +0000)]
Allow checking for signature times and use in merging
Add support for pulling out the creation time of a signature, then use
this information when we're merging key signatures. This allows for
updating of signatures (eg key preferences) or adding new signatures eg
with later expiry dates. As reported in Debian bug #410796
Jonathan McDowell [Sun, 4 Mar 2007 15:47:09 +0000 (15:47 +0000)]
Add Depends on adduser for Debian
Add Depends on adduser for Debian; patch from Bastian Venthur as
reported in Debian bug #408270
Jonathan McDowell [Sun, 4 Mar 2007 15:40:50 +0000 (15:40 +0000)]
Add revoked/bare public key signed keys
Add a revoked v4 key and a key with a signature on the main public key
that isn't revoked.
Jonathan McDowell [Sun, 4 Mar 2007 15:38:05 +0000 (15:38 +0000)]
Document our test keys
Add some basic documentation about each of the test keys that are in
the keys/ directory.
Jonathan McDowell [Sun, 4 Mar 2007 15:37:43 +0000 (15:37 +0000)]
Fix assumption that a signature on a public key is a revocation
We've been assuming that a signature directly on a public key means the
key is revoked. This isn't the case; it's used for key preferences for
example. Change the structure element names to reflect this
(revocations->sigs) and check for revoked status by looking for a
signature type of 0x20.
Jonathan McDowell [Sun, 4 Mar 2007 14:36:05 +0000 (14:36 +0000)]
Fix incoming mail spool directory
onak-mail has spooled incoming mail for a long time; fix up the default
config to put this in spool/onak rather than the hardcoded /community
that was previously configured.
Jonathan McDowell [Mon, 19 Jun 2006 22:04:22 +0000 (22:04 +0000)]
Change Debian package to use dynamic backend.
This hopefully does all that's required to build a Debian package with
all our backends but defaulting to db4 so we don't break those
upgrading.
Jonathan McDowell [Mon, 19 Jun 2006 21:42:07 +0000 (21:42 +0000)]
Try to load backends from current dir if none specified.
If we don't specify a directory for the backends in the config file
then try to load them from the current directory.
Jonathan McDowell [Mon, 19 Jun 2006 21:41:10 +0000 (21:41 +0000)]
Make failure to load backend fatal.
If we can't load a dynamic backend, there's no point continuing at
present. So exit.
Jonathan McDowell [Mon, 19 Jun 2006 21:18:13 +0000 (21:18 +0000)]
Gracefully fail when we can't open a DB4 DB.
If we don't have permissions to open a DB4 DB we'll not even get to
open our environment. As such we should close it cleanly and fail rather
than segfaulting. As reported in Debian bug #370440
Jonathan McDowell [Mon, 19 Jun 2006 21:01:55 +0000 (21:01 +0000)]
Gracefully exit if no backend defined.
If no backend was defined we were attempting to strlen a NULL string,
which isn't sensible. Gracefully exit with a critical error instead.
Jonathan McDowell [Mon, 19 Jun 2006 20:37:12 +0000 (20:37 +0000)]
Cleanup log file on package purge (Debian bug #338516)
As per Debian bug #338516 we should remove our log file upon package
purge. Do so.
Jonathan McDowell [Sun, 18 Sep 2005 10:44:39 +0000 (10:44 +0000)]
Fix replyto email address bug.
If Reply-To wasn't set we wouldn't be able to send a reply email from
onak-mail.pl for ADD/(V)INDEX mails. Fix this so we'll use Reply-To or
From if that isn't set.
Jonathan McDowell [Sun, 18 Sep 2005 10:41:51 +0000 (10:41 +0000)]
Enable ADD support for email interface.
onak-mail.pl didn't support ADD; this is still in use by some people,
so has now been added. Thanks to Ian Jackson for reporting, I'd
forgotten it didn't support this yet.
Jonathan McDowell [Sat, 13 Aug 2005 14:05:43 +0000 (14:05 +0000)]
Add Suggests: for db4.2-utils to Debian packaging.
As per Debian bug #317459 add a suggests for db4.2-utils.
Jonathan McDowell [Sat, 16 Jul 2005 11:48:20 +0000 (11:48 +0000)]
Support 16 digit key ids in lookup.
When generating our html keyindexes, use 64bit key ids for the links,
to help avoid collisions. Also make lookup support this length of id.
Jonathan McDowell [Thu, 14 Jul 2005 16:15:57 +0000 (16:15 +0000)]
Add dynamic loading of backends.
This adds support for the dynamic loading of backends. By default we
now try to build all the backends we can and then dynamically load the
one the user wants.
Jonathan McDowell [Thu, 14 Jul 2005 15:42:37 +0000 (15:42 +0000)]
Fix memory leak on db4 cleanup.
Make sure we cleanup our dbconns array when shutting down the db4 backend.
Jonathan McDowell [Fri, 15 Apr 2005 16:01:58 +0000 (16:01 +0000)]
Make onak-mail.pl queue requests.
onak-mail.pl sequentially processes requests. Rather than having a lot
of these processes hang around waiting for other requests to complete we
now dump requests to a file and then the active copy will process all
pending requests.
Jonathan McDowell [Fri, 25 Mar 2005 15:03:37 +0000 (15:03 +0000)]
Update version to mark arch build.
Bump version to 0.3.2+arch.
Jonathan McDowell [Fri, 25 Mar 2005 11:18:55 +0000 (11:18 +0000)]
0.3.2 release.
Release; update version string in configure.ac, README. Update HISTORY
and debian/changelog.
Jonathan McDowell [Wed, 2 Mar 2005 12:18:19 +0000 (12:18 +0000)]
Handle signature revokations better.
Hanna Wallach reported an issue with UID revokations. This was because
we weren't allowing multiple signatures from the same keyid for a UID;
we now check the signature type and allow them if they're different.
Jonathan McDowell [Wed, 16 Feb 2005 14:12:47 +0000 (14:12 +0000)]
Fix path bug in sendkeysync.
We weren't using the path configured for the MTA from the config file,
instead it was a hard coded value. This causes problems if the MTA isn't
on the path.
Jonathan McDowell [Fri, 17 Dec 2004 10:17:14 +0000 (10:17 +0000)]
Fix problem with closing stderr in add.c
Fred Strauss reported a problem when we close stderr in add.c; we now
do some basic checking to try to ensure it's a valid file ptr before
we close it. Also do this for stdout just in case.
Jonathan McDowell [Wed, 15 Dec 2004 15:27:44 +0000 (15:27 +0000)]
Fix parsing of empty config file lines.
Fred Strauss reported a problem with parsing empty lines in the config
file; we weren't checking if the line was empty before stripping
trailing white space. We do now.
Jonathan McDowell [Tue, 9 Nov 2004 14:03:20 +0000 (14:03 +0000)]
Allow non ASCII characters to be stored.
Previously we only stored letters/numbers. Now we store anything except
punctuation and spaces. Based on a patch from Jason Harris for pks.
Jonathan McDowell [Sat, 23 Oct 2004 17:19:34 +0000 (17:19 +0000)]
Update version to mark arch build.
Bump version to 0.3.1+arch.
Jonathan McDowell [Sat, 23 Oct 2004 17:05:31 +0000 (17:05 +0000)]
0.3.1 release.
Release; update version string in configure.ac, README. Update HISTORY
and debian/changelog.
Jonathan McDowell [Sat, 23 Oct 2004 16:58:31 +0000 (16:58 +0000)]
Move dumpdb over to using iterate_keys.
iterate_keys provides a generic way to do stuff with every key in the
DB, so use it instead for dumping the database and remove the old
dumpdb function.
Jonathan McDowell [Thu, 21 Oct 2004 17:00:01 +0000 (17:00 +0000)]
Add onak-mail.pl man page (Debian bug #276879)
Add a man page for onak-mail.pl.
Jonathan McDowell [Thu, 21 Oct 2004 15:56:47 +0000 (15:56 +0000)]
Add links to HTML index output. (Debian bug #275227)
Add links to get the key data and the verbose index for a key to the
HTML output of op=index. I think this was previously removed to try to
make gpg --search happy, but I've tested 1.2.4 with this change and it
still works.
Jonathan McDowell [Thu, 21 Oct 2004 15:32:50 +0000 (15:32 +0000)]
Fix typo in keyindex.c
We had a , where it should have been a ;. Surprised this didn't bite
before.
Jonathan McDowell [Thu, 21 Oct 2004 14:47:44 +0000 (14:47 +0000)]
Add lladdend function and use in makewordlist.
Add a new function that adds an object to the end of a linked list.
We make use of this in makewordlist, which means we search for keys
containing words from the start of the email address first, rather than
starting with the words at the end. When you're dealing with TLDs like
com, net, org this makes a big difference, as you don't end up with a
huge list from the first word you try.
Jonathan McDowell [Sun, 17 Oct 2004 22:15:37 +0000 (22:15 +0000)]
Introduce sorted keyid array functions and use in DB4.
Adds functions to keep a sorted array of keyids (aiding searching speed).
Makes use of these in the DB4 backed for searching for keys based on uid
text.
Jonathan McDowell [Sun, 17 Oct 2004 14:09:16 +0000 (14:09 +0000)]
Cleanup db4 properly if we fail to open it.
Rather than exiting as soon as we hit a problem opening the DB4 db we
try to cleanup whatever we've managed to open.
Jonathan McDowell [Sun, 17 Oct 2004 10:39:17 +0000 (10:39 +0000)]
Fixup warnings with sendsync move.
Forgot to move the #include of sendsync.c from add.c to keydb.c, so do
this.
Jonathan McDowell [Sat, 16 Oct 2004 20:11:22 +0000 (20:11 +0000)]
Move mailsync functionality to the database backends.
Move the sending of key sync mails to the DB backend.
Jonathan McDowell [Tue, 28 Sep 2004 17:17:43 +0000 (17:17 +0000)]
Remove ancient gprof output.
onak.gprof is no longer relevant; remove it.
Jonathan McDowell [Tue, 28 Sep 2004 11:02:18 +0000 (11:02 +0000)]
Change buffer_put/fetchchar functions to use memcpy.
We used an inefficient loop to copy data in the buffer character
functions; change them to use memcpy.
Jonathan McDowell [Mon, 27 Sep 2004 22:34:47 +0000 (22:34 +0000)]
Make Makefile cleanup keyd and backend db .o files.
We weren't cleaning up keyd.o and keydb_$(DBTYPE).o with "make clean"
when keyd was enabled; fix this.
Jonathan McDowell [Mon, 27 Sep 2004 22:22:25 +0000 (22:22 +0000)]
Add key iteration functionality to keydb backends.
Add a function to the keydb backends which will call a given function
once for every contained in the db. Currently implemented for db4, keyd,
file and pg backends.
Jonathan McDowell [Sat, 25 Sep 2004 09:36:21 +0000 (09:36 +0000)]
Move update_keys to keydb rather than merge.
Move update_keys to the database backends, as in some senses it makes
more sense there - we have multiple DB calls and this is the main thing
that needs transactions, so by moving it here we should be able to hide
them from the rest of the code.
Jonathan McDowell [Sat, 25 Sep 2004 09:34:55 +0000 (09:34 +0000)]
Add keyd backend (persistant database access over Unix socket)
Add keyd, which runs in the background and talks to the real database
and then communicates with the various onak programs over a Unix
socket.
Jonathan McDowell [Sat, 25 Sep 2004 09:26:31 +0000 (09:26 +0000)]
Update version to indicate arch build.
Update the version in autoconf and debian/changelog to indicate that
any build is from arch rather than a released tarball (ie add +arch).
Jonathan McDowell [Sat, 25 Sep 2004 09:05:56 +0000 (09:05 +0000)]
Cleanup logging in sixdegrees.c
When we've finished in sixdegrees, remember to shut the logging
infrastructure down.
Jonathan McDowell [Sat, 25 Sep 2004 09:05:04 +0000 (09:05 +0000)]
Fix maxpath to initialise the logging infrastructure.
maxpath wasn't initialising the logging infrastructure, so would
log to stderr rather than the log file for example. Fix this.
Jonathan McDowell [Thu, 23 Sep 2004 15:20:16 +0000 (15:20 +0000)]
Fix sixdegrees to initialise the logging infrastructure.
sixdegrees wasn't initialising the logging infrastructure, so would
log to stderr rather than the log file for example. Fix this.
Jonathan McDowell [Thu, 23 Sep 2004 12:21:08 +0000 (12:21 +0000)]
Fix transaction around id32 updating in DB4 backend.
For some reason we finished our transaction before we wrote the id32db
details. Fix this so we do it afterwards instead.
Jonathan McDowell [Wed, 22 Sep 2004 09:28:13 +0000 (09:28 +0000)]
Make cleanup.c compile cleanly under c99.
Change cleanup.c so the signal bits all compile cleanly under C99 with
-DBSD_SOURCE=1.
Jonathan McDowell [Tue, 21 Sep 2004 13:07:38 +0000 (13:07 +0000)]
Compile warning cleanup; add missed include file.
cleanup.c uses functions prototyped in string.h, so include it.
Jonathan McDowell [Mon, 20 Sep 2004 14:33:18 +0000 (14:33 +0000)]
Add assert for invalid armor parameters.
Add an assert if we had a NULL string to the armor_putchar function.
Brett spotted this while doing evil things.
Jonathan McDowell [Mon, 20 Sep 2004 14:32:11 +0000 (14:32 +0000)]
Hard error when db version is < 4.
Fix configure.ac so we hard error if our version is less than 4.
Jonathan McDowell [Tue, 14 Sep 2004 21:13:21 +0000 (21:13 +0000)]
Change makedepend to use the compile instead.
Change to using the compiler for makedepend instead. This works for GCC;
I don't know about other compilers. May need an autoconf test instead in
future.
Jonathan McDowell [Tue, 14 Sep 2004 20:43:31 +0000 (20:43 +0000)]
Update HISTORY
Update HISTORY ready for release.
Jonathan McDowell [Tue, 14 Sep 2004 20:07:54 +0000 (20:07 +0000)]
Add Apache2 example info.
Add setup info and config snippet for Apache2. Thanks to Brett Parker
for this.
Jonathan McDowell [Tue, 14 Sep 2004 18:31:16 +0000 (18:31 +0000)]
Quieten cleanup infrastructure.
Lower the loglevel output of the cleanup infrastructure to INFO rather
than NOTICE; ie don't show it on the default install.
Jonathan McDowell [Tue, 14 Sep 2004 18:21:03 +0000 (18:21 +0000)]
Create an initial database when installing the package.
If we're installing the Debian package and there's no existing database
then create one by importing my key.
Jonathan McDowell [Tue, 14 Sep 2004 18:17:51 +0000 (18:17 +0000)]
Fix cleanup of statoverrides when purging package.
Purging of the package failed due to incorrect use of dpkg-statoverride;
this fixes that.
Jonathan McDowell [Tue, 14 Sep 2004 17:42:40 +0000 (17:42 +0000)]
Decrease default log level.
Log level in onak.conf.in was for TRACE upwards; lower this to NOTICE.
Jonathan McDowell [Tue, 14 Sep 2004 17:13:20 +0000 (17:13 +0000)]
Create logfile for Debian package
Create our logfile as part of the postinst for the Debian package and
make sure the onak user can write to it.
Jonathan McDowell [Tue, 14 Sep 2004 17:11:26 +0000 (17:11 +0000)]
Update my key.
Update the copy of my PGP key.
Jonathan McDowell [Tue, 14 Sep 2004 16:16:52 +0000 (16:16 +0000)]
Configure basic onak.conf using autoconf info.
Write a basic onak.conf that has paths from the autoconf info, rather
than hard coded paths to my homedir.
Jonathan McDowell [Tue, 14 Sep 2004 16:15:54 +0000 (16:15 +0000)]
Small README updates
Various misc README updates.