]> git.ipfire.org Git - thirdparty/hostap.git/commitdiff
OpenSSL: Fix build iwth OpenSSL 0.9.8
authorMAYANK HAARIT <mayank.h@samsung.com>
Wed, 3 Jun 2015 05:39:34 +0000 (05:39 +0000)
committerJouni Malinen <j@w1.fi>
Sat, 6 Jun 2015 14:15:47 +0000 (17:15 +0300)
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>
src/crypto/tls_openssl.c

index 5d4795a12e96e96a76a133fa9f6c99241598eacd..db3bc5bd780c7777b4dca6096fd56b639b6b4907 100644 (file)
@@ -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);