regular

package
v0.0.13 Latest Latest
Warning

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

Go to latest
Published: Mar 8, 2023 License: Apache-2.0 Imports: 20 Imported by: 0

Documentation

Index

Constants

View Source
const (
	// HandlerName is a unique name to identify a handler.
	// It is also appended to the cert label.
	HandlerName = "paranoids.regular"
	// IsForHumanUser indicates whether this handler should be used for a human user.
	IsForHumanUser = true
)

Variables

This section is empty.

Functions

func NewHandler

func NewHandler(gensignConf *config.GensignConfig, conn net.Conn) (gensign.Handler, error)

NewHandler creates an SSH agent the ssh connection, and constructs a gensign.Handler containing the options loaded from conf.

Types

type Handler

type Handler struct {
	// contains filtered or unexported fields
}

Handler implements gensign.Handler.

func (*Handler) Authenticate

func (h *Handler) Authenticate(param *csr.ReqParam) error

Authenticate succeeds if the user is allowed to use request the certificate based on the public key on server side's directory.

func (*Handler) Generate

func (h *Handler) Generate(param *csr.ReqParam) ([]csr.AgentKey, error)

Generate implements csr.Generator. TODO: add tests and wrap all errors as gensign errors.

func (*Handler) Name

func (h *Handler) Name() string

Name returns the name of the handler.

Jump to

Keyboard shortcuts

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