forked from cory/tildefriends
I am too good at breaking syncing.
git-svn-id: https://www.unprompted.com/svn/projects/tildefriends/trunk@3684 ed5197a5-7fde-0310-b194-c3ffbd925b24
This commit is contained in:
@ -484,7 +484,7 @@ bool tf_ssb_verify_and_strip_signature(JSContext* context, JSValue val, char* ou
|
||||
verified = r == 0;
|
||||
if (!verified)
|
||||
{
|
||||
printf("crypto_sign_verify_detached fail\n");
|
||||
printf("crypto_sign_verify_detached fail (r=%d)\n", r);
|
||||
}
|
||||
}
|
||||
else
|
||||
@ -1115,12 +1115,10 @@ void tf_ssb_append_message(tf_ssb_t* ssb, JSValue message)
|
||||
len = 0;
|
||||
json = JS_ToCStringLen(context, &len, jsonval);
|
||||
|
||||
printf("appending message %.*s\n", (int)len, json);
|
||||
|
||||
JS_FreeCString(context, json);
|
||||
JS_FreeValue(context, jsonval);
|
||||
|
||||
char id[sodium_base64_ENCODED_LEN(crypto_hash_sha256_BYTES, sodium_base64_VARIANT_ORIGINAL) + 1];
|
||||
char id[sodium_base64_ENCODED_LEN(crypto_hash_sha256_BYTES, sodium_base64_VARIANT_ORIGINAL) + 7 + 1];
|
||||
tf_ssb_calculate_message_id(ssb->context, root, id, sizeof(id));
|
||||
if (valid &&
|
||||
!tf_ssb_db_store_message(ssb, ssb->context, id, root, signature_base64))
|
||||
|
Reference in New Issue
Block a user