Welcome to mirror list, hosted at ThFree Co, Russian Federation.

gitlab.com/gitlab-org/gitaly.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
Diffstat (limited to 'internal/signature/ssh.go')
-rw-r--r--internal/signature/ssh.go3
1 files changed, 2 insertions, 1 deletions
diff --git a/internal/signature/ssh.go b/internal/signature/ssh.go
index 83e6c6551..b7fe27d12 100644
--- a/internal/signature/ssh.go
+++ b/internal/signature/ssh.go
@@ -5,6 +5,7 @@ import (
"crypto/sha512"
"encoding/pem"
"fmt"
+ "time"
"golang.org/x/crypto/ssh"
)
@@ -56,7 +57,7 @@ func parseSSHSigningKey(key []byte) (*SSHSigningKey, error) {
}
// CreateSignature creates an SSH signature
-func (sk *SSHSigningKey) CreateSignature(contentToSign []byte) ([]byte, error) {
+func (sk *SSHSigningKey) CreateSignature(contentToSign []byte, _ time.Time) ([]byte, error) {
signer, ok := sk.PrivateKey.(ssh.AlgorithmSigner)
if !ok {
return nil, fmt.Errorf("wrong type of the private key")