aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorJouni Malinen <j@w1.fi>2005-12-19 02:28:33 (GMT)
committerJouni Malinen <j@w1.fi>2005-12-19 02:28:33 (GMT)
commitf79ae76baa60b3d7927d4b364eeb585103e16fc6 (patch)
treef47278b980e628a90e8026cafb2be980653474ff
parent3cb20640ebfe6c56cca1341f25fd577dccdf901c (diff)
downloadhostap-history-f79ae76baa60b3d7927d4b364eeb585103e16fc6.zip
hostap-history-f79ae76baa60b3d7927d4b364eeb585103e16fc6.tar.gz
hostap-history-f79ae76baa60b3d7927d4b364eeb585103e16fc6.tar.bz2
Typecast d2i_X509() and d2i_PKCS12() arguments to get rid of compiler
warnings.
-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");