Skip to content
GitLab
Menu
Projects
Groups
Snippets
Loading...
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
Menu
Open sidebar
OpenDAS
ollama
Commits
c8b1f236
Commit
c8b1f236
authored
Jan 30, 2024
by
Michael Yang
Browse files
remove unnecessary parse raw
parent
0632dff3
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
1 addition
and
6 deletions
+1
-6
server/auth.go
server/auth.go
+1
-6
No files found.
server/auth.go
View file @
c8b1f236
...
@@ -147,12 +147,7 @@ func (s SignatureData) Bytes() []byte {
...
@@ -147,12 +147,7 @@ func (s SignatureData) Bytes() []byte {
// SignData takes a SignatureData object and signs it with a raw private key
// SignData takes a SignatureData object and signs it with a raw private key
func
(
s
SignatureData
)
Sign
(
rawKey
[]
byte
)
(
string
,
error
)
{
func
(
s
SignatureData
)
Sign
(
rawKey
[]
byte
)
(
string
,
error
)
{
privateKey
,
err
:=
ssh
.
ParseRawPrivateKey
(
rawKey
)
signer
,
err
:=
ssh
.
ParsePrivateKey
(
rawKey
)
if
err
!=
nil
{
return
""
,
err
}
signer
,
err
:=
ssh
.
NewSignerFromKey
(
privateKey
)
if
err
!=
nil
{
if
err
!=
nil
{
return
""
,
err
return
""
,
err
}
}
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
.
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment