Home
last modified time | relevance | path

Searched refs:certnamesz (Results 1 – 2 of 2) sorted by relevance

/dports/security/sslproxy/SSLproxy-0.9.2/src/
H A Dssl.c1572 ssl_dnsname_match(const char *certname, size_t certnamesz, in ssl_dnsname_match() argument
1575 if (hostnamesz < certnamesz) in ssl_dnsname_match()
1577 if ((hostnamesz == certnamesz) && in ssl_dnsname_match()
1578 !memcmp(certname, hostname, certnamesz)) in ssl_dnsname_match()
1582 if ((certnamesz == 1) && (certname[0] == '*') && in ssl_dnsname_match()
1585 if ((certnamesz > 2) && (certname[0] == '*') && (certname[1] == '.') && in ssl_dnsname_match()
1587 &hostname[hostnamesz - (certnamesz - 1)], in ssl_dnsname_match()
1588 certnamesz - 1) && in ssl_dnsname_match()
1590 &hostname[hostnamesz - (certnamesz - 1)])) in ssl_dnsname_match()
/dports/security/sslsplit/sslsplit-0.5.5/
H A Dssl.c1567 ssl_dnsname_match(const char *certname, size_t certnamesz, in ssl_dnsname_match() argument
1570 if (hostnamesz < certnamesz) in ssl_dnsname_match()
1572 if ((hostnamesz == certnamesz) && in ssl_dnsname_match()
1573 !memcmp(certname, hostname, certnamesz)) in ssl_dnsname_match()
1577 if ((certnamesz == 1) && (certname[0] == '*') && in ssl_dnsname_match()
1580 if ((certnamesz > 2) && (certname[0] == '*') && (certname[1] == '.') && in ssl_dnsname_match()
1582 &hostname[hostnamesz - (certnamesz - 1)], in ssl_dnsname_match()
1583 certnamesz - 1) && in ssl_dnsname_match()
1585 &hostname[hostnamesz - (certnamesz - 1)])) in ssl_dnsname_match()