mirror of
https://github.com/quexten/goldwarden.git
synced 2024-12-23 19:33:49 +03:00
29 lines
627 B
Go
29 lines
627 B
Go
// 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) {
|
|
// unimplemented
|
|
return "", nil
|
|
}
|
|
|
|
func (pi *pinentryInstance) shouldStoreSecret(info pinentrySecretStoreInfo) bool {
|
|
// unimplemted
|
|
return false
|
|
}
|
|
|
|
func HasWindows() bool {
|
|
// We aren't in an ssh connection, so we can probably spawn a window.
|
|
return len(os.Getenv("SSH_CONNECTION")) == 0
|
|
}
|