summaryrefslogtreecommitdiff
path: root/lib/vtls/openssl.c
diff options
context:
space:
mode:
authorDaniel Stenberg <daniel@haxx.se>2017-09-11 00:31:12 +0200
committerDaniel Stenberg <daniel@haxx.se>2017-09-15 16:58:35 +0200
commit93843c372f101b994194f0192db159c16d26a7c0 (patch)
tree0300e2ab32c02b901621b129aeddfd781ce1c027 /lib/vtls/openssl.c
parent452c906dfdbffc0d150786884eba4fee20564fcf (diff)
downloadcurl-93843c372f101b994194f0192db159c16d26a7c0.tar.gz
conversions: fix several compiler warnings
Diffstat (limited to 'lib/vtls/openssl.c')
-rw-r--r--lib/vtls/openssl.c3
1 files changed, 2 insertions, 1 deletions
diff --git a/lib/vtls/openssl.c b/lib/vtls/openssl.c
index ccaf032c2..2933584b3 100644
--- a/lib/vtls/openssl.c
+++ b/lib/vtls/openssl.c
@@ -1478,7 +1478,8 @@ static CURLcode verifyhost(struct connectdata *conn, X509 *server_cert)
peer_CN = NULL;
else {
/* convert peer_CN from UTF8 */
- CURLcode rc = Curl_convert_from_utf8(data, peer_CN, strlen(peer_CN));
+ CURLcode rc = Curl_convert_from_utf8(data, (char *)peer_CN,
+ strlen((char *)peer_CN));
/* Curl_convert_from_utf8 calls failf if unsuccessful */
if(rc) {
OPENSSL_free(peer_CN);