--- /dev/null
+diff -up opensips-1.6.0/tls/tls_init.c.openssl opensips-1.6.0/tls/tls_init.c
+--- opensips-1.6.0/tls/tls_init.c.openssl 2008-11-24 21:52:33.000000000 +0100
++++ opensips-1.6.0/tls/tls_init.c 2009-08-25 20:18:45.000000000 +0200
+@@ -468,8 +468,8 @@ static int check_for_krb(void)
+ if (xx==NULL)
+ return -1;
+
+- for( j=0 ; j<M_sk_num(xx->cipher_list) ; j++) {
+- SSL_CIPHER *yy = (SSL_CIPHER*)M_sk_value(xx->cipher_list,j);
++ for( j=0 ; j<sk_SSL_CIPHER_num(xx->cipher_list) ; j++) {
++ SSL_CIPHER *yy = sk_SSL_CIPHER_value(xx->cipher_list,j);
+ if ( yy->id>=SSL3_CK_KRB5_DES_64_CBC_SHA &&
+ yy->id<=SSL3_CK_KRB5_RC4_40_MD5 ) {
+
Summary(pl.UTF-8): Serwer SIP rejestrujący, przekierowujący i robiący proxy
Name: opensips
Version: 1.5.3
-Release: 5
+Release: 6
License: GPL v2
Group: Networking/Daemons
Source0: http://opensips.org/pub/opensips/%{version}/src/%{name}-%{version}-tls_src.tar.gz
# Source0-md5: 8a03167420c31da15405bed7630ed3e2
Source1: %{name}.init
Source2: %{name}.sysconfig
+Patch0: %{name}-openssl.patch
URL: http://www.opensips.org/
%{?with_geoip:BuildRequires: GeoIP-devel}
%{?with_osp:BuildRequires: OSPToolkit}
%prep
%setup -q -n %{name}-%{version}-tls
+%patch0 -p1
find -type d -name CVS | xargs rm -rf