1
0
mirror of https://github.com/coturn/coturn.git synced 2025-10-31 06:51:30 +01:00

36 Commits

Author SHA1 Message Date
Mark Hills
9bcc898b05 Restore no_stdout_log behaviour
In commit 599a61ee this was removed, by accident it could seem.
2021-01-25 09:31:47 +00:00
Paul Wayper
ed88f1605a Neater ISO-8601 timestamp format string
Signed-off-by: Paul Wayper <paulway@mabula.net>
2020-09-01 20:57:54 +10:00
Paul Wayper
f59e9f8ad4 Allow the log timestamp format to be set
This allows the timestamp format in log output to be set by a function.

Signed-off-by: Paul Wayper <paulway@mabula.net>
2020-09-01 18:43:56 +10:00
Paul Wayper
5e87c44469 Merge turn_log_func_default and vrtpprintf
The function `turn_log_func_default` calls the function `vrtpprintf` to print to syslog
or the log file.  The latter does exactly the same string formatting as the former, so
here we merge the two functions into one to do the string formatting once.  This also
makes sure that the log line is consistent on all outputs.

Signed-off-by: Paul Wayper <paulway@mabula.net>
2020-09-01 18:35:01 +10:00
Paul Wayper
16eeb53e07 Allow new log format to be turned on if required
This provides the 'use_new_timestamp_log_format' variable in `ns_turn_utils.h`.  By
default it is set to 0 and the old 'seconds since daemon was started' timestamp will
be emitted.  However, if it is set to 1 or any 'true' number the new date and time
timestamp format will be used instead.

This has also resulted in a small clean-up of some of the string length handling.

Signed-off-by: Paul Wayper <paulway@mabula.net>
2020-08-31 22:34:54 +10:00
Paul Wayper
762ee23482 Fixing a few errors - C still coming back to me
Signed-off-by: Paul Wayper <paulway@mabula.net>
2020-08-26 21:05:08 +10:00
Paul Wayper
599a61eea6 Print full date and time in logs
Signed-off-by: Paul Wayper <paulway@mabula.net>
2020-08-25 21:46:15 +10:00
Mészáros Mihály
4722697645 Fix compiler warnings
* Changed type from int to size_t to avoid warning
  warning: comparison between signed and unsigned integer expressions
* Fixed string truncation warning
2020-03-03 15:26:01 +01:00
Mészáros Mihály
8c8af9ec85
Merge pull request #442 from chanduthedev/ssh-length
Updated incorrect string length check for 'ssh'
2019-10-22 13:17:32 +02:00
Robert Scheck
cfdb99dc72 Append only to log files rather to override them (fixes #416) 2019-10-22 11:40:26 +02:00
chanduthedev
9b0e53c18a
Updated incorrect string length check for 'ssh'
ssh length should be 3, but checking for 4. So updated memcmp method to 3 instead of 4.
2019-09-27 14:36:03 +08: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
Bradley T. Hughes
7663167dff Remove pointer debugging machinery
There are tools and debugging options that can be used instead. Do not
reinvent the wheel with our own pointer tracking/debugging code.
2019-03-07 08:39:20 +01:00
Bradley T. Hughes
7a43aae7c3 Remove ns_bzero(), ns_bcopy(), and ns_bcmp()
Do not overload bzero(), bcopy(), and bcmp() from strings.h
2019-03-07 08:39:20 +01:00
Bradley T. Hughes
043b102e38 Remove turn_strdup()
Do not overload strdup() from string.h
2019-03-07 08:00:08 +01:00
Bradley T. Hughes
abab870070 Remove turn_calloc()
Do not overload calloc() from stdlib.h
2019-03-07 07:59:04 +01:00
Bradley T. Hughes
b50fc77124 Remote turn_free()
Do not overload free() with a different API.
2019-03-07 07:58:12 +01:00
Bradley T. Hughes
31033c3ffa Remote turn_realloc()
Do not overload realloc() with a different API.
2019-03-07 07:57:35 +01:00
Bradley T. Hughes
fef016901e Remove turn_malloc()
Do not overload malloc() from stdlib.h
2019-03-06 23:38:20 +01:00
Bradley T. Hughes
ed91d4bc17 Remove turn_free_simple
Do not overload free() from stdlib.h
2019-03-06 23:34:25 +01:00
Mészáros Mihály
e4d6b57abc Realm not sanitized against sql statements 2018-12-07 13:48:05 +01:00
Mészáros Mihály
bb821cee2e refactor is_secure_username 2018-09-12 10:29:30 +02:00
Oleg Moskalenko
6aa8b7685b code cleaning 2017-03-26 20:11:03 -07:00
Oleg Moskalenko
25000742f4 issue 19 fixed 2015-08-28 22:55:34 -07:00
mom040267
cfe61ab284 fixing SQL injection problem 2015-06-28 06:02:34 +00:00
mom040267
153b2d1d41 fixing a security hole 2015-06-28 05:37:28 +00:00
mom040267
7973a31f01 more debug information 2014-10-15 06:44:53 +00:00
mom040267
11b7156e5d cleaning 2014-10-13 07:23:19 +00:00
mom040267
2b06ed4e2d minor fix 2014-10-11 06:57:55 +00:00
mom040267
04f354d563 memory cleaning 2014-10-11 06:49:35 +00:00
mom040267
5177adb626 memory debug 2014-10-10 17:24:19 +00:00
mom040267
0e85945afa cleaning 2014-09-16 06:20:15 +00:00
mom040267
1c28566087 log file reset on SIGHUP 2014-06-14 06:05:04 +00:00
mom040267
151666d349 compilation warning fixed 2014-05-01 16:36:38 +00:00
mom040267
39e855373b compilation warning fixed 2014-05-01 06:18:42 +00:00
mom040267
702b29bc22 initial code import 2014-04-20 21:10:18 +00:00