4
0
mirror of https://github.com/QuasarApp/qca.git synced 2025-05-09 09:19:33 +00:00

Hostname -> HostName

svn path=/trunk/kdesupport/qca/; revision=680269
This commit is contained in:
Justin Karneges 2007-06-25 19:39:00 +00:00
parent 61528f9968
commit 3a5009ce8a
3 changed files with 4 additions and 4 deletions

@ -1062,7 +1062,7 @@ CertificateInfoOrdered info = cert.subjectInfoOrdered();
\param host the name of the host to compare to
*/
bool matchesHostname(const QString &host) const;
bool matchesHostName(const QString &host) const;
/**
Test for equality of two certificates

@ -1666,7 +1666,7 @@ Certificate Certificate::fromPEMFile(const QString &fileName, ConvertResult *res
// check for ip addresses in iPAddress, dNSName, then commonName
// for all else, check in dNSName, then commonName
bool Certificate::matchesHostname(const QString &host) const
bool Certificate::matchesHostName(const QString &host) const
{
QByteArray ipaddr = ipaddr_str2bin(host);
if(!ipaddr.isEmpty()) // ip address

@ -260,7 +260,7 @@ public:
if(!peerCert.isEmpty())
{
peerValidity = c->peerCertificateValidity();
if(peerValidity == ValidityGood && !host.isEmpty() && !peerCert.primary().matchesHostname(host))
if(peerValidity == ValidityGood && !host.isEmpty() && !peerCert.primary().matchesHostName(host))
hostMismatch = true;
}
sessionInfo = c->sessionInfo();
@ -811,7 +811,7 @@ public:
// if(!peerCert.isEmpty())
// {
// peerValidity = c->peerCertificateValidity();
// if(peerValidity == ValidityGood && !host.isEmpty() && !peerCert.primary().matchesHostname(host))
// if(peerValidity == ValidityGood && !host.isEmpty() && !peerCert.primary().matchesHostName(host))
// hostMismatch = true;
// }
// sessionInfo = c->sessionInfo();