refactoring

This commit is contained in:
Stéphane Depierrepont aka Toorop
2015-05-14 09:51:58 +02:00
parent dc14f06d84
commit 016293cce9
3 changed files with 57 additions and 81 deletions

View File

@@ -20,7 +20,7 @@ type pubKeyRep struct {
FlagIMustBeD bool // flag i
}
func newPubKeyFromDnsTxt(selector, domain string) (*pubKeyRep, VerifyOutput, error) {
func newPubKeyFromDnsTxt(selector, domain string) (*pubKeyRep, verifyOutput, error) {
txt, err := net.LookupTXT(selector + "._domainkey." + domain)
if err != nil {
if strings.HasSuffix(err.Error(), "no such host") {