Lines Matching refs:cert_name
456 unsigned char *cert_name = NULL; in php_openssl_matches_san_list() local
479 ASN1_STRING_to_UTF8(&cert_name, san->d.dNSName); in php_openssl_matches_san_list()
480 if ((size_t)ASN1_STRING_length(san->d.dNSName) != strlen((const char*)cert_name)) { in php_openssl_matches_san_list()
481 OPENSSL_free(cert_name); in php_openssl_matches_san_list()
487 len = strlen((const char*)cert_name); in php_openssl_matches_san_list()
488 if (len && strcmp((const char *)&cert_name[len-1], ".") == 0) { in php_openssl_matches_san_list()
489 cert_name[len-1] = '\0'; in php_openssl_matches_san_list()
492 if (php_openssl_matches_wildcard_name(subject_name, (const char *)cert_name)) { in php_openssl_matches_san_list()
493 OPENSSL_free(cert_name); in php_openssl_matches_san_list()
498 OPENSSL_free(cert_name); in php_openssl_matches_san_list()
536 X509_NAME *cert_name; in php_openssl_matches_common_name() local
540 cert_name = X509_get_subject_name(peer); in php_openssl_matches_common_name()
541 cert_name_len = X509_NAME_get_text_by_NID(cert_name, NID_commonName, buf, sizeof(buf)); in php_openssl_matches_common_name()