]> the.earth.li Git - onak.git/log
onak.git
15 years agoObey binary flag for "onak get"
Jonathan McDowell [Tue, 2 Jun 2009 10:43:37 +0000 (11:43 +0100)]
Obey binary flag for "onak get"

  We accepted -b for "onak add" to read in a binary key, but always
  output keys ASCII armoured; obey -b for get as well and return the
  raw key data.

15 years agoChange Debian package to build against libdb4.7
Jonathan McDowell [Tue, 2 Jun 2009 10:23:29 +0000 (11:23 +0100)]
Change Debian package to build against libdb4.7

  db4.6 (on Debian at least) seems to throw a fit after a number of
  read-only opens. db4.7 (and 4.5) don't seem to suffer from this.
  Closes Debian bug #520117

15 years agoOpen DB read only for onak lookup function
Jonathan McDowell [Tue, 2 Jun 2009 10:19:01 +0000 (11:19 +0100)]
Open DB read only for onak lookup function

  No need to open read/write when we're only doing a search.

15 years agoEnsure DB4 backend dbconns memory is initialised to zero
Jonathan McDowell [Tue, 24 Mar 2009 20:47:43 +0000 (20:47 +0000)]
Ensure DB4 backend dbconns memory is initialised to zero

  Change to using calloc to allocate the memory for the dbconns array,
  as this will ensure that all the pointers in it are NULL which
  prevents us segfaulting on abnormal cleanup. Fixes the segfault from
  Debian bug #520117 but not the underlying issue.

16 years agoAdd support for displaying Elgamal encrypt or sign keys (deprecated)
Jonathan McDowell [Sun, 2 Nov 2008 13:15:29 +0000 (13:15 +0000)]
Add support for displaying Elgamal encrypt or sign keys (deprecated)

  These keys are no longer supported as they're cryptographically weak,
  but old versions exist and we should display them properly.

16 years agoEscape colons and similar in MRHKP output
Jonathan McDowell [Thu, 26 Jun 2008 19:03:18 +0000 (20:03 +0100)]
Escape colons and similar in MRHKP output

  : is used as a separator in MRHKP output, so we need to escape it. We
  also need to escape % for similar reasons, so do so. Closes Debian bug
  #487284

16 years ago0.3.6 release. 0.3.6
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.

16 years agoUse PRIX64, not PRIx64.
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.

16 years agoChange to using PRIx64 rather than llX for outputting keyids.
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.

16 years agoFix up keyd compilation under 64 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.

16 years agoChange Debian package to build against libdb4.6
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

16 years agoFix bashism in Makefile distclean target
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.

16 years agoAdd initial support for upgrading db4 DBs built with older DB4 versions
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.

16 years agoAdd .bzrignore file
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.

16 years ago"Recognize" some extra subpacket types
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.

16 years agoFix some missing #includes
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.

16 years agoFix lookup display for more than one photo id.
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

16 years agoFix fetching key by text bug in db4 backend
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.

16 years agoMake key addition success text more like SKS/PKS.
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.

16 years agoAllow the use of search text for gets, rather than just keyids
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.

16 years agoFix Debian changelog versions for real 0.3.5 release. 0.3.5
Jonathan McDowell [Wed, 16 Jan 2008 22:13:43 +0000 (22:13 +0000)]
Fix Debian changelog versions for real 0.3.5 release.

16 years agoFix getfullkeyid in db4 backend.
Jonathan McDowell [Wed, 16 Jan 2008 22:13:04 +0000 (22:13 +0000)]
Fix getfullkeyid in db4 backend.

16 years ago(Hopefully) really fix the DB4 backend issues.
Jonathan McDowell [Wed, 16 Jan 2008 22:05:58 +0000 (22:05 +0000)]
(Hopefully) really fix the DB4 backend issues.

16 years ago0.3.5 release.
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.

16 years agoFix db4 backend - we weren't actually providing a suitable dbfuncs struct.
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.

16 years ago0.3.4 release. 0.3.4
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.

16 years agoUpdate Debian web server recommendation from Apache to Apache2
Jonathan McDowell [Fri, 28 Dec 2007 22:41:33 +0000 (22:41 +0000)]
Update Debian web server recommendation from Apache to Apache2

16 years agoSet -std=gnu99 for Debian builds; stable has supported this now for ages
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.

16 years agoBump Debian Standards-Version.
Jonathan McDowell [Fri, 28 Dec 2007 22:35:52 +0000 (22:35 +0000)]
Bump Debian Standards-Version.

16 years agoAdd man page for keyd, even though it's not currently recommended for
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.

16 years agoAdd an install target in the Makefile (can't believe we didn't already
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).

16 years agoGive Brett some credit.
Jonathan McDowell [Sat, 15 Dec 2007 11:24:36 +0000 (11:24 +0000)]
Give Brett some credit.

16 years agoFix PostgreSQL backend compilation.
Jonathan McDowell [Sat, 15 Dec 2007 10:52:38 +0000 (10:52 +0000)]
Fix PostgreSQL backend compilation.

16 years agoFix up dynamic loading; we export a structure of functions now from
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.

17 years agoFix config structure references for dynamic backends
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.

17 years agoRemove bashism from postrm (Debian packaging)
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.

17 years agoUpdate FSF address in copyright file.
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.

17 years agoAdd #DEBHELPER# tokens to postinst/postrm (Debian packaging)
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.

17 years agoUpdate version to mark arch build.
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.

17 years ago0.3.3 release. 0.3.3
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.

17 years agoUpdate my key
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.

17 years agoFixup config file for Debian package upgrades
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.

17 years agoMake sure we own /var/spool/onak (Debian packaging)
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.

17 years agoAllow checking for signature times and use in merging
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

17 years agoAdd Depends on adduser for Debian
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

17 years agoAdd revoked/bare public key signed keys
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.

17 years agoDocument our test keys
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.

17 years agoFix assumption that a signature on a public key is a revocation
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.

17 years agoFix incoming mail spool directory
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.

18 years agoChange Debian package to use dynamic backend.
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.

18 years agoTry to load backends from current dir if none specified.
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.

18 years agoMake failure to load backend fatal.
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.

18 years agoGracefully fail when we can't open a DB4 DB.
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

18 years agoGracefully exit if no backend defined.
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.

18 years agoCleanup log file on package purge (Debian bug #338516)
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.

19 years agoFix replyto email address bug.
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.

19 years agoEnable ADD support for email interface.
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.

19 years agoAdd Suggests: for db4.2-utils to Debian packaging.
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.

19 years agoSupport 16 digit key ids in lookup.
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.

19 years agoAdd dynamic loading of backends.
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.

19 years agoFix memory leak on db4 cleanup.
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.

19 years agoMake onak-mail.pl queue requests.
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.

19 years agoUpdate version to mark arch build.
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.

19 years ago0.3.2 release. 0.3.2
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.

19 years agoHandle signature revokations better.
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.

19 years agoFix path bug in sendkeysync.
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.

19 years agoFix problem with closing stderr in add.c
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.

19 years agoFix parsing of empty config file lines.
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.

20 years agoAllow non ASCII characters to be stored.
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.

20 years agoUpdate version to mark arch build.
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.

20 years ago0.3.1 release. 0.3.1
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.

20 years agoMove dumpdb over to using iterate_keys.
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.

20 years agoAdd onak-mail.pl man page (Debian bug #276879)
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.

20 years agoAdd links to HTML index output. (Debian bug #275227)
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.

20 years agoFix typo in keyindex.c
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.

20 years agoAdd lladdend function and use in makewordlist.
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.

20 years agoIntroduce sorted keyid array functions and use in DB4.
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.

20 years agoCleanup db4 properly if we fail to open it.
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.

20 years agoFixup warnings with sendsync move.
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.

20 years agoMove mailsync functionality to the database backends.
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.

20 years agoRemove ancient gprof output.
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.

20 years agoChange buffer_put/fetchchar functions to use memcpy.
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.

20 years agoMake Makefile cleanup keyd and backend db .o files.
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.

20 years agoAdd key iteration functionality to keydb backends.
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.

20 years agoMove update_keys to keydb rather than merge.
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.

20 years agoAdd keyd backend (persistant database access over Unix socket)
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.

20 years agoUpdate version to indicate arch build.
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).

20 years agoCleanup logging in sixdegrees.c
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.

20 years agoFix maxpath to initialise the logging infrastructure.
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.

20 years agoFix sixdegrees to initialise the logging infrastructure.
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.

20 years agoFix transaction around id32 updating in DB4 backend.
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.

20 years agoMake cleanup.c compile cleanly under c99.
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.

20 years agoCompile warning cleanup; add missed include file.
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.

20 years agoAdd assert for invalid armor parameters.
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.

20 years agoHard error when db version is < 4.
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.

20 years agoChange makedepend to use the compile instead.
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.

20 years agoUpdate HISTORY 0.3.0
Jonathan McDowell [Tue, 14 Sep 2004 20:43:31 +0000 (20:43 +0000)]
Update HISTORY

Update HISTORY ready for release.

20 years agoAdd Apache2 example info.
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.

20 years agoQuieten cleanup infrastructure.
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.

20 years agoCreate an initial database when installing the package.
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.