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 <jouni@codeaurora.org>
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 */