client

package
v0.0.2 Latest Latest
Warning

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

Go to latest
Published: Jun 13, 2023 License: Apache-2.0 Imports: 16 Imported by: 0

Documentation

Index

Constants

View Source
const RequestIdLength = 8

Variables

This section is empty.

Functions

func NewRequesterState

func NewRequesterState(caPrefix string, certificateName string, caPublicIdentityKey *ecdsa.PublicKey, certValidityPeriod uint64, ndnEngine ndn.Engine) (*requesterState, error)

Types

type ChallengeResult

type ChallengeResult struct {
	ChallengeStatus       *ChallengeStatus
	RemainingTime         *uint64
	RemainingTries        *uint64
	IssuedCertificateName enc.Name
	ForwardingHint        *ndncert.Links
	IssuedCertificateBits *[]byte
	ErrorMessage          *ndncert.ErrorMessage
}

type ChallengeStatus

type ChallengeStatus uint64
const (
	ChallengeStatusBeforeChallenge ChallengeStatus = iota
	ChallengeStatusAfterNewData
	ChallengeStatusAfterSelectionChallengeData
	ChallengeStatusFailure
	ChallengeStatusSuccess
)

type InfoResult

type InfoResult struct {
	CaPrefix          string
	CaInfo            string
	MaxValidityPeriod uint64
	CaCertificate     []byte
}

func ExpressInfoInterest

func ExpressInfoInterest(ndnEngine ndn.Engine, caPrefix string) (*InfoResult, error)

type NewResult

type NewResult struct {
	RequestId           *RequestId
	AvailableChallenges *[]string
	ErrorMessage        *ndncert.ErrorMessage
}

type RequestId

type RequestId [RequestIdLength]byte

Jump to

Keyboard shortcuts

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