aboutsummaryrefslogtreecommitdiffstats
path: root/wpa_supplicant
diff options
context:
space:
mode:
Diffstat (limited to 'wpa_supplicant')
-rw-r--r--wpa_supplicant/tls_openssl.c6
1 files changed, 4 insertions, 2 deletions
diff --git a/wpa_supplicant/tls_openssl.c b/wpa_supplicant/tls_openssl.c
index 42d58f9..a22a53a 100644
--- a/wpa_supplicant/tls_openssl.c
+++ b/wpa_supplicant/tls_openssl.c
@@ -1054,7 +1054,9 @@ static int tls_connection_ca_cert(void *_ssl_ctx, struct tls_connection *conn,
SSL_CTX *ssl_ctx = _ssl_ctx;
if (ca_cert_blob) {
- X509 *cert = d2i_X509(NULL, &ca_cert_blob, ca_cert_blob_len);
+ X509 *cert = d2i_X509(NULL,
+ (unsigned char **) &ca_cert_blob,
+ ca_cert_blob_len);
if (cert == NULL) {
tls_show_errors(MSG_WARNING, __func__,
"Failed to parse ca_cert_blob");
@@ -1408,7 +1410,7 @@ static int tls_read_pkcs12_blob(SSL_CTX *ssl_ctx, SSL *ssl,
#ifdef PKCS12_FUNCS
PKCS12 *p12;
- p12 = d2i_PKCS12(NULL, &blob, len);
+ p12 = d2i_PKCS12(NULL, (unsigned char **) &blob, len);
if (p12 == NULL) {
tls_show_errors(MSG_INFO, __func__,
"Failed to use PKCS#12 blob");