internal

package
v0.0.0-...-8299567 Latest Latest
Warning

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

Go to latest
Published: May 10, 2022 License: MPL-2.0 Imports: 19 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

View Source
var RootAnchor = func(ctx context.Context, v *RootZoneConfig, cut string) (*dnssec.Zone, error) {
	zone, err := dnssec.NewZone(cut, nil)
	if err != nil {
		return nil, err
	}
	zone.VerifyCallback = func(ctx context.Context, msg *dns.Msg) (bool, error) {
		return rootVerify(ctx, v, msg)
	}
	return zone, nil
}

Functions

func NewCertVerifier

func NewCertVerifier(dohURL string, q ZoneQuery) (*hnsquery.DNSCertVerifier, error)

func NewContentPages

func NewContentPages(c *Config) *content.Config

func NewGRPCCertVerifierServer

func NewGRPCCertVerifierServer(c *Config) *grpc.Server

func NewHNSQueryClient

func NewHNSQueryClient() (*hnsquery.Client, error)

Types

type CertVerifierGRPC

type CertVerifierGRPC struct {
	proto.UnimplementedCertVerifierServer
	// contains filtered or unexported fields
}

GRPC Verifier should use a mojo pipe instead.

func (*CertVerifierGRPC) VerifyCert

type Config

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

func NewAPI

func NewAPI() (*Config, error)

func (*Config) Launch

func (c *Config) Launch()

type RootZoneConfig

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

type ZoneQuery

type ZoneQuery interface {
	GetZone(ctx context.Context, name string) (rrs []dns.RR, err error)
}

Directories

Path Synopsis

Jump to

Keyboard shortcuts

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