comm

package
v0.0.0-...-102eb4e Latest Latest
Warning

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

Go to latest
Published: Oct 18, 2023 License: MIT Imports: 24 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func ClientConfig

func ClientConfig(c, caCert *x509.Certificate, key *ecdsa.PrivateKey) *tls.Config

func ServerConfig

func ServerConfig(c, caCert *x509.Certificate, key *ecdsa.PrivateKey) *tls.Config

Types

type CryptoUnit

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

func LoadCu

func LoadCu(path string) (*CryptoUnit, error)

func NewCu

func NewCu(path string, config *CryptoUnitConfig) (*CryptoUnit, error)

func (*CryptoUnit) CaCertificate

func (cu *CryptoUnit) CaCertificate() *x509.Certificate

func (*CryptoUnit) Certificate

func (cu *CryptoUnit) Certificate() *x509.Certificate

func (*CryptoUnit) DecodePublicKey

func (cu *CryptoUnit) DecodePublicKey(key []byte) (*ecdsa.PublicKey, error)

func (*CryptoUnit) EncodePublicKey

func (cu *CryptoUnit) EncodePublicKey() ([]byte, error)

func (*CryptoUnit) PrivateKey

func (cu *CryptoUnit) PrivateKey() *ecdsa.PrivateKey

func (*CryptoUnit) PublicKey

func (cu *CryptoUnit) PublicKey() *ecdsa.PublicKey

func (*CryptoUnit) SaveState

func (cu *CryptoUnit) SaveState() error

type CryptoUnitConfig

type CryptoUnitConfig struct {
	Identity  pkix.Name
	CaAddr    string
	Hostnames []string
}

type DirectoryGRPCClient

type DirectoryGRPCClient struct {
	pb.DirectoryServerClient
	// contains filtered or unexported fields
}

func NewDirectoryServerGRPCClient

func NewDirectoryServerGRPCClient(cert, caCert *x509.Certificate, priv *ecdsa.PrivateKey) (*DirectoryGRPCClient, error)

func (*DirectoryGRPCClient) Dial

type DirectoryServerConn

type DirectoryServerConn struct {
	pb.DirectoryServerClient
	// contains filtered or unexported fields
}

func (*DirectoryServerConn) CloseConn

func (c *DirectoryServerConn) CloseConn()

type PolicyStoreConn

type PolicyStoreConn struct {
	pb.PolicyStoreClient
	// contains filtered or unexported fields
}

func (*PolicyStoreConn) CloseConn

func (c *PolicyStoreConn) CloseConn()

type PolicyStoreGRPCClient

type PolicyStoreGRPCClient struct {
	pb.PolicyStoreClient
	// contains filtered or unexported fields
}

func NewPolicyStoreClient

func NewPolicyStoreClient(cert, caCert *x509.Certificate, priv *ecdsa.PrivateKey) (*PolicyStoreGRPCClient, error)

func (*PolicyStoreGRPCClient) Dial

Jump to

Keyboard shortcuts

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