iphydf
e7bc611dac
cleanup: Enable most cppcheck warnings as errors.
...
Cleaned up some of the warnings it gives. Disabled the ones that are
less useful for us at this time.
2022-02-21 17:17:36 +00:00
iphydf
a3cd1102f7
perf: Reduce minimal encoding size of packed events.
...
We're using a union-like encoding now with an enum telling which union
member to set.
2022-02-12 17:44:44 +00:00
Robin Linden
2cfa872818
Add a Bazel Buildifier CI job
2022-01-28 00:55:07 +01:00
Maxim Biro
b2ea0e5c76
Add programs for creating savedata & bootstrap keys
2022-01-27 16:31:07 -05:00
Tha14
5a88159b8f
Pass "b" for fopen to fix bugs on windows
2022-01-24 16:00:01 +02:00
iphydf
7f94e411a9
chore: Add cpplint to the CI.
2022-01-17 23:42:38 +00:00
iphydf
044ae636a3
chore: Mark unsafe code as testonly.
...
We want to ensure that nobody links against testing code in production.
2022-01-16 09:10:53 +00:00
iphydf
8d19757f8e
chore: Add mypy Python type check.
...
Also fix the types in all Python files.
2022-01-14 19:55:37 +00:00
jfreegman
360acd0f42
Replace all instances of atoi with strtol
...
atoi doesn't check if the conversion from string to int succeeded
which doesn't allow us to do proper error handling.
We also now make sure that the port argument is a valid port
in addition to being properly converted
2022-01-12 14:08:45 -05:00
iphydf
f5f22a5c76
chore: Enable layering check in all c-toxcore build files.
2022-01-12 18:33:13 +00:00
iphydf
eebc516d55
chore: Disable the OpenMP cracker in bazel for now.
...
I broke it. I'll re-enable it if/when I fix omp support in the bazel
build.
2022-01-11 13:29:53 +00:00
sudden6
b14d9328b4
update build scripts
2021-12-17 20:34:13 +01:00
sudden6
828312c2f9
perf: improve speed of cracker.c
...
- more inteligent secret key generation
- use OpenMP for multithreading
- leave old cracker, because it's simple
- update old cracker to new coding style
2021-12-17 20:11:18 +01:00
iphydf
2db6599be5
test: Add some simple tests for list.c.
...
These are pretty useless, but I'm adding the list_test.cc file for future
better tests to be written in.
2021-12-07 10:32:45 +00:00
iphydf
8f4400b9b4
cleanup: Make pylint and mypy happy with bootstrap_node_info.py.
2020-05-06 10:59:47 +01:00
iphydf
a2d586b782
Rework the toxchat/bootstrap-node Docker image.
...
* Use fully static build for the bootstrap daemon.
* Store a sha256sum of the binary in the repo.
* Updated documentation for it.
* Add support for fully static build in cmake.
* Enable the docker build on every PR, so we catch changes to the
checksum. I realise this is adding toil, but having the checksum is
valuable for security of released binaries.
2020-04-26 16:13:24 +00:00
iphydf
7c0eb5c70b
Enable TCP relay test in Bazel and autotools build.
...
This test was fixed by @robinlinden, but not enabled in all builds.
2020-04-20 09:28:00 +00:00
Maxim Biro
40dd88596e
Add minimal save generator
2020-04-04 16:38:28 -04:00
iphydf
e671490989
Use rules_cc instead of native cc_library rules.
2020-03-12 12:20:54 +00:00
iphydf
7aa57afeba
Avoid redefining macros from different files.
2018-08-19 23:15:01 +00:00
iphydf
248902ffd4
Fix const cast in save-generator.
2018-08-19 11:51:00 +00:00
endoffile78
30960dcc7e
Add save file generator, save compatibility test, and generate a save file
2018-08-19 10:38:51 +00:00
iphydf
f627a26a7b
Run Clang global static analysis on Travis.
...
This uses a single .cc file containing almost all the code in the
repository to perform whole program analysis.
2018-07-22 02:34:30 +00:00
iphydf
7245ac11ef
Avoid implementations in .h files or #including .c files.
...
Also, avoid the need for putting `_XOPEN_SOURCE` in every test file.
2018-07-21 20:44:26 +00:00
iphydf
aa05095419
Remove the use of the 'hh' format specifier.
...
It's not supported in mingw.
See https://github.com/TokTok/c-toxcore/issues/786 .
2018-03-16 01:57:26 +00:00
iphydf
f2857932d2
Use the markdown GPLv3 license in the c-toxcore repo.
2018-02-08 16:08:09 +00:00
iphydf
8a0e98bab8
Fix LAN discovery on FreeBSD.
...
Also, add an auto-test for bootstrap and for LAN discovery.
Bootstrap is never tested otherwise, and LAN discovery is a prerequisite
for everything else. Having these two tests lets us rule out or identify
LAN discovery as a possible cause for test failures.
2018-02-08 14:57:34 +00:00
iphydf
36ba80aacb
Remove csrc from the RTPHeader struct.
...
This is not used by anything in the code, so we shouldn't have it in the
header.
2018-02-08 13:20:40 +00:00
iphydf
92ffad1a72
Use nullptr as NULL pointer constant instead of NULL or 0.
...
This changes only code, no string literals or comments.
2018-01-30 23:35:50 +00:00
iphydf
6e0ac337c9
Avoid clashes with "build" directories on case-insensitive file systems.
2018-01-28 15:17:34 +00:00
iphydf
1cecb6c87a
Add BUILD files for all the little tools in the repo.
...
Also, fix av_test.c, since I broke it last time.
2018-01-21 01:31:11 +00:00
iphydf
406d292107
Minor cleanups: header reordering, adding {}.
...
I hadn't done this for the "fun" code, yet. Also, we should include
system headers after our own headers.
"In general, a module should be implemented by one or more .cpp files.
Each of these .cpp files should include the header that defines their
interface first. This ensures that all of the dependences of the module
header have been properly added to the module header itself, and are not
implicit. System headers should be included after user headers for a
translation unit."
-- http://llvm.org/docs/CodingStandards.html#a-public-header-file-is-a-module
2016-09-09 19:30:50 +01:00
iphydf
459f8f2013
Check code formatting on Travis.
...
We run astyle on Travis and check if there is a diff. The build terminates if
git finds a difference.
2016-08-12 01:00:00 +01:00
Alexandre Erwin Ittner
ef0922cf9f
Add script to generate save files with custom keys
...
Allow users to play with keys generated outside Tox core without
depending on features from any specific client. Just generate a
stub save file that every client will understand.
2015-02-01 12:23:14 -02:00
irungentoo
e334188353
Merge branch 'fun-bootstrap-node-info' of https://github.com/nurupo/InsertProjectNameHere
2014-07-09 21:01:53 -04:00
Maxim Biro
5e1ae35034
Added a script to query DHT bootstrap node info
2014-07-09 14:00:16 -04:00
Maxim Biro
2037d27210
Fixed a case when public key contained null bytes
2014-06-20 23:10:12 -04:00
Maxim Biro
b85f192b79
Fixed sodium include
2014-06-20 22:28:33 -04:00
Maxim Biro
b9010540b6
Added strkey
2014-06-20 22:28:22 -04:00
Tux3 / Mlkj / !Lev.uXFMLA
727659673c
Fix exceptional file leak in other/fun/sign.c
2014-06-20 12:42:03 +02:00
Carlos E. Garcia
cf33c2f9ad
multiple spelling fixes
2014-04-16 12:14:44 -04:00
irungentoo
d6e2f903a7
Added entry to TODO and a public key cracker (vanity key finder) to other/fun.
2014-02-10 19:53:44 -05:00
Maxim Biro
ecbceac341
Fixed memory leaks and removed repeated code
2014-02-09 02:01:04 -05:00
irungentoo
ea994606fe
Merge branch 'master' of https://github.com/JamoBox/ProjectTox-Core into JamoBox-master
...
Conflicts:
toxcore/LAN_discovery.h
2013-08-29 17:55:58 -04:00
pete
82b8927af7
Correct a lot of the grammar and spelling. Also spent a few hours fixing the comments so they follow a standard.
2013-08-29 22:17:51 +01:00
irungentoo
da6416a584
Added signer/checker using ed25519 and libsodium I wrote for fun.
2013-08-21 09:02:49 -04:00