Commit Graph

32 Commits

Author SHA1 Message Date
Pavel Punsky
4cc076d424
[BREAKING] Invert no-stun-backward-compatibility to be default on (#1689)
Deprecate `--no-stun-backward-compatibility` and set it to true by
default
Add new option `--stun-backward-compatibility`, off by default

Update example/recommended configuration files

This is a breaking change as passing `--no-stun-backward-compatibility`
will be rejected as invalid argument
2025-05-28 16:23:33 -07:00
Michael Jones
b523616b1f
Use bool, instead of int, for the functions in ns_turn_msg.c (#1553)
And address knockon effects in other files, e.g. adjust if-statements
and other function parameters and return types.
2024-08-23 17:49:14 -07:00
Michael Jones
d1db5e590d
Include what you use (#1512)
Use the include-what-you-use program to (partially) clean up header
includes, so that only includes which are needed, and no includes that
are not needed (or at least closer to that ideal) are done.

For a c-language project, the build-time improvements from this change
is minimal. This would have a much bigger impact on a C++ project than a
C-project for build times.

So for coturn, this change is mostly intended to just provide
consistency and make it easier to locate weird issues like strange
dependencies, and unnecessary connections between code.
2024-06-01 18:13:08 -07:00
redraincatching
0c8d646e2d
added missing function prototype of turn_random_number() (#1428)
trivial - cmake generated a warning that `ns_turn_msg.c` used a function
that had no prior prototype - most other files used the `turn_random()`
function but this uses `turn_random_number()` which has no prototype, so
i've added it to the header file
2024-02-10 20:57:33 -08:00
Gustavo Garcia
d9108a4b54
Add clang format rules and checks (#935)
I would like to get feedback on this and see if people is confortable
with these clang rules.

Right now is using the "llvm" style increasing the line length from 80
to 120 given that coturn is using long lines often.

Co-authored-by: Pavel Punsky <eakraly@users.noreply.github.com>
2022-11-06 22:05:17 +01:00
Mészáros Mihály
54ef051844 Disable stun backward compatibility 2021-06-05 22:10:31 +02:00
Feral Interactive
b1990b6130 Liberally apply const where appropriate. 2019-11-19 23:47:11 +00:00
Bradley T. Hughes
d2ee3ac291 Remove [su]{08,16,32,64}bits type defines
Do not overload the standard types with #defines, just use them
directly.
2019-03-08 09:08:30 +01:00
Richard Garnier
5a24333eaa max lifetime parameters 2016-09-20 13:57:31 +09:00
mom040267
4424b3c92a --sha256, --sha384, --sha512 parameters retired. 2015-04-11 07:26:55 +00:00
mom040267
ce19cf3cee error codes cleaned 2015-04-11 06:31:17 +00:00
mom040267
42b74053e1 address error fixes (dual allocation) 2015-04-10 07:48:41 +00:00
mom040267
fb8324fa51 working on encrypted passwords 2015-03-20 07:00:21 +00:00
mom040267
61239f9aa8 bandwidth limit is 64 bits now 2015-03-02 01:44:29 +00:00
mom040267
3c40c14f40 working on new dual-allocation implementation 2015-01-31 23:25:45 +00:00
mom040267
237b3baaa7 short-term credentials removed in the TURN server 2015-01-11 06:28:58 +00:00
mom040267
5cd0d33c31 1) working on https; 2) SSLv2 support removed. 2015-01-10 08:25:29 +00:00
mom040267
f17ce4fe83 new turn_admin table 2015-01-07 07:57:56 +00:00
mom040267
bd8c39c3b7 working on https 2015-01-05 06:40:28 +00:00
mom040267
a67a2b40b8 issue 141 2014-12-07 20:49:04 +00:00
mom040267
01b0294bcf mobile fixes 2014-09-28 09:37:52 +00:00
mom040267
a4c4721595 dialog done 2014-09-26 23:51:40 +00:00
mom040267
6aa1af102c working on oauth 2014-09-26 06:51:04 +00:00
mom040267
2b0c9c0cde oauth cleaning 2014-09-17 20:13:15 +00:00
mom040267
a297664c1e compilation fixed 2014-09-17 05:48:29 +00:00
mom040267
9cccc67320 working on oauth 2014-09-15 07:50:24 +00:00
mom040267
6a2dc493ce working on oauth 2014-09-04 06:54:01 +00:00
mom040267
18180cafdc working on oauth 2014-08-24 08:43:58 +00:00
mom040267
2ebb02b647 origin is checked in subsequent session messages 2014-08-04 06:45:38 +00:00
mom040267
f7f1784fc1 working on dual allocation 2014-07-16 07:04:11 +00:00
mom040267
16f2f22dd3 working on bandwidth 2014-05-30 06:32:03 +00:00
mom040267
702b29bc22 initial code import 2014-04-20 21:10:18 +00:00