Searched refs:peer_CN (Results 1 – 2 of 2) sorted by relevance
285 const char *peer_CN; in connect_finish() local350 peer_CN = ssl_get_cert_dn(ssl, SSL_X509_CERT_COMMON_NAME); in connect_finish()351 if(peer_CN == NULL) { in connect_finish()361 if(!Curl_cert_hostcheck((const char *)peer_CN, conn->host.name)) { in connect_finish()366 peer_CN, conn->host.dispname); in connect_finish()371 peer_CN, conn->host.dispname); in connect_finish()
1189 unsigned char *peer_CN = nulstr; in verifyhost() local1213 peer_CN = OPENSSL_malloc(j+1); in verifyhost()1214 if(peer_CN) { in verifyhost()1215 memcpy(peer_CN, ASN1_STRING_data(tmp), j); in verifyhost()1216 peer_CN[j] = '\0'; in verifyhost()1221 j = ASN1_STRING_to_UTF8(&peer_CN, tmp); in verifyhost()1223 if(peer_CN && (curlx_uztosi(strlen((char *)peer_CN)) != j)) { in verifyhost()1232 if(peer_CN == nulstr) in verifyhost()1233 peer_CN = NULL; in verifyhost()1236 CURLcode rc = Curl_convert_from_utf8(data, peer_CN, strlen(peer_CN)); in verifyhost()[all …]