Philipp Schafft
4f90399257
Fix: Corrected includes. Made stuff that worked by accident actually work
2018-05-28 14:31:36 +00:00
Philipp Schafft
651ece018c
Update: Corrected Copyright statements
2018-05-28 14:19:55 +00:00
Philipp Schafft
097e62394f
Update: Made error IDs an enum.
...
Thanks to ePirat for the suggestion.
2018-05-26 06:29:10 +00:00
Philipp Schafft
a612d0c4a1
Fix: Fixed log level for auth internal debug message
...
Thanks to ePirat.
2018-05-26 06:17:56 +00:00
Philipp Schafft
4828c07d6b
Fix: Fixed segfault in htpasswd auth if no filename is set
2018-05-26 06:07:24 +00:00
Philipp Schafft
00cb6b0042
Fix: Do not report passwords at all
2018-05-20 19:35:45 +00:00
Philipp Schafft
465aac14f3
Fix: Do not report hashed user passworts in user list.
2018-05-20 19:35:44 +00:00
Philipp Schafft
42b24d1840
Fix: Shut down TLS before closing socket.
...
We should first shut down TLS so we can signal the other end a clean shutdown
in contrast to a socket failure.
Big thanks to wget(1) to find it. Fantastic tool.
2018-05-20 14:40:01 +00:00
Philipp Schafft
0fe5d5fa1f
Fix: Added missing status codes to header generator
2018-05-07 16:33:17 +00:00
Philipp Schafft
1c3b10e07a
Update: mark internal table static
2018-05-07 16:33:06 +00:00
Philipp Schafft
4b190d2481
Feature: Added per Error UUID. Also formats error pages nicer
2018-05-07 16:32:56 +00:00
Philipp Schafft
b42378abc4
Feature: Generate errors based on IDs.
...
This generates error pages based on IDs. This allows to reuse errors
and add more advanced information to them.
This patch also makes Icecast send in plain text OR HTML based
on the clients Accept:-string.
2018-05-07 16:28:46 +00:00
Marvin Scholz
cf21756035
Refactor admin.c handlers
2018-05-06 14:22:51 +02:00
Marvin Scholz
e99ebfae3a
Move helper macros in admin.c to the top
2018-05-05 07:26:37 +00:00
Philipp Schafft
0db820c9dd
Feature: Added parser for Accept*:-headers
2018-05-05 06:42:56 +00:00
Philipp Schafft
3b55f16977
Updated submodules
2018-05-05 06:42:56 +00:00
Philipp Schafft
bcc0e86ca0
Fix: Fixed regression for ICY source client's auth
...
This allows ICY source clients to log in again with 2.4.x-style config.
ICY does not provide a username. Therefore the username was unset.
This patch sets the username for ICY source connections and allow them
to be handled as if a username was provided.
Configuration tag <shoutcast-user> was added to select the username to set
to. This defaults to "source".
2018-05-05 06:42:56 +00:00
Philipp Schafft
578366e541
Cleanup: Removed useless stats_event()
2018-05-05 06:42:56 +00:00
Philipp Schafft
5d603a01d8
Fix: Fixed a segfault when xsltApplyStylesheet() returns error
2018-05-05 06:42:42 +00:00
Philipp Schafft
fb3678b0ca
Fix: Do not access request type when we have no parser (slaves)
2018-05-05 06:42:34 +00:00
Philipp Schafft
514e825a81
Fix: Corrected response and fixed TLS for 416 Request Range Not Satisfiable responses
2018-04-21 11:06:48 +00:00
Philipp Schafft
be407ebbc7
Fix: Unbreak TLS for ICECAST_PROTOCOL_SHOUTCAST source clients
2018-04-21 11:06:42 +00:00
Philipp Schafft
2c32f02083
Update: Code style
2018-04-13 18:48:03 +00:00
Philipp Schafft
698186608b
Fix: Send "Content-Length: 0" on 100-continue
2018-04-13 13:43:36 +00:00
Philipp Schafft
e099f80af1
Fix: Only report one Upgrade:-Header on upgrade
2018-03-28 15:10:05 +00:00
Philipp Schafft
789dd06762
Feature: Export used protocol in status XML
2018-03-01 10:41:52 +00:00
Marvin Scholz
51edb020a7
Makefile: Add missing tls.h to header files
...
This fixes make distcheck and the distribution tarballs, those
were previously lacking this header which caused builds to fail.
2018-01-13 21:43:32 +01:00
Philipp Schafft
cd9c8420d3
Feature: Added new config tag tls-context, tls-key and attribute implementation
2017-07-23 13:14:48 +00:00
Philipp Schafft
ac92af50c5
Fix: Corrected typo
2017-07-23 13:14:48 +00:00
Philipp Schafft
b47ae369b6
Update: Prepare code for a new <tls-context> element
2017-07-23 13:14:48 +00:00
Philipp Schafft
68b3b1c72a
Feature: Added function to check for specific TLS implementation
2017-07-23 13:14:48 +00:00
Philipp Schafft
9cbc110f78
Fix: Do not announce Upgrade to TLS on TLS Mode DISABLED sockets
2017-07-23 13:14:48 +00:00
Philipp Schafft
a864fbf47a
Make tls mode more configureable
2017-07-23 13:14:48 +00:00
Philipp Schafft
d7cd12de75
Cleanup: Wording and object names from SSL to TLS
2017-07-23 13:14:48 +00:00
Philipp Schafft
e513f09b85
Typo: openSSL->OpenSSL
2017-07-23 13:14:48 +00:00
Philipp Schafft
3376498e5e
Update: completly abstracted OpenSSL into tls.[ch]
2017-07-23 13:14:48 +00:00
Philipp Schafft
a1aa0196b2
Feature: Allow to use of non-TLS sockets for TLS clients
2017-07-23 13:14:48 +00:00
Philipp Schafft
1d39b657da
Feature: Allow reloading TLS key on the fly
2017-07-23 13:14:48 +00:00
Philipp Schafft
a6eb48e44d
Update: Abstracted TLS support in tls.c
2017-07-23 13:14:48 +00:00
Philipp Schafft
64b16f8296
Update: Abstracted the TLS context code into tls.c
2017-07-23 13:14:48 +00:00
Philipp Schafft
53e95727b4
Update: Code style
2017-01-22 08:52:57 +00:00
Philipp Schafft
89804764b0
Fix: Do not segfaul on bad Opus streams
2017-01-22 08:52:57 +00:00
Philipp Schafft
5b512da304
Cleanup: corrected debug output of Opus support
2017-01-22 08:52:56 +00:00
Philipp Schafft
0d7f81b75a
Feature: Added support to extract metadata from Opus streams.
...
This adds support to read metadata from Ogg/Opus streams:
* Original sample rate from OpusHead,
* number of channels from OpusHead,
* Tags from OpusTags.
2017-01-22 08:52:56 +00:00
Philipp Schafft
84124c313a
Update: Added spaces to output of auth_result2str().
...
This adds spaces into the strings such as "nomatch" (-> "no match")
as returned by auth_result2str(). This is to improve readability of
resulting logfiles by most uses.
2017-01-22 08:38:01 +00:00
Philipp Schafft
e75b1a1612
Fix: Corrected number of arguments for ICECAST_LOG_INFO()
...
This fixes the number of arguments for ICECAST_LOG_INFO().
Why doesn't GCC warn about this?
2017-01-22 08:38:01 +00:00
Philipp Schafft
f5dd306f71
Update: improved auth related logging
2017-01-22 08:38:01 +00:00
Philipp Schafft
ce2b4195da
Fix: Fixes a number of empty string segfaults in config parser
...
This fixes a number of segfault happening in case config tags are
empty. This patch also adds warnings for most cases.
Please test for any regressions.
This should likely be ported to 2.4.4 as well.
Closes : #2265
2016-11-30 11:22:36 +00:00
Thomas B. Ruecker
70265c466e
Spelling fix, thanks to Ukikie
2016-11-23 20:36:53 +00:00
Philipp Schafft
b3b1dd12a1
Workaround: This avoids libspeex printing warnings on Opus streams.
...
libspeex reports warnings in case of oddnesses with the data to stderr.
However Icecast2 uses those functions in it's codec probeing process.
This way libspeex will write messages to a posibily reused random handle.
This is clearly a bug by package maintainers of libspeex.
See the source code of this change as well as libspeex's source code
as reference.
2016-10-29 11:42:52 +00:00