Lines Matching refs:peer_CN
1203 unsigned char *peer_CN = nulstr; in verifyhost() local
1227 peer_CN = OPENSSL_malloc(j+1); in verifyhost()
1228 if(peer_CN) { in verifyhost()
1229 memcpy(peer_CN, ASN1_STRING_get0_data(tmp), j); in verifyhost()
1230 peer_CN[j] = '\0'; in verifyhost()
1235 j = ASN1_STRING_to_UTF8(&peer_CN, tmp); in verifyhost()
1237 if(peer_CN && (curlx_uztosi(strlen((char *)peer_CN)) != j)) { in verifyhost()
1246 if(peer_CN == nulstr) in verifyhost()
1247 peer_CN = NULL; in verifyhost()
1250 CURLcode rc = Curl_convert_from_utf8(data, peer_CN, strlen(peer_CN)); in verifyhost()
1253 OPENSSL_free(peer_CN); in verifyhost()
1261 else if(!peer_CN) { in verifyhost()
1266 else if(!Curl_cert_hostcheck((const char *)peer_CN, hostname)) { in verifyhost()
1268 "target host name '%s'", peer_CN, dispname); in verifyhost()
1272 infof(data, " common name: %s (matched)\n", peer_CN); in verifyhost()
1274 if(peer_CN) in verifyhost()
1275 OPENSSL_free(peer_CN); in verifyhost()