Răsfoiți Sursa

Update version to 4.7.0 (#1691)

Set new release version to 4.7.0
Updating minor version due to some breaking changes in options to enable
more secure/robust configuration without additional flags (or relying on
recommended conf file which people seem to skip during updates)
Pavel Punsky 4 luni în urmă
părinte
comite
678996a529

+ 1 - 1
CMakeLists.txt

@@ -41,7 +41,7 @@ set(CMAKE_C_STANDARD_REQUIRED ON)
 
 set(CMAKE_MODULE_PATH ${CMAKE_MODULE_PATH} ${CMAKE_SOURCE_DIR}/cmake)
 # TODO: Modify this when the version is released
-SET(BUILD_VERSION "4.6.3")
+SET(BUILD_VERSION "4.7.0")
 
 # Find Git Version Patch
 IF(EXISTS "${CMAKE_SOURCE_DIR}/.git")

+ 54 - 0
ChangeLog

@@ -1,3 +1,57 @@
+Release 4.7.0
+
+Changelist:
+- [BREAKING] Remove support for openssl older than 1.1.1 (#1397) (Michael Jones <[email protected]>)
+- [BREAKING] Cleanup deprecated options (#1599) (Pavel Punsky <[email protected]>)
+- [BREAKING] Reverse SOFTWARE_ATTRIBUTE_OPT to avoid inverse logic (#1598) (Pavel Punsky <[email protected]>)
+- [BREAKING] Deprecate response-origin-only-with-rfc5780 (#1690) (Pavel Punsky <[email protected]>)
+- [BREAKING] Invert no-stun-backward-compatibility to be default on (#1689) (Pavel Punsky <[email protected]>)
+- Make older TLS versions optional (#1693) (Pavel Punsky <[email protected]>)
+- Add missing close socket when ioa_socket call fails (#1694) (tyranron <[email protected]>)
+- Add spdx tags to all source files (#1510) (Michael Jones <[email protected]>)
+- Address various minor clang-tidy warnings (#1513) (Michael Jones <[email protected]>)
+- Update reference to old draft in README to RFC8016 (Gustavo Garcia <[email protected]>)
+- Invert RFC5780 option to default off (#1688) (Pavel Punsky <[email protected]>)
+- Add modules diagram to developer doc (#1685) (Gustavo Garcia <[email protected]>)
+- Fix compilation warning with const - non const conversions (#1686) (Gustavo Garcia <[email protected]>)
+- Makefile.in: Don't install sql schema into DOCSDIR (#1684) (Greg Troxel <[email protected]>)
+- Fix infinite loop in ns_turn_server.c (#1460) (Asmir Mehic <[email protected]>)
+- Fix the ability to compile coturn using C++ compiler (#1546) (Michael Jones <[email protected]>)
+- Restore returning 200 OK on root prometheus path for health check (#1678) (Gustavo Garcia <[email protected]>)
+- Improve MySQL connection error logging to include actual MySQL error message (#1679) (Gustavo Garcia <[email protected]>)
+- redis: use dbname param when redis is unauthenticated (#1668) (maddy <[email protected]>)
+- Show allocations increment/decrement logs behind verbose flag (#1677) (Gustavo Garcia <[email protected]>)
+- [Fix] Fix Repeated Line in Example turnserver.conf (#1671) (Stefan Kieszkowski <[email protected]>)
+- change for incorrect handling of TURN_NO_TLS environment variable (#1663) (Leonid Gorbachev <[email protected]>)
+- Add Content-Type header to prometheus response (#1662) (Pavel Punsky <[email protected]>)
+- Fix infinite loop while triggering SIGHUP and log file reset causing … (#1630) (nicolas-laduguie <[email protected]>)
+- rename and dependency extraction (#1634) (redraincatching <[email protected]>)
+- updated types to bool in _turn_params_ to reflect C11 (#1406) (redraincatching <[email protected]>)
+- Windows '_WTA' bug (#1624) (guoyingbo <[email protected]>)
+- Fix cmake issues detecting mongo and libsystemd on macOS (#1621) (Pavel Punsky <[email protected]>)
+- Fix hiredis detection by cmake (#1620) (Pavel Punsky <[email protected]>)
+- Drop TLS version support detection (#1617) (Pavel Punsky <[email protected]>)
+- Cleanup ALPN_SUPPORTED define usage (#1616) (Pavel Punsky <[email protected]>)
+- Fix warnings type conversion (#1615) (Pavel Punsky <[email protected]>)
+- Add parameter for specifying prometheus path (#1602) (Alex Gustafsson <[email protected]>)
+- Do not build with Ubuntu 18, use 24 (#1613) (Pavel Punsky <[email protected]>)
+
+Contributors:
+- Alex Gustafsson <[email protected]>
+- Asmir Mehic <[email protected]>
+- Greg Troxel <[email protected]>
+- guoyingbo <[email protected]>
+- Gustavo Garcia <[email protected]>
+- Kai Ren <[email protected]>
+- Leonid Gorbachev <[email protected]>
+- maddy <[email protected]>
+- Michael Jones <[email protected]>
+- nicolas-laduguie <[email protected]>
+- Pavel Punsky <[email protected]>
+- redraincatching <[email protected]>
+- Stefan Kieszkowski <[email protected]>
+- tyranron <[email protected]>
+
 Release 4.6.3
 
 Changelist:

+ 1 - 1
examples/scripts/pack.sh

@@ -2,7 +2,7 @@
 
 # Run it from the root of the coturn source tree
 
-V=4.6.3
+V=4.7.0
 
 PACKDIR=`pwd`/../coturn-releases/
 SRCDIR=`pwd`

+ 8 - 2
release.sh

@@ -27,8 +27,14 @@ fi
 
 VERSION=$1
 
-sed -i "s/SET(BUILD_VERSION \".*)/SET(BUILD_VERSION \"${VERSION}\")/g" ${SOURCE_DIR}/CMakeLists.txt
-sed -i "s/#define TURN_SERVER_VERSION .*/#define TURN_SERVER_VERSION \"${VERSION}\"/g" ${SOURCE_DIR}/src/ns_turn_defs.h
+SED="sed"
+if [ $(uname -s) = "Darwin" ]; then
+    gsed -i "s/SET(BUILD_VERSION \".*)/SET(BUILD_VERSION \"${VERSION}\")/g" ${SOURCE_DIR}/CMakeLists.txt
+    gsed -i "s/#define TURN_SERVER_VERSION .*/#define TURN_SERVER_VERSION \"${VERSION}\"/g" ${SOURCE_DIR}/src/ns_turn_defs.h
+else
+    sed -i "s/SET(BUILD_VERSION \".*)/SET(BUILD_VERSION \"${VERSION}\")/g" ${SOURCE_DIR}/CMakeLists.txt
+    sed -i "s/#define TURN_SERVER_VERSION .*/#define TURN_SERVER_VERSION \"${VERSION}\"/g" ${SOURCE_DIR}/src/ns_turn_defs.h
+fi
 
 # Generate ChangeLog
 if [ -f ${SOURCE_DIR}/ChangeLog ]; then

+ 1 - 1
rpm/build.settings.sh

@@ -2,7 +2,7 @@
 
 # Common settings script.
 
-TURNVERSION=4.6.3
+TURNVERSION=4.7.0
 BUILDDIR=~/rpmbuild
 ARCH=`uname -p`
 

+ 1 - 1
rpm/turnserver.spec

@@ -1,5 +1,5 @@
 Name:		turnserver
-Version:	4.6.3
+Version:	4.7.0
 Release:	0%{dist}
 Summary:	Coturn TURN Server
 

+ 3 - 3
scripts/install_coturn_on_aws_ec2.sh

@@ -4,15 +4,15 @@
 ############## verification on aws     : tested & verified on aws ec2        ########
 ############## platform                : aws ec2                             ########
 ############## aws ubuntu version      : ubuntu 22.04 LTS                    ########
-############## coturn base version     : 4.6.3                               ########
+############## coturn base version     : 4.7.0                               ########
 ############## dependent tools         : installs prometheus client as well  ########
 ############## file permissions        : chmod 777 install_coturn_on_aws_ec2.sh #####
 ############## run command             : ./install_coturn_on_aws_ec2.sh      ########
 ############## developer               : [email protected]            ########
 #####################################################################################
 
-coturn_package="https://github.com/coturn/coturn/archive/refs/tags/4.6.3.tar.gz"
-coturn_version="4.6.3"
+coturn_package="https://github.com/coturn/coturn/archive/refs/tags/4.7.0.tar.gz"
+coturn_version="4.7.0"
 
 if [ "$#" -eq 0 ]
 then

+ 1 - 1
src/apps/relay/mainrelay.c

@@ -1793,7 +1793,7 @@ unsigned char *base64decode(const void *b64_decode_this, int decode_this_many_by
   int decoded_byte_index = 0;                     // Index where the next base64_decoded byte should be written.
   while (0 < BIO_read(b64_bio, base64_decoded + decoded_byte_index, 1)) { // Read byte-by-byte.
     decoded_byte_index++; // Increment the index until read of BIO decoded data is complete.
-  } // Once we're done reading decoded data, BIO_read returns -1 even though there's no error.
+  }                       // Once we're done reading decoded data, BIO_read returns -1 even though there's no error.
 
   BIO_free_all(b64_bio); // Destroys all BIOs in chain, starting with b64 (i.e. the 1st one).
   return base64_decoded; // Returns base-64 decoded data with trailing null terminator.

+ 6 - 6
src/client++/TurnMsgLib.h

@@ -735,7 +735,7 @@ protected:
  */
 class StunMsgRequest : public StunMsg {
 public:
-  StunMsgRequest(uint16_t method) : _method(method) {};
+  StunMsgRequest(uint16_t method) : _method(method){};
   StunMsgRequest(uint8_t *buffer, size_t total_sz, size_t sz, bool constructed)
       : StunMsg(buffer, total_sz, sz, constructed), _method(0) {
 
@@ -808,11 +808,11 @@ private:
  */
 class StunMsgResponse : public StunMsg {
 public:
-  StunMsgResponse(uint16_t method, stun_tid &tid) : _method(method), _err(0), _reason(""), _tid(tid) {};
+  StunMsgResponse(uint16_t method, stun_tid &tid) : _method(method), _err(0), _reason(""), _tid(tid){};
   StunMsgResponse(uint16_t method, int error_code, std::string reason, stun_tid &tid)
-      : _method(method), _err(error_code), _reason(reason), _tid(tid) {
+      : _method(method), _err(error_code), _reason(reason), _tid(tid){
 
-        };
+                                                            };
   StunMsgResponse(uint8_t *buffer, size_t total_sz, size_t sz, bool constructed)
       : StunMsg(buffer, total_sz, sz, constructed), _method(0), _err(0), _reason("") {
 
@@ -964,7 +964,7 @@ private:
  */
 class StunMsgIndication : public StunMsg {
 public:
-  StunMsgIndication(uint16_t method) : _method(method) {};
+  StunMsgIndication(uint16_t method) : _method(method){};
   StunMsgIndication(uint8_t *buffer, size_t total_sz, size_t sz, bool constructed)
       : StunMsg(buffer, total_sz, sz, constructed), _method(0) {
 
@@ -1009,7 +1009,7 @@ private:
  */
 class StunMsgChannel : public StunMsg {
 public:
-  StunMsgChannel(uint16_t cn, int length) : _cn(cn), _len(length) {};
+  StunMsgChannel(uint16_t cn, int length) : _cn(cn), _len(length){};
   StunMsgChannel(uint8_t *buffer, size_t total_sz, size_t sz, bool constructed)
       : StunMsg(buffer, total_sz, sz, constructed), _cn(0) {
 

+ 4 - 4
src/client/ns_turn_msg_defs.h

@@ -55,10 +55,10 @@
 
 #define STUN_MAGIC_COOKIE (0x2112A442)
 
-#define IS_STUN_REQUEST(msg_type) (((msg_type) & 0x0110) == 0x0000)
-#define IS_STUN_INDICATION(msg_type) (((msg_type) & 0x0110) == 0x0010)
-#define IS_STUN_SUCCESS_RESP(msg_type) (((msg_type) & 0x0110) == 0x0100)
-#define IS_STUN_ERR_RESP(msg_type) (((msg_type) & 0x0110) == 0x0110)
+#define IS_STUN_REQUEST(msg_type) (((msg_type)&0x0110) == 0x0000)
+#define IS_STUN_INDICATION(msg_type) (((msg_type)&0x0110) == 0x0010)
+#define IS_STUN_SUCCESS_RESP(msg_type) (((msg_type)&0x0110) == 0x0100)
+#define IS_STUN_ERR_RESP(msg_type) (((msg_type)&0x0110) == 0x0110)
 
 #define GET_STUN_REQUEST(msg_type) (msg_type & 0xFEEF)
 #define GET_STUN_INDICATION(msg_type) ((msg_type & 0xFEEF) | 0x0010)

+ 1 - 1
src/ns_turn_defs.h

@@ -35,7 +35,7 @@
 #ifndef __IOADEFS__
 #define __IOADEFS__
 
-#define TURN_SERVER_VERSION "4.6.3"
+#define TURN_SERVER_VERSION "4.7.0"
 #define TURN_SERVER_VERSION_NAME "Gorst"
 #ifndef TURN_SERVER_BUILD_INFO
 #define TURN_SERVER_BUILD_INFO ""

+ 2 - 2
src/server/ns_turn_server.c

@@ -4394,8 +4394,8 @@ static int create_relay_connection(turn_turnserver *server, ts_ur_super_session
 
     if (lifetime < 1) {
       lifetime = STUN_DEFAULT_ALLOCATE_LIFETIME;
-    } else if (lifetime > (uint32_t)*(server->max_allocate_lifetime)) {
-      lifetime = (uint32_t)*(server->max_allocate_lifetime);
+    } else if (lifetime > (uint32_t) * (server->max_allocate_lifetime)) {
+      lifetime = (uint32_t) * (server->max_allocate_lifetime);
     }
 
     ioa_timer_handle ev = set_ioa_timer(server->e, lifetime, 0, client_ss_allocation_timeout_handler, newelem, 0,

+ 1 - 1
vcpkg.json

@@ -1,6 +1,6 @@
 {
   "name": "coturn",
-  "version-string": "4.6.3",
+  "version-string": "4.7.0",
   "dependencies": [
     {
       "name": "pthreads",