export SigOptions

This commit is contained in:
Stéphane Depierrepont aka Toorop
2015-05-15 07:49:31 +02:00
parent 293f4b202a
commit 59cecbc7e8
2 changed files with 5 additions and 5 deletions

View File

@@ -38,7 +38,7 @@ const (
)
// sigOptions represents signing options
type sigOptions struct {
type SigOptions struct {
// DKIM version (default 1)
Version uint
@@ -84,8 +84,8 @@ type sigOptions struct {
}
// NewSigOption returns new sigoption with some defaults value
func NewSigOptions() sigOptions {
return sigOptions{
func NewSigOptions() SigOptions {
return SigOptions{
Version: 1,
Canonicalization: "simple/simple",
Algo: "rsa-sha256",
@@ -98,7 +98,7 @@ func NewSigOptions() sigOptions {
}
// Sign signs an email
func Sign(email *[]byte, options sigOptions) error {
func Sign(email *[]byte, options SigOptions) error {
var privateKey *rsa.PrivateKey
// PrivateKey

View File

@@ -197,7 +197,7 @@ type dkimHeader struct {
}
// NewDkimHeaderBySigOptions return a new DkimHeader initioalized with sigOptions value
func newDkimHeaderBySigOptions(options sigOptions) *dkimHeader {
func newDkimHeaderBySigOptions(options SigOptions) *dkimHeader {
h := new(dkimHeader)
h.Version = "1"
h.Algorithm = options.Algo