Make whole heap of tests better
This commit is contained in:
parent
01d5804c13
commit
d933bb2666
8 changed files with 64 additions and 173 deletions
|
@ -76,11 +76,7 @@ func getCertDuringHandshake(name string, loadIfNecessary, obtainIfNecessary bool
|
|||
return Certificate{}, err
|
||||
}
|
||||
|
||||
// Name has to qualify for a certificate
|
||||
if !HostQualifies(name) {
|
||||
return cert, errors.New("hostname '" + name + "' does not qualify for certificate")
|
||||
}
|
||||
|
||||
// TODO(miek): deleted, tls will be enabled when a keyword is specified.
|
||||
// Obtain certificate from the CA
|
||||
return obtainOnDemandCertificate(name)
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue