Andrew Bettison
7452c215e2
Fix bug in 'keyring list' command
...
Revealed by recent rhizomeprotocol test improvements. Was always printing
empty DID and name fields.
2012-09-14 16:23:32 +09:30
Andrew Bettison
eec8fb6e95
Improve SAS resolution debug messages
2012-08-14 14:06:59 +09:30
Andrew Bettison
12d8bc0c12
Use new typedef time_ms_t everywhere
2012-08-09 12:14:32 +09:30
Andrew Bettison
240be25793
Replace overlay_gettime_ms() with gettime_ms()
2012-07-30 17:22:38 +09:30
Andrew Bettison
ce12258f63
Improve logging in keyring.c
...
Use DEBUGF() not WHYF() for debug messages, test DEBUG_KEYRING.
Use WHY_perror() in more places.
2012-07-27 18:18:57 +09:30
Andrew Bettison
a69f637b3a
Replace DEBUG_HLR with DEBUG_KEYRING
...
Convert several fprintf(stderr,...) into DEBUGF() statements
2012-07-27 11:26:19 +09:30
Andrew Bettison
d2898ee22c
Add output fields to 'keyring add' command
2012-07-06 13:17:53 +09:30
Andrew Bettison
72769e162b
Replace overlay_render_sid_prefix() with alloca_tohex()
...
To eliminate timebomb bugs caused by rotor wraparound
2012-07-04 10:30:46 +09:30
Andrew Bettison
2c87039307
Replace overlay_render_sid() with alloca_tohex_sid()
...
To eliminate timebomb bugs caused by rotor wraparound
2012-07-03 17:59:30 +09:30
Jeremy Lakeman
495de9e0ec
Add more profiling instrumentation
2012-07-03 15:50:04 +09:30
gardners
c5d89a043d
clean up debugging.
2012-06-26 09:25:42 +09:30
gardners
97cd8f5255
added code to time various servald functions and report periodic
...
statistics. Handles nested calls to correctly aportion call time
among children.
2012-06-26 09:22:51 +09:30
Andrew Bettison
637ef02f30
Add _selfsigned column to "rhizome list" output
...
Add <pin,pin...> arg1 to "rhizome list" command, so it can open the keyring
Some tests in tests/rhizome fail
2012-06-08 18:25:43 +09:30
Andrew Bettison
7a71a521f8
Pass author SID parameters in binary, not hex
2012-06-08 15:27:15 +09:30
gardners
6f09128d9c
fixed identity creation bug which was allowing first nybl of SID == 0.
2012-05-21 16:41:46 +09:30
Andrew Bettison
41583c1011
Fix bug in "rhizome add file" command
...
Was not opening keyring file properly
2012-05-20 15:25:19 +09:30
Andrew Bettison
8baf861552
Replace WHY() calls with DEBUG() where appropriate
2012-05-20 13:44:33 +09:30
Andrew Bettison
0f65028a0b
Clean up keyring_open_with_pins() error reporting
2012-05-19 10:38:29 +09:30
Andrew Bettison
b15e5cfee7
Improve debugging/logging macros
...
Replace 'WHYRETNULL();' statements with 'return WHYNULL();'
Introduce DEBUG(), DEBUGF(), DEBUG_perror() and D macros
Add logMessage() and vlogMessage() functions
Implement setReason() using vlogMessage()
2012-05-10 12:53:57 +09:30
gardners
b281edec05
filter out invalid SIDs when generating.
2012-05-02 02:32:21 +09:30
gardners
14e4af6392
DNA replies now include name. "set did" now accepts name.
...
Keyring now stores name. "node info resolvedid" now returns name.
2012-05-01 14:38:09 +09:30
gardners
a2880ada1e
closer to dna lookup working via mdp.
...
Bug to be fixed in sending replies.
2012-04-25 20:14:56 +09:30
Andrew Bettison
a73916e85a
Implement JNI command-line interface (untested)
...
- argv is (const char *const *) everywhere, to avoid having to strdup() all the
Java arg strings
- changed (char*) to (const char*) in lots of places to fix cascading compiler
warnings as a result of argv constness
- fixed a bug in "config get" command when used without 'variable' arg
2012-04-23 17:18:15 +09:30
gardners
ead3e8cb95
cleaned out some debug info.
2012-04-22 06:29:10 +09:30
gardners
5c52c8e274
trying to find memory corruption bug, probably queue handling
...
related.
2012-04-20 17:14:04 +09:30
Andrew Bettison
0d6e77e221
Use memcmp() instead of deprecated bcmp()
2012-04-17 10:33:01 +09:30
gardners
e639d3d255
fixed bugs and completed implementation of storing SID:SAS mappings.
...
Now to finish implementing verification process.
2012-04-16 06:36:46 +09:30
gardners
e7e8b2d630
fixed bug in RFS size patching.
...
A lot of debug output tweaks to track the problem down.
2012-04-16 06:06:43 +09:30
gardners
caab3078e5
substantial work towards public key signing of MDP frames and
...
the associated SID:SAS mapping cache and request packets.
2012-04-15 03:17:36 +09:30
gardners
9531b5006d
Fixed a bug in nm_bytes cache.
2012-04-14 02:51:09 +09:30
gardners
fabec139f2
Added nm_bytes cache code for fast authcryption.
2012-04-14 02:31:44 +09:30
gardners
ca24513599
Work towards actually authcrypting MDP payloads.
...
Not complete.
2012-04-14 02:14:41 +09:30
gardners
099e7ab118
Fixed searching for DIDs with wildcard with keyring.
...
General improvements to handling identities from keyrings.
Fixed placing of DONE flag for each identity that a query
produces results as.
Various other fixes.
2012-04-13 10:23:59 +09:30
gardners
3e920c8dfa
simple server mode now correctly opens and populates keyring
...
with any identities with blank pins.
2012-04-13 09:35:22 +09:30
gardners
5ac83f9ca1
Replaced use of HLR with keyring for phone number lookups and
...
other functions. Not yet tested.
2012-04-13 09:25:03 +09:30
gardners
7b8d78533d
Added commandline interface to set a did.
...
Re-enabled payload rotation in keyring PKRs.
Getting and setting dids now works.
keyring list displays SID:DID pairs.
2012-04-12 23:16:25 +09:30
gardners
aed1a4ceef
Removed some debugging output.
2012-04-12 17:20:23 +09:30
gardners
e0a385f200
Added functions for setting/changing DIDs and also for finding
...
identities that have a given DID (no wildcard matching just yet).
2012-04-12 17:18:28 +09:30
gardners
4ceefb26de
Added new keytypes for keyring for Rhizome Secret and for storing
...
DIDs (which are probably not normally secret, but keeping with
with an identity is a good thing, anyway).
2012-04-12 17:01:25 +09:30
gardners
635dd3867e
Keyring stuff now works :)
2012-04-12 15:52:41 +09:30
gardners
e89673ee89
Added command line access for simple keyring functions for testing.
...
Creating keyring files works.
Writing PKR blocks seems more or less working, but we can't (yet)
read them back.
2012-04-12 14:00:51 +09:30
gardners
fd7e65b9d8
Remaining pieces required to create and manipulate key rings is
...
now in place.
2012-04-12 12:53:37 +09:30
gardners
f24d06517a
Writing of identities and keys now much closer to happening.
2012-04-12 12:32:01 +09:30
gardners
8efb6fd497
Work towards being able to create a new identity.
...
Still need to pack, crypt and store the resulting identity.
2012-04-12 07:52:50 +09:30
gardners
60e394eedd
PKR verification code in place but untested.
2012-04-12 07:52:50 +09:30
gardners
9b51192144
More work on keyring management. Decrypting (but not verification)
...
of PKRs is now more or less there.
2012-04-12 07:52:50 +09:30
gardners
f10e9c15ca
Work towards keyring encryption/decryption.
2012-04-11 06:51:41 +09:30
gardners
1b5801b622
Move randombytes() from jni.c to keyring.c so that it is available
...
for the dna standalone binary.
Added code to initialise an empty keyring file with zeroed bitmap
and salt.
2012-04-10 13:49:18 +09:30
gardners
2b260402b5
Added keyring.c and begun work on routines to manipulate keyrings.
2012-04-10 12:56:32 +09:30