mirror of
https://github.com/servalproject/serval-dna.git
synced 2024-12-23 15:02:27 +00:00
fixed automatic encryption of bundles with sender/recipient.
This commit is contained in:
parent
0f587fd0df
commit
a1f32792c6
@ -771,11 +771,11 @@ int rhizome_fill_manifest(rhizome_manifest *m, const char *filepath, const sid_t
|
||||
if (config.debug.rhizome)
|
||||
DEBUGF("Implicitly adding payload encryption due to presense of sender & recipient fields");
|
||||
// but disable encryption for things sent to broadcast
|
||||
if (strcmp(recipient,
|
||||
"FFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFF"))
|
||||
{ m->payloadEncryption=0; rhizome_manifest_set_ll(m,"crypt",0); }
|
||||
else
|
||||
if (strcasecmp(recipient,
|
||||
"FFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFF"))
|
||||
{ m->payloadEncryption=1; rhizome_manifest_set_ll(m,"crypt",1); }
|
||||
else
|
||||
{ m->payloadEncryption=0; rhizome_manifest_set_ll(m,"crypt",0); }
|
||||
}
|
||||
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user