From: Jouni Malinen Date: Thu, 14 Mar 2019 22:33:33 +0000 (+0200) Subject: OpenSSL: Fix build with OpenSSL 1.0.2 X-Git-Tag: hostap_2_8~215 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=c675397cc3876e676630afb400c834785d32bd14;p=thirdparty%2Fhostap.git OpenSSL: Fix build with OpenSSL 1.0.2 X509_get_subject_name() in OpenSSL 1.0.2 does not mark its argument as a const pointer, so need to type cast this to avoid a build warning. Fixes: 841205a1ceb1 ("OpenSSL: Add 'check_cert_subject' support for TLS server") Signed-off-by: Jouni Malinen --- diff --git a/src/crypto/tls_openssl.c b/src/crypto/tls_openssl.c index 699e07443..b8d055664 100644 --- a/src/crypto/tls_openssl.c +++ b/src/crypto/tls_openssl.c @@ -1823,7 +1823,7 @@ static int match_dn_field(const X509 *cert, int nid, const char *field, X509_NAME *name; len = os_strlen(value); - name = X509_get_subject_name(cert); + name = X509_get_subject_name((X509 *) cert); /* Assign incremented cnt for every field of DN to check DN field in * right order */