Skip to content

Commit

Permalink
fix for openssl
Browse files Browse the repository at this point in the history
  • Loading branch information
sthen committed Oct 4, 2010
1 parent 023589b commit 37a9f81
Showing 1 changed file with 17 additions and 0 deletions.
17 changes: 17 additions & 0 deletions telephony/kamailio/patches/patch-tls_tls_init_c
Original file line number Diff line number Diff line change
@@ -0,0 +1,17 @@
$OpenBSD: patch-tls_tls_init_c,v 1.1 2010/10/04 08:46:51 sthen Exp $

fix for openssl 1.0

--- tls/tls_init.c.orig Sun Oct 3 23:42:58 2010
+++ tls/tls_init.c Sun Oct 3 23:43:44 2010
@@ -536,8 +536,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 ) {
LM_INFO("KRB5 cipher %s found\n", yy->name);

0 comments on commit 37a9f81

Please sign in to comment.