p11trustmod

package
v0.0.2-0...-fb35a7e Latest Latest
Warning

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

Go to latest
Published: Nov 16, 2022 License: LGPL-2.1 Imports: 11 Imported by: 2

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func Slot

func Slot(b Backend, id uint) p11.Slot

Types

type Backend

type Backend interface {
	// Metadata
	Info() (pkcs11.SlotInfo, error)
	TokenInfo() (pkcs11.TokenInfo, error)
	IsBuiltinRootList() (bool, error)
	IsTrusted() (bool, error)

	// Query
	// TODO: Add StreamIsolationID param, which resets to a new random number whenever an end-entity cert is queried from Tor Browser.
	QueryCertificate(*x509.Certificate) ([]*CertificateData, error)
	QuerySubject(*pkix.Name) ([]*CertificateData, error)
	QueryIssuerSerial(*pkix.Name, *big.Int) ([]*CertificateData, error)
	QueryAll() ([]*CertificateData, error)
}

type CertificateData

type CertificateData struct {
	Label                string
	Certificate          *x509.Certificate
	BuiltinPolicy        bool
	TrustServerAuth      uint
	TrustClientAuth      uint
	TrustCodeSigning     uint
	TrustEmailProtection uint
}

Jump to

Keyboard shortcuts

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