mirror of
https://code.briarproject.org/briar/briar.git
synced 2026-02-19 14:19:53 +01:00
Fixed a stupid forum post validation bug.
The signature covers the forum post body, not the message body.
This commit is contained in:
@@ -84,7 +84,7 @@ class ForumPostValidator extends BdfMessageValidator {
|
|||||||
PublicKey key = keyParser.parsePublicKey(author.getPublicKey());
|
PublicKey key = keyParser.parsePublicKey(author.getPublicKey());
|
||||||
// Serialise the data to be signed
|
// Serialise the data to be signed
|
||||||
BdfList signed = BdfList.of(g.getId(), m.getTimestamp(), parent,
|
BdfList signed = BdfList.of(g.getId(), m.getTimestamp(), parent,
|
||||||
authorList, contentType, body);
|
authorList, contentType, forumPostBody);
|
||||||
// Verify the signature
|
// Verify the signature
|
||||||
Signature signature = crypto.getSignature();
|
Signature signature = crypto.getSignature();
|
||||||
signature.initVerify(key);
|
signature.initVerify(key);
|
||||||
|
|||||||
Reference in New Issue
Block a user