This patch is to remove compilation error while using old openssl

MAYANK HAARIT mayank.h
Mon Jun 1 23:29:33 PDT 2015


This will handle compilation error for the case of
OPENSSL_VERSION_NUMBER < 0x00909000L

Signed-off-by: Mayank Haarit <mayank.h at samsung.com>
---
 src/crypto/tls_openssl.c |    4 ++--
 1 files changed, 2 insertions(+), 2 deletions(-)

diff --git a/src/crypto/tls_openssl.c b/src/crypto/tls_openssl.c
index 5d4795a..78478e5 100644
--- a/src/crypto/tls_openssl.c
+++ b/src/crypto/tls_openssl.c
@@ -2673,7 +2673,7 @@ int tls_connection_get_keys(void *ssl_ctx, struct tls_connection *conn,
 }
 
 
-static int openssl_get_keyblock_size(SSL *ssl)
+static int openssl_get_keyblock_size(SSL *ssl, struct tls_connection *conn)
 {
 	const EVP_CIPHER *c;
 	const EVP_MD *h;
@@ -2737,7 +2737,7 @@ static int openssl_tls_prf(void *tls_ctx, struct tls_connection *conn,
 		return -1;
 
 	if (skip_keyblock) {
-		skip = openssl_get_keyblock_size(ssl);
+		skip = openssl_get_keyblock_size(ssl,conn);
 		if (skip < 0)
 			return -1;
 		tmp_out = os_malloc(skip + out_len);
-- 
1.7.0.4




More information about the Hostap mailing list