You cannot select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
36 lines
591 B
Go
36 lines
591 B
Go
// +build windows
|
|
|
|
package obfssh
|
|
|
|
import (
|
|
"errors"
|
|
"os/exec"
|
|
"os/user"
|
|
"syscall"
|
|
|
|
"github.com/containerd/console"
|
|
"golang.org/x/crypto/ssh"
|
|
)
|
|
|
|
func consoleChange(_console console.Console, session *ssh.Session) {
|
|
|
|
}
|
|
|
|
func newPty() (console.Console, string, error) {
|
|
return nil, "", errors.New("not supported")
|
|
}
|
|
|
|
func setProcAttr(attr *syscall.SysProcAttr) {
|
|
}
|
|
|
|
func setTermios(fd int, args ssh.TerminalModes) error {
|
|
return errors.New("not supported")
|
|
}
|
|
|
|
func setUserEnv(_cmd *exec.Cmd, u *user.User, attr *syscall.SysProcAttr) {
|
|
if u == nil {
|
|
return
|
|
}
|
|
_cmd.Dir = u.HomeDir
|
|
}
|