1
0
mirror of https://github.com/Tha14/toxic.git synced 2024-06-29 14:17:46 +02:00
Commit Graph

28 Commits

Author SHA1 Message Date
jfreegman
3f18c6f8de
cleanup: fix some uninitialized memory warnings and clarify some logic 2021-12-13 12:33:58 -05:00
iphydf
701c0e1e94
cleanup: Reduce the amount of "extern" in .c files.
There is no check at all that the types of externs actually match the
type of the definition. This just accidentally was not a problem, but now
the compiler helps a bit in keeping it that way.
2021-12-11 22:35:51 +00:00
jfreegman
e2c8497da9
Cleanup code around tox ID/pk conversion functions 2021-12-06 10:46:19 -05:00
jfreegman
2fcbc4fa1c
Remove lots of duplicate code related to printing timestamps 2020-11-30 17:55:57 -05:00
zugz (tox)
d75d6e8b60
sort includes 2020-11-14 00:00:05 +00:00
jfreegman
68e1ba312d
Use compound literals to zero out structs instead of memset
This is cleaner and much less prone to bugs
2020-11-10 21:25:27 -05:00
jfreegman
4d96d6a753
Fix regression related to https lookups
Reducing the buffer size of HTTPS responses broke DHT nodelist fetching. This change
puts the old buffer size back and converts all stack allocations of the read buffer
to heap allocations.
2020-10-27 12:34:12 -04:00
jfreegman
4c302da503
Fix a bunch of Wformat-truncation warnings due to snprintf() misuse 2020-10-24 14:44:41 -04:00
iphydf
6f72a191ba
Revert "Add feature flags and missing #includes."
This reverts commit dd5fa236ae.

Also, set `-std=gnu99` in Bazel build.
2020-04-17 19:37:22 +00:00
iphydf
dd5fa236ae
Add feature flags and missing #includes.
These are needed to compile on some strict Linuxes.
2020-04-15 21:34:30 +00:00
jfreegman
98cb7f58c0
Fix unused parameter and unused result warnings 2020-03-15 14:57:00 -04:00
jfreegman
437dd8baeb
Some misc fixes 2020-02-29 14:14:56 -05:00
iphydf
d62902ffb3
Use (void) in prototypes instead of ().
Also, removed `__inline` from an extern function (why was it there?).
Also, moved one extern declaration to a header file. There are lots of
these that need to be moved, but one thing at a time.
2018-09-13 23:47:47 +00:00
jfreegman
a37bf300f9
Update astylerc to match toxcore & reformat all source files 2018-07-18 11:33:16 -04:00
aSourceFish
b905a1a3c5
One more bit of standard... 2017-11-15 05:56:13 +02:00
Jfreegman
f056f13329
Astyle everything and add an astyle options script to repo 2016-09-24 21:07:04 -04:00
Jfreegman
38ec96e96a
Thread nodeslist loading
This is necessary because DNS/http lookups block, and can do so for a very long time
2016-09-22 14:09:07 -04:00
Jfreegman
151f5f0c51
Add setting to control DHT nodeslist update frequency
Also rename a few things and semi-fix man page format issues
2016-09-20 13:13:12 -04:00
Jfreegman
a009f11c0c
Automatically update DHT nodeslist
List is now automatically fetched from nodes.tox.chat and placed in the
user config directory. The list is updated once every 30 days, and
will attempt to detect problems and re-fetch the list if necessary.

Also fixed a couple file descriptor leaks and cleaned some things up.
2016-09-20 00:00:09 -04:00
Jfreegman
b24c5d8cf8
Fix AV bug
Pending call now properly hangs up when you use the /hangup command or close the chat window
2015-11-19 23:49:58 -05:00
Jfreegman
fa0e645a79
Fix a bunch of misc bugs and corner cases 2015-11-08 03:57:01 -05:00
Jfreegman
e02cf1bb7d
Use proxy for DNS requests when type is SOCKS5 2015-11-02 02:01:17 -05:00
Jfreegman
9751cfc407
Force name lookups through proxy set by client 2015-11-01 21:34:42 -05:00
Jfreegman
36963a5b38
rm redundant error message 2015-10-30 00:10:38 -04:00
Jfreegman
7cf9c37aef
Handle case where system doesn't support any of the specified TLS cipher suites 2015-10-29 20:35:31 -04:00
Jfreegman
2b4b8c0289
Add more descriptive curl errors 2015-10-29 20:16:35 -04:00
Jfreegman
368a1465ec
Use a specified TLS cipher list for https name lookups 2015-10-29 15:13:42 -04:00
Jfreegman
8584feab80
Replace DNS-based username lookups with HTTPS & drop utox.org support 2015-10-28 17:14:17 -04:00