mirror of
https://github.com/ergochat/ergo.git
synced 2025-12-20 02:00:11 -08:00
upgrade go-msgauth
This commit is contained in:
parent
e404942d83
commit
e7501ef847
5 changed files with 11 additions and 4 deletions
7
vendor/github.com/emersion/go-msgauth/dkim/header.go
generated
vendored
7
vendor/github.com/emersion/go-msgauth/dkim/header.go
generated
vendored
|
|
@ -83,7 +83,12 @@ func parseHeaderParams(s string) (map[string]string, error) {
|
|||
return params, errors.New("dkim: malformed header params")
|
||||
}
|
||||
|
||||
params[strings.TrimSpace(key)] = strings.TrimSpace(value)
|
||||
trimmedKey := strings.TrimSpace(key)
|
||||
_, present := params[trimmedKey]
|
||||
if present {
|
||||
return params, errors.New("dkim: duplicate tag name")
|
||||
}
|
||||
params[trimmedKey] = strings.TrimSpace(value)
|
||||
}
|
||||
return params, nil
|
||||
}
|
||||
|
|
|
|||
2
vendor/github.com/emersion/go-msgauth/dkim/query.go
generated
vendored
2
vendor/github.com/emersion/go-msgauth/dkim/query.go
generated
vendored
|
|
@ -100,7 +100,7 @@ func queryDNSTXT(domain, selector string, txtLookup txtLookupFunc) (*queryResult
|
|||
func parsePublicKey(s string) (*queryResult, error) {
|
||||
params, err := parseHeaderParams(s)
|
||||
if err != nil {
|
||||
return nil, permFailError("key syntax error: " + err.Error())
|
||||
return nil, permFailError("key record error: " + err.Error())
|
||||
}
|
||||
|
||||
res := new(queryResult)
|
||||
|
|
|
|||
2
vendor/modules.txt
vendored
2
vendor/modules.txt
vendored
|
|
@ -10,7 +10,7 @@ github.com/GehirnInc/crypt/md5_crypt
|
|||
# github.com/docopt/docopt-go v0.0.0-20180111231733-ee0de3bc6815
|
||||
## explicit
|
||||
github.com/docopt/docopt-go
|
||||
# github.com/emersion/go-msgauth v0.6.8
|
||||
# github.com/emersion/go-msgauth v0.7.0
|
||||
## explicit; go 1.18
|
||||
github.com/emersion/go-msgauth/dkim
|
||||
# github.com/ergochat/confusables v0.0.0-20201108231250-4ab98ab61fb1
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue