File: close_windows.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 (18 lines) | stat: -rw-r--r-- 268 bytes parent folder | download | duplicates (2)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
//go:build windows
// +build windows

package closer

import (
	"io"

	"github.com/smallstep/go-attestation/attest"
)

func closeRWC(rwc io.ReadWriteCloser) error {
	return rwc.Close()
}

func attestTPM(t *attest.TPM, _ *attest.OpenConfig) error {
	return t.Close()
}