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
98ce2318
Commit
98ce2318
authored
Jul 04, 2014
by
Carlos Martín Nieto
Browse files
Options
Browse Files
Download
Plain Diff
Merge pull request #2461 from jacquesg/ssh2-warnings
Fix SSH2 warnings
parents
b0ed61f8
ae241ae1
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
5 additions
and
3 deletions
+5
-3
include/git2/transport.h
+1
-1
src/transports/ssh.c
+4
-2
No files found.
include/git2/transport.h
View file @
98ce2318
...
...
@@ -69,7 +69,7 @@ typedef struct _LIBSSH2_USERAUTH_KBDINT_RESPONSE LIBSSH2_USERAUTH_KBDINT_RESPONS
#endif
typedef
int
(
*
git_cred_sign_callback
)(
LIBSSH2_SESSION
*
session
,
unsigned
char
**
sig
,
size_t
*
sig_len
,
const
unsigned
char
*
data
,
size_t
data_len
,
void
**
abstract
);
typedef
int
(
*
git_cred_ssh_interactive_callback
)(
const
char
*
name
,
int
name_len
,
const
char
*
instruction
,
int
instruction_len
,
int
num_prompts
,
const
LIBSSH2_USERAUTH_KBDINT_PROMPT
*
prompts
,
LIBSSH2_USERAUTH_KBDINT_RESPONSE
*
responses
,
void
**
abstract
);
typedef
void
(
*
git_cred_ssh_interactive_callback
)(
const
char
*
name
,
int
name_len
,
const
char
*
instruction
,
int
instruction_len
,
int
num_prompts
,
const
LIBSSH2_USERAUTH_KBDINT_PROMPT
*
prompts
,
LIBSSH2_USERAUTH_KBDINT_RESPONSE
*
responses
,
void
**
abstract
);
/**
* A ssh key from disk
...
...
src/transports/ssh.c
View file @
98ce2318
...
...
@@ -5,6 +5,10 @@
* a Linking Exception. For full terms see the included COPYING file.
*/
#ifdef GIT_SSH
#include <libssh2.h>
#endif
#include "git2.h"
#include "buffer.h"
#include "netops.h"
...
...
@@ -12,8 +16,6 @@
#ifdef GIT_SSH
#include <libssh2.h>
#define OWNING_SUBTRANSPORT(s) ((ssh_subtransport *)(s)->parent.subtransport)
static
const
char
prefix_ssh
[]
=
"ssh://"
;
...
...
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