chore(deps): update dependencies

`make vendor-update`
This commit is contained in:
Christopher Allen Lane
2022-11-05 10:14:49 -04:00
parent 2edc0ee299
commit 3a6b6e58f0
212 changed files with 31231 additions and 1580 deletions

View File

@ -85,6 +85,15 @@ type Config struct {
// when producing a generic certification signature onto an existing user ID.
// The identity must be present in the signer Entity.
SigningIdentity string
// InsecureAllowUnauthenticatedMessages controls, whether it is tolerated to read
// encrypted messages without Modification Detection Code (MDC).
// MDC is mandated by the IETF OpenPGP Crypto Refresh draft and has long been implemented
// in most OpenPGP implementations. Messages without MDC are considered unnecessarily
// insecure and should be prevented whenever possible.
// In case one needs to deal with messages from very old OpenPGP implementations, there
// might be no other way than to tolerate the missing MDC. Setting this flag, allows this
// mode of operation. It should be considered a measure of last resort.
InsecureAllowUnauthenticatedMessages bool
}
func (c *Config) Random() io.Reader {
@ -186,3 +195,10 @@ func (c *Config) SigningUserId() string {
}
return c.SigningIdentity
}
func (c *Config) AllowUnauthenticatedMessages() bool {
if c == nil {
return false
}
return c.InsecureAllowUnauthenticatedMessages
}