1
0
mirror of https://github.com/coturn/coturn.git synced 2025-10-29 22:11:11 +01:00
This commit is contained in:
mom040267 2014-10-13 07:23:19 +00:00
parent 2bfc50f5e0
commit 11b7156e5d
5 changed files with 15 additions and 11 deletions

View File

@ -1,3 +1,7 @@
10/13/2014 Oleg Moskalenko <mom040267@gmail.com>
Version 4.2.1.3 'Monza':
- Code cleaning.
10/05/2014 Oleg Moskalenko <mom040267@gmail.com>
Version 4.2.1.2 'Monza':
- oAuth security experimental implementation;

View File

@ -2,7 +2,7 @@
# Common settings script.
TURNVERSION=4.2.1.2
TURNVERSION=4.2.1.3
BUILDDIR=~/rpmbuild
ARCH=`uname -p`
TURNSERVER_SVN_URL=http://coturn.googlecode.com/svn

View File

@ -1,5 +1,5 @@
Name: turnserver
Version: 4.2.1.2
Version: 4.2.1.3
Release: 0%{dist}
Summary: Coturn TURN Server
@ -294,6 +294,8 @@ fi
%{_includedir}/turn/client/TurnMsgLib.h
%changelog
* Mon Oct 13 2014 Oleg Moskalenko <mom040267@gmail.com>
- Sync to 4.2.1.3
* Sun Oct 05 2014 Oleg Moskalenko <mom040267@gmail.com>
- Sync to 4.2.1.2
* Thu Aug 14 2014 Oleg Moskalenko <mom040267@gmail.com>

View File

@ -664,15 +664,13 @@ int get_canonic_origin(const char* o, char *co, int sz)
#include <set>
#include <string>
using namespace std;
static volatile int tmm_init = 0;
static pthread_mutex_t tm;
typedef void* ptrtype;
typedef set<ptrtype> ptrs_t;
typedef map<string,ptrs_t> str_to_ptrs_t;
typedef map<ptrtype,string> ptr_to_str_t;
typedef std::set<ptrtype> ptrs_t;
typedef std::map<std::string,ptrs_t> str_to_ptrs_t;
typedef std::map<ptrtype,std::string> ptr_to_str_t;
static str_to_ptrs_t str_to_ptrs;
static ptr_to_str_t ptr_to_str;
@ -692,7 +690,7 @@ static void add_tm_ptr(void *ptr, const char *id) {
if(!ptr)
return;
string sid(id);
std::string sid(id);
str_to_ptrs_t::iterator iter;
@ -701,7 +699,7 @@ static void add_tm_ptr(void *ptr, const char *id) {
iter = str_to_ptrs.find(sid);
if(iter == str_to_ptrs.end()) {
set<ptrtype> sp;
std::set<ptrtype> sp;
sp.insert(ptr);
str_to_ptrs[sid]=sp;
} else {
@ -730,7 +728,7 @@ static void del_tm_ptr(void *ptr, const char *id) {
} else {
string sid = pts_iter->second;
std::string sid = pts_iter->second;
ptr_to_str.erase(pts_iter);
str_to_ptrs_t::iterator iter = str_to_ptrs.find(sid);

View File

@ -31,7 +31,7 @@
#ifndef __IOADEFS__
#define __IOADEFS__
#define TURN_SERVER_VERSION "4.2.1.2"
#define TURN_SERVER_VERSION "4.2.1.3"
#define TURN_SERVER_VERSION_NAME "Monza"
#define TURN_SOFTWARE "Coturn-" TURN_SERVER_VERSION " '" TURN_SERVER_VERSION_NAME "'"