32 lines
984 B
Go
32 lines
984 B
Go
package dkim
|
|
|
|
import (
|
|
"errors"
|
|
)
|
|
|
|
var (
|
|
// ErrConfigPrivateKeyRequired when there not private key in config
|
|
ErrSignPrivateKeyRequired = errors.New("PrivateKey is required")
|
|
|
|
// ErrSignDomainRequired when there is no domain defined in config
|
|
ErrSignDomainRequired = errors.New("Domain is required")
|
|
|
|
// ErrSignSelectorRequired when there is no Selcteir defined in config
|
|
ErrSignSelectorRequired = errors.New("Selector is required")
|
|
|
|
// If Headers is specified it should at least contain 'from'
|
|
ErrSignHeaderShouldContainsFrom = errors.New("Header must contains 'from' field")
|
|
|
|
// If bad Canonicalization parameter
|
|
ErrSignBadCanonicalization = errors.New("bad Canonicalization parameter")
|
|
|
|
// Bad algorithm
|
|
ErrSignBadAlgo = errors.New("bad algorithm. Only rsa-sha1 or rsa-sha256 are permitted")
|
|
|
|
// ErrBadMailFormat
|
|
ErrBadMailFormat = errors.New("bad mail format")
|
|
|
|
// ErrBadMailFormatHeaders
|
|
ErrBadMailFormatHeaders = errors.New("bad mail format found in headers")
|
|
)
|