Files
go-dkim/pubKeyRep.go
Stéphane Depierrepont aka Toorop 7206fc7daf add struct for pubkey representation
2015-05-12 11:59:34 +02:00

27 lines
516 B
Go

package dkim
import (
"crypto/rsa"
"fmt"
"net"
)
// pubKeyRep represents a parsed version of public key record
type pubKeyRep struct {
Version string
HashAlgo []string
KeyType string
Note string
PubKey rsa.PublicKey
ServiceType []string
FlagTesting bool // flag y
FlagIMustBeD bool // flag i
}
func newPubKeyFromDnsTxt(selector, domain string) (*pubKeyRep, error) {
txt, err := net.LookupTXT(selector + "._domainkey." + domain)
fmt.Println(txt, err)
return nil, nil
}