mirror of
https://github.com/servalproject/serval-dna.git
synced 2025-01-31 08:25:22 +00:00
signature reading and logging of signature verification errors now
in place.
This commit is contained in:
parent
b7b795d4fc
commit
ae22480c23
12
rhizome.c
12
rhizome.c
@ -377,9 +377,8 @@ int i;
|
|||||||
/* Okay, it is written, and can be put directly into the rhizome database now */
|
/* Okay, it is written, and can be put directly into the rhizome database now */
|
||||||
int r=rhizome_store_bundle(m,filename);
|
int r=rhizome_store_bundle(m,filename);
|
||||||
if (!r) {
|
if (!r) {
|
||||||
// unlink(manifestname);
|
// XXX For testing unlink(manifestname);
|
||||||
unlink(filename);
|
unlink(filename);
|
||||||
|
|
||||||
return 0;
|
return 0;
|
||||||
}
|
}
|
||||||
|
|
||||||
@ -453,14 +452,11 @@ rhizome_manifest *rhizome_read_manifest_file(char *filename)
|
|||||||
each signature block to */
|
each signature block to */
|
||||||
crypto_hash_sha512(m->manifesthash,m->manifestdata,end_of_text);
|
crypto_hash_sha512(m->manifesthash,m->manifestdata,end_of_text);
|
||||||
|
|
||||||
/* Read signature blocks from file.
|
/* Read signature blocks from file. */
|
||||||
XXX - What additional information/restrictions should the
|
|
||||||
signatures have? start/expiry times? geo bounding box?
|
|
||||||
Those elements all need to be included in the hash */
|
|
||||||
while(ofs<m->manifest_bytes) {
|
while(ofs<m->manifest_bytes) {
|
||||||
rhizome_manifest_extract_signature(m,&ofs);
|
if (rhizome_manifest_extract_signature(m,&ofs))
|
||||||
|
m->signature_errors++;
|
||||||
}
|
}
|
||||||
WHY("Signature reading not implemented");
|
|
||||||
|
|
||||||
WHY("Group membership signature reading not implemented (are we still doing it this way?)");
|
WHY("Group membership signature reading not implemented (are we still doing it this way?)");
|
||||||
|
|
||||||
|
Loading…
x
Reference in New Issue
Block a user