autocrypt

package module
v0.0.0-...-fd894fe Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Dec 28, 2016 License: MIT Imports: 8 Imported by: 0

README

go-autocrypt

Go implementation of the Autocrypt draft

Documentation

Index

Constants

This section is empty.

Variables

View Source
var (
	ErrUnknownType   = errors.New("unkown type")
	ErrUnknownPrefer = errors.New("unkown prefer")
	ErrUnknownAttr   = errors.New("unkown attribute")
	ErrParse         = errors.New("parse error")
	ErrNoHeader      = errors.New("no AUTOCRYPT header found")
)

Functions

This section is empty.

Types

type Attr

type Attr string
type Header struct {
	To              string
	Key             *openpgp.Entity
	PreferEncrypted bool
	Type            TypeOption

	Uncritical map[string]string
}

func ParseHeader

func ParseHeader(mailHeader mail.Header) (*Header, error)

func (*Header) String

func (h *Header) String() string

type TypeOption

type TypeOption int
const (
	TypeOpenPGP TypeOption = iota
	TypeInvalid
)

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL