Skip to content
Projects
Groups
Snippets
Help
This project
Loading...
Sign in / Register
Toggle navigation
G
git2
Overview
Overview
Details
Activity
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Board
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Charts
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
lvzhengyang
git2
Commits
3433acd9
Commit
3433acd9
authored
Dec 21, 2020
by
Miguel Arroz
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Wrap newer hostkeys in #ifdefs
This allows the library to be built using a pre-1.9.0 version of libssh2.
parent
ed7b20e7
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
6 additions
and
0 deletions
+6
-0
src/transports/ssh.c
+6
-0
No files found.
src/transports/ssh.c
View file @
3433acd9
...
...
@@ -580,6 +580,8 @@ post_extract:
case
LIBSSH2_HOSTKEY_TYPE_DSS
:
cert
.
raw_type
=
GIT_CERT_SSH_RAW_TYPE_DSS
;
break
;
#ifdef LIBSSH2_HOSTKEY_TYPE_ECDSA_256
case
LIBSSH2_HOSTKEY_TYPE_ECDSA_256
:
cert
.
raw_type
=
GIT_CERT_SSH_RAW_TYPE_KEY_ECDSA_256
;
break
;
...
...
@@ -589,9 +591,13 @@ post_extract:
case
LIBSSH2_KNOWNHOST_KEY_ECDSA_521
:
cert
.
raw_type
=
GIT_CERT_SSH_RAW_TYPE_KEY_ECDSA_521
;
break
;
#endif
#ifdef LIBSSH2_HOSTKEY_TYPE_ED25519
case
LIBSSH2_HOSTKEY_TYPE_ED25519
:
cert
.
raw_type
=
GIT_CERT_SSH_RAW_TYPE_KEY_ED25519
;
break
;
#endif
default:
cert
.
raw_type
=
GIT_CERT_SSH_RAW_TYPE_UNKNOWN
;
}
...
...
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