File: socket.go

package info (click to toggle)
golang-github-smallstep-crypto 0.57.0-2
  • links: PTS, VCS
  • area: main
  • in suites: forky, sid, trixie
  • size: 3,284 kB
  • sloc: sh: 53; makefile: 36
file content (23 lines) | stat: -rw-r--r-- 460 bytes parent folder | download | duplicates (2)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
package socket

import (
	"errors"
	"io"
)

var (
	ErrNotAvailable = errors.New("socket not available")
	ErrNotSupported = errors.New("connecting to a TPM using a UNIX socket is not supported on Windows")
)

func New(path string) (io.ReadWriteCloser, error) {
	return newSocket(path)
}

type CommandChannelWithoutMeasurementLog struct {
	io.ReadWriteCloser
}

func (c *CommandChannelWithoutMeasurementLog) MeasurementLog() ([]byte, error) {
	return nil, nil
}