working on openssl compatibility without SSLv3

turnbis
Oleg Moskalenko 10 years ago
parent e544a6c0f2
commit bd7937cb45
  1. 2
      rpm/build.settings.sh
  2. 4
      rpm/turnserver.spec
  3. 6
      src/apps/common/apputils.c
  4. 2
      src/apps/uclient/mainuclient.c
  5. 2
      src/ns_turn_defs.h

@ -2,7 +2,7 @@
# Common settings script.
TURNVERSION=4.5.0.2
TURNVERSION=4.5.0.3
BUILDDIR=~/rpmbuild
ARCH=`uname -p`
TURNSERVER_GIT_URL=https://github.com/coturn/coturn.git

@ -1,5 +1,5 @@
Name: turnserver
Version: 4.5.0.2
Version: 4.5.0.3
Release: 0%{dist}
Summary: Coturn TURN Server
@ -289,6 +289,8 @@ fi
%{_includedir}/turn/client/TurnMsgLib.h
%changelog
* Sun Oct 11 2015 Oleg Moskalenko <mom040267@gmail.com>
- Sync to 4.5.0.3
* Tue Sep 29 2015 Oleg Moskalenko <mom040267@gmail.com>
- Sync to 4.5.0.2
* Sun Sep 13 2015 Oleg Moskalenko <mom040267@gmail.com>

@ -1037,12 +1037,14 @@ static const char* turn_get_method(const SSL_METHOD *method, const char* mdefaul
if(!method)
return mdefault;
else {
#ifndef OPENSSL_NO_SSL3
if(method == SSLv3_server_method()) {
return "SSLv3";
} else if(method == SSLv3_client_method()) {
return "SSLv3";
} else if(method == SSLv23_server_method()) {
} else
#endif
if(method == SSLv23_server_method()) {
return "SSLv23";
} else if(method == SSLv23_client_method()) {
return "SSLv23";

@ -483,9 +483,11 @@ int main(int argc, char **argv)
root_tls_ctx[root_tls_ctx_num] = SSL_CTX_new(SSLv23_client_method());
SSL_CTX_set_cipher_list(root_tls_ctx[root_tls_ctx_num], csuite);
root_tls_ctx_num++;
#ifndef OPENSSL_NO_SSL3
root_tls_ctx[root_tls_ctx_num] = SSL_CTX_new(SSLv3_client_method());
SSL_CTX_set_cipher_list(root_tls_ctx[root_tls_ctx_num], csuite);
root_tls_ctx_num++;
#endif
root_tls_ctx[root_tls_ctx_num] = SSL_CTX_new(TLSv1_client_method());
SSL_CTX_set_cipher_list(root_tls_ctx[root_tls_ctx_num], csuite);
root_tls_ctx_num++;

@ -31,7 +31,7 @@
#ifndef __IOADEFS__
#define __IOADEFS__
#define TURN_SERVER_VERSION "4.5.0.2"
#define TURN_SERVER_VERSION "4.5.0.3"
#define TURN_SERVER_VERSION_NAME "dan Eider"
#define TURN_SOFTWARE "Coturn-" TURN_SERVER_VERSION " '" TURN_SERVER_VERSION_NAME "'"

Loading…
Cancel
Save