2024-02-04 00:55:49 +03:00
|
|
|
// Copyright 2015 Keybase, Inc. All rights reserved. Use of
|
|
|
|
// this source code is governed by the included BSD license.
|
|
|
|
|
|
|
|
//go:build darwin
|
|
|
|
// +build darwin
|
|
|
|
|
|
|
|
package pinentry
|
|
|
|
|
|
|
|
import (
|
|
|
|
"os"
|
|
|
|
)
|
|
|
|
|
|
|
|
type pinentrySecretStoreInfo string
|
|
|
|
|
|
|
|
func (pi *pinentryInstance) useSecretStore(useSecretStore bool) (pinentrySecretStoreInfo, error) {
|
2024-02-04 02:34:09 +03:00
|
|
|
// unimplemented
|
2024-02-04 02:36:08 +03:00
|
|
|
return "", nil
|
2024-02-04 00:55:49 +03:00
|
|
|
}
|
|
|
|
|
|
|
|
func (pi *pinentryInstance) shouldStoreSecret(info pinentrySecretStoreInfo) bool {
|
2024-02-04 02:34:09 +03:00
|
|
|
// unimplemted
|
|
|
|
return false
|
2024-02-04 00:55:49 +03:00
|
|
|
}
|
|
|
|
|
|
|
|
func HasWindows() bool {
|
|
|
|
// We aren't in an ssh connection, so we can probably spawn a window.
|
|
|
|
return len(os.Getenv("SSH_CONNECTION")) == 0
|
|
|
|
}
|