Browse Source

OpenSSL: Fix build iwth OpenSSL 0.9.8

The OPENSSL_VERSION_NUMBER < 0x00909000L case of
openssl_get_keyblock_size() had not been kept in sync with the cleanup
changes.

Signed-off-by: Mayank Haarit <mayank.h@samsung.com>
MAYANK HAARIT 9 years ago
parent
commit
92f190a0ac
1 changed files with 1 additions and 1 deletions
  1. 1 1
      src/crypto/tls_openssl.c

+ 1 - 1
src/crypto/tls_openssl.c

@@ -2687,7 +2687,7 @@ static int openssl_get_keyblock_size(SSL *ssl)
 #if OPENSSL_VERSION_NUMBER >= 0x00909000L
 	h = EVP_MD_CTX_md(ssl->read_hash);
 #else
-	h = conn->ssl->read_hash;
+	h = ssl->read_hash;
 #endif
 	if (h)
 		md_size = EVP_MD_size(h);