Lines Matching refs:peer_CN
1690 unsigned char *peer_CN = nulstr; in verifyhost() local
1713 peer_CN = OPENSSL_malloc(j + 1); in verifyhost()
1714 if(peer_CN) { in verifyhost()
1715 memcpy(peer_CN, ASN1_STRING_get0_data(tmp), j); in verifyhost()
1716 peer_CN[j] = '\0'; in verifyhost()
1721 j = ASN1_STRING_to_UTF8(&peer_CN, tmp); in verifyhost()
1723 if(peer_CN && (curlx_uztosi(strlen((char *)peer_CN)) != j)) { in verifyhost()
1732 if(peer_CN == nulstr) in verifyhost()
1733 peer_CN = NULL; in verifyhost()
1736 CURLcode rc = Curl_convert_from_utf8(data, (char *)peer_CN, in verifyhost()
1737 strlen((char *)peer_CN)); in verifyhost()
1740 OPENSSL_free(peer_CN); in verifyhost()
1748 else if(!peer_CN) { in verifyhost()
1753 else if(!Curl_cert_hostcheck((const char *)peer_CN, hostname)) { in verifyhost()
1755 "target host name '%s'", peer_CN, dispname); in verifyhost()
1759 infof(data, " common name: %s (matched)\n", peer_CN); in verifyhost()
1761 if(peer_CN) in verifyhost()
1762 OPENSSL_free(peer_CN); in verifyhost()