diff options
author | Daniel Stenberg <daniel@haxx.se> | 2006-04-07 21:50:47 +0000 |
---|---|---|
committer | Daniel Stenberg <daniel@haxx.se> | 2006-04-07 21:50:47 +0000 |
commit | 5a4b43848ac21b3d831f00ce11136e20f820f0a0 (patch) | |
tree | 981b8520e1f9aa683da489c8a283fb513dd26f16 /lib/ssluse.c | |
parent | d98869a0889195a9e0d353cf691219f78186ac93 (diff) |
First commit of David McCreedy's EBCDIC and TPF changes.
Diffstat (limited to 'lib/ssluse.c')
-rw-r--r-- | lib/ssluse.c | 12 |
1 files changed, 12 insertions, 0 deletions
diff --git a/lib/ssluse.c b/lib/ssluse.c index 7be5a7cad..60d174fd1 100644 --- a/lib/ssluse.c +++ b/lib/ssluse.c @@ -68,6 +68,7 @@ #endif #include "memory.h" +#include "easyif.h" /* for Curl_convert_from_utf8 prototype */ /* The last #include file should be: */ #include "memdebug.h" @@ -972,6 +973,17 @@ static CURLcode verifyhost(struct connectdata *conn, if (peer_CN == nulstr) peer_CN = NULL; +#ifdef CURL_DOES_CONVERSIONS + else { + /* convert peer_CN from UTF8 */ + size_t rc; + rc = Curl_convert_from_utf8(data, peer_CN, strlen(peer_CN)); + /* Curl_convert_from_utf8 calls failf if unsuccessful */ + if (rc != CURLE_OK) { + return(rc); + } + } +#endif /* CURL_DOES_CONVERSIONS */ if (!peer_CN) { if(data->set.ssl.verifyhost > 1) { |