auth

package
v0.0.0-...-3072089 Latest Latest
Warning

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

Go to latest
Published: Jul 16, 2015 License: Apache-2.0 Imports: 6 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type CertificateVerifier

type CertificateVerifier struct {
	AllowedNames []pkix.Name
}

func (*CertificateVerifier) Verify

func (p *CertificateVerifier) Verify(peerCertificates []*x509.Certificate) error

type DistinguishedNamesParser

type DistinguishedNamesParser interface {
	Parse(string string) (*pkix.Name, error)
}

func NewDistinguishedNamesParser

func NewDistinguishedNamesParser() DistinguishedNamesParser

type SSLConfig

type SSLConfig struct {
	CertFile  string
	KeyFile   string
	CACertPem string
	PkixNames []pkix.Name
}

func NewSSLConfig

func NewSSLConfig(certFile, keyFile, certPem string, allowedNames []string) (SSLConfig, error)

Jump to

Keyboard shortcuts

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