-
Notifications
You must be signed in to change notification settings - Fork 4
/
options.go
39 lines (27 loc) · 951 Bytes
/
options.go
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
package pgpmail
import (
"io"
"code.google.com/p/go.crypto/openpgp/packet"
)
// encryptToSelf enables also encrypting every email message to the public key of the sender
var encryptToSelf = true
// processInlineEncrypted enables searching inside messages for pgp encrypted message content and processing it
var processInlineEncrypted = true
// processInlineSignatures enables processing of clear-signed message signatures
var processInlineSignatures = true
// useCombinedSignatures enables applying signatures to encrypted messages rather than creating signatures separately
var useCombinedSignatures = true
var openpgpConfig *packet.Config
var testingRandHook io.Reader
func SetEncryptToSelf(v bool) {
encryptToSelf = v
}
func SetProcessInlineEncrypted(v bool) {
processInlineEncrypted = v
}
func SetProcessInlineSignatures(v bool) {
processInlineSignatures = v
}
func SetUseCombinedSignatures(v bool) {
useCombinedSignatures = v
}