forked from cory/tildefriends
Return something from ssb.storeMessage.
git-svn-id: https://www.unprompted.com/svn/projects/tildefriends/trunk@4288 ed5197a5-7fde-0310-b194-c3ffbd925b24
This commit is contained in:
parent
7da7890bb6
commit
8727fe00af
6
Makefile
6
Makefile
@ -15,6 +15,7 @@ CFLAGS += \
|
||||
-Wno-cast-function-type \
|
||||
-MMD \
|
||||
-ffunction-sections \
|
||||
-fmerge-all-constants \
|
||||
-fdata-sections \
|
||||
-fno-exceptions \
|
||||
-g
|
||||
@ -55,11 +56,12 @@ $(NONANDROID_TARGETS): CFLAGS += -fno-omit-frame-pointer
|
||||
$(NONANDROID_TARGETS): LDFLAGS += -rdynamic
|
||||
$(ANDROID_TARGETS): CFLAGS += \
|
||||
--sysroot $(ANDROID_NDK)/toolchains/llvm/prebuilt/linux-x86_64/sysroot \
|
||||
-fPIC \
|
||||
-fdebug-compilation-dir . \
|
||||
-fomit-frame-pointer \
|
||||
-fno-asynchronous-unwind-tables
|
||||
$(ANDROID_TARGETS): LDFLAGS += --sysroot $(ANDROID_NDK)/toolchains/llvm/prebuilt/linux-x86_64/sysroot -fPIC
|
||||
#-fPIC \
|
||||
$(ANDROID_TARGETS): LDFLAGS += --sysroot $(ANDROID_NDK)/toolchains/llvm/prebuilt/linux-x86_64/sysroot
|
||||
#-fPIC
|
||||
$(DEBUG_TARGETS): CFLAGS += -DDEBUG -Og
|
||||
$(RELEASE_TARGETS): CFLAGS += -DNDEBUG
|
||||
$(NONANDROID_RELEASE_TARGETS): CFLAGS += -O3
|
||||
|
BIN
deps/openssl/android/x86_64/usr/local/bin/openssl
vendored
BIN
deps/openssl/android/x86_64/usr/local/bin/openssl
vendored
Binary file not shown.
@ -919,7 +919,7 @@ static bool _tf_ssb_verify_and_strip_signature_internal(JSContext* context, JSVa
|
||||
if (!verified)
|
||||
{
|
||||
//tf_printf("crypto_sign_verify_detached fail (r=%d)\n", r);
|
||||
if (false)
|
||||
if (true)
|
||||
{
|
||||
tf_printf("val=[%.*s]\n", (int)strlen(sigstr), sigstr);
|
||||
tf_printf("sig=%.*s\n", (int)(sigkind - str), str);
|
||||
|
@ -642,8 +642,7 @@ static JSValue _tf_ssb_sqlAsync(JSContext* context, JSValueConst this_val, int a
|
||||
static JSValue _tf_ssb_storeMessage(JSContext* context, JSValueConst this_val, int argc, JSValueConst* argv)
|
||||
{
|
||||
tf_ssb_t* ssb = JS_GetOpaque(this_val, _tf_ssb_classId);
|
||||
tf_ssb_verify_strip_and_store_message(ssb, argv[0]);
|
||||
return JS_UNDEFINED;
|
||||
return tf_ssb_verify_strip_and_store_message(ssb, argv[0]) ? JS_TRUE : JS_FALSE;
|
||||
}
|
||||
|
||||
typedef struct _broadcasts_t
|
||||
|
Loading…
Reference in New Issue
Block a user