merge totp to workingdir (#476)
* merge totp to workingdir * Refactor .goreleaser.yaml to remove plugin_totp build configuration
This commit is contained in:
parent
0e6168a6b8
commit
23e18f4f7c
11 changed files with 669 additions and 791 deletions
File diff suppressed because it is too large
Load diff
|
|
@ -23,6 +23,7 @@ message Upstream {
|
|||
UpstreamPrivateKeyAuth private_key = 102;
|
||||
UpstreamRemoteSignerAuth remote_signer = 103;
|
||||
UpstreamNextPluginAuth next_plugin = 200;
|
||||
UpstreamRetryCurrentPluginAuth retry_current_plugin = 201;
|
||||
}
|
||||
}
|
||||
|
||||
|
|
@ -47,6 +48,10 @@ message UpstreamNextPluginAuth {
|
|||
map<string, string> meta = 1;
|
||||
}
|
||||
|
||||
message UpstreamRetryCurrentPluginAuth {
|
||||
map<string, string> meta = 1;
|
||||
}
|
||||
|
||||
service SshPiperPlugin {
|
||||
rpc Logs(StartLogRequest) returns (stream Log) {}
|
||||
rpc ListCallbacks(ListCallbackRequest) returns (ListCallbackResponse) {}
|
||||
|
|
|
|||
|
|
@ -147,6 +147,14 @@ func CreateNextPluginAuth(meta map[string]string) *Upstream_NextPlugin {
|
|||
}
|
||||
}
|
||||
|
||||
func CreateRetryCurrentPluginAuth(meta map[string]string) *Upstream_RetryCurrentPlugin {
|
||||
return &Upstream_RetryCurrentPlugin{
|
||||
RetryCurrentPlugin: &UpstreamRetryCurrentPluginAuth{
|
||||
Meta: meta,
|
||||
},
|
||||
}
|
||||
}
|
||||
|
||||
func VerifyHostKeyFromKnownHosts(knownhostsData io.Reader, hostname, netaddr string, key []byte) error {
|
||||
hostKeyCallback, err := knownhosts.NewFromReader(knownhostsData)
|
||||
if err != nil {
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue