chiark / gitweb /
Disassociate public key tags from peer names.
authorMark Wooding <mdw@distorted.org.uk>
Mon, 17 May 2010 16:14:09 +0000 (17:14 +0100)
committerMark Wooding <mdw@distorted.org.uk>
Mon, 17 May 2010 23:15:42 +0000 (00:15 +0100)
commit48b845698dcf3ec4b9f8b9f1848a157f0245d7cc
treef61b6eb080b51f8b3b8e57b383c7af18e77a3919
parentcf2e4ea6c40973c25002e84374c194bb5e4c4973
Disassociate public key tags from peer names.

Peer names are being used for too much now.  Originally, they /only/
identified the public key.  The peer management services muddy the issue
greatly by mapping peer names to database records.

I propose to resolve this mess in favour of the peer management
services.  The ADD command now takes an optional argument naming the
public key to use to authenticate the peer (defaulting to the peer name,
as before).  The `connect' service consults the peer database to find
which key to pass to the server.

This change modifies the server to support a new `-key' option to ADD,
and use the value of this option in preference to the peer name if it's
supplied.  It also updates the `connect' service to use this option if
necessary.  Finally, there's documentation of the various protocol and
database structure changes, and a small tweak to the test suite to make
sure the whole thing stands a chance of working.
peerdb/peers.in.5.in
py/tripe.py.in
server/admin.c
server/keyexch.c
server/peer.c
server/tests.at
server/tripe-admin.5.in
server/tripe.h
svc/connect.8.in
svc/connect.in