コード例 #1
0
ファイル: tpm.go プロジェクト: carriercomm/pond
func (c *Context) Close() error {
	C.Tspi_Context_FreeMemory(c.ctx, nil)
	if result := C.Tspi_Context_Close(c.ctx); isError(result) {
		return Error{result}
	}
	return nil
}
コード例 #2
0
ファイル: context.go プロジェクト: krnowak/rkt
// Close closes the connection between the context and the TSS daemon. It
// returns an error on failure.
func (context *Context) Close() error {
	err := tspiError(C.Tspi_Context_Close(context.context))
	return err
}