Make whole heap of tests better

This commit is contained in:
Miek Gieben 2016-03-19 14:46:32 +00:00
parent 01d5804c13
commit d933bb2666
8 changed files with 64 additions and 173 deletions

View file

@ -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)
}