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
60f47be6
Unverified
Commit
60f47be6
authored
Jan 31, 2024
by
Michael Yang
Committed by
GitHub
Jan 31, 2024
Browse files
Merge pull request #2284 from ollama/mxyng/parse-raw
remove unnecessary parse raw
parents
6e56077a
c8b1f236
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 @
60f47be6
...
@@ -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