OpenSSL: Clean up TLS PRF implementation
authorJouni Malinen <j@w1.fi>
Sun, 19 Apr 2015 17:34:12 +0000 (20:34 +0300)
committerJouni Malinen <j@w1.fi>
Wed, 22 Apr 2015 08:17:26 +0000 (11:17 +0300)
commitcb71a8342deae83ea2c86df4f3521f8b765c7f42
treefa7f940015b7e936b202380d1bd7fdcac460721c
parent7f90a234b6edf7644ac6fdaa4fab836ea0dec9f1
OpenSSL: Clean up TLS PRF implementation

Commit fa0e715100b0e6fd956b6de67c3cdf908437436a ('Use
tls_connection_prf() for all EAP TLS-based key derivation') copied some
pointer checks from the generic implementation to tls_openssl.c.
However, these are arrays and cannot be NULL in OpenSSL data. Remove the
unnecessary checks and add master_key_length check for completeness.
(CID 109619).

Signed-off-by: Jouni Malinen <j@w1.fi>
src/crypto/tls_openssl.c