atls

package
v0.4.0 Latest Latest
Warning

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

Go to latest
Published: Dec 6, 2024 License: Apache-2.0 Imports: 14 Imported by: 0

Documentation

Overview

Code generated by cmd/cgo; DO NOT EDIT. Copyright (c) Ultraviolet SPDX-License-Identifier: Apache-2.0

Index

Constants

View Source
const (
	NoTee int = iota
	AmdSevSnp
)
View Source
const (
	NO_ERROR          = 0
	ERROR_ZERO_RETURN = 6
	ERROR_WANT_READ   = 2
	ERROR_WANT_WRITE  = 3
	ERROR_SYSCALL     = 5
	ERROR_SSL         = 1
)

Variables

This section is empty.

Functions

func DialTLSClient

func DialTLSClient(hostname string, port int) (net.Conn, error)

func Listen

func Listen(addr string, cert []byte, key []byte) (net.Listener, error)

Types

type ATLSConn

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

func (*ATLSConn) Close

func (c *ATLSConn) Close() error

func (*ATLSConn) LocalAddr

func (c *ATLSConn) LocalAddr() net.Addr

func (*ATLSConn) Read

func (c *ATLSConn) Read(b []byte) (int, error)

func (*ATLSConn) RemoteAddr

func (c *ATLSConn) RemoteAddr() net.Addr

func (*ATLSConn) SetDeadline

func (c *ATLSConn) SetDeadline(t time.Time) error

func (*ATLSConn) SetReadDeadline

func (c *ATLSConn) SetReadDeadline(t time.Time) error

func (*ATLSConn) SetWriteDeadline

func (c *ATLSConn) SetWriteDeadline(t time.Time) error

func (*ATLSConn) Write

func (c *ATLSConn) Write(b []byte) (int, error)

type ATLSServerListener

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

func (*ATLSServerListener) Accept

func (l *ATLSServerListener) Accept() (net.Conn, error)

accept implements the Accept method in the [Listener] interface; it waits for the next call and returns a generic [Conn].

func (*ATLSServerListener) Addr

func (l *ATLSServerListener) Addr() net.Addr

addr returns the listener's network address, a [*TCPAddr]. the Addr returned is shared by all invocations of Addr, so do not modify it.

func (*ATLSServerListener) Close

func (l *ATLSServerListener) Close() error

close stops listening on the TCP address. already Accepted connections are not closed.

type FetchAttestation

type FetchAttestation func(data1 []byte) ([]byte, error)

type ValidationVerification

type ValidationVerification func(data1, data2 []byte) error

Jump to

Keyboard shortcuts

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