cjdns/cjdns.sign.patch

27 lines
894 B
Diff
Raw Normal View History

2020-09-29 14:53:35 +00:00
diff -up ./crypto/Sign.c.sign ./crypto/Sign.c
--- ./crypto/Sign.c.sign 2020-09-18 14:24:44.000000000 -0400
+++ ./crypto/Sign.c 2020-09-29 10:25:02.503986487 -0400
@@ -210,3 +210,4 @@ int Sign_publicSigningKeyToCurve25519(ui
return 0;
}
+#pragma GCC diagnostic ignored "-Wpedantic"
diff -up ./crypto/test/Sign_test.c.sign ./crypto/test/Sign_test.c
2020-09-29 14:53:35 +00:00
--- ./crypto/test/Sign_test.c.sign 2020-09-18 14:24:44.000000000 -0400
+++ ./crypto/test/Sign_test.c 2020-09-29 10:25:02.503986487 -0400
@@ -23,6 +23,7 @@
int main()
{
+#ifdef SUBNODE
struct Allocator* alloc = MallocAllocator_new(1048576);
struct Log* logger = FileWriterLog_new(stdout, alloc);
struct Random* rand = Random_new(alloc, logger, NULL);
2020-09-29 14:53:35 +00:00
@@ -44,5 +45,6 @@ int main()
Assert_true(!Bits_memcmp(curve25519publicB, curve25519public, 32));
2020-09-29 14:53:35 +00:00
Allocator_free(alloc);
+#endif // SUBNODE
return 0;
}