Skip to content
GitLab
Explore
Sign in
Primary navigation
Search or go to…
Project
T
TLMSP curl
Manage
Activity
Members
Labels
Plan
Issues
Issue boards
Milestones
Wiki
Code
Merge requests
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Snippets
Build
Pipelines
Jobs
Pipeline schedules
Artifacts
Deploy
Releases
Package registry
Container Registry
Model registry
Operate
Environments
Terraform modules
Monitor
Incidents
Analyze
Value stream analytics
Contributor analytics
CI/CD analytics
Repository analytics
Model experiments
Help
Help
Support
GitLab documentation
Compare GitLab plans
Community forum
Contribute to GitLab
Provide feedback
Keyboard shortcuts
?
Snippets
Groups
Projects
Show more breadcrumbs
CYBER - Cyber Security
TS 103 523 MSP
TLMSP
TLMSP curl
Commits
a7d88942
Commit
a7d88942
authored
13 years ago
by
Yang Tse
Browse files
Options
Downloads
Patches
Plain Diff
ssh.c: revert needless commit
7b7c4587
parent
08a5a9b6
No related branches found
Branches containing commit
No related tags found
Tags containing commit
No related merge requests found
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
RELEASE-NOTES
+0
-1
0 additions, 1 deletion
RELEASE-NOTES
lib/ssh.c
+3
-57
3 additions, 57 deletions
lib/ssh.c
with
3 additions
and
58 deletions
RELEASE-NOTES
+
0
−
1
View file @
a7d88942
...
...
@@ -51,7 +51,6 @@ This release includes the following bugfixes:
o RTSP: GET_PARAMETER requests have a body
o fixed several memory leaks in OOM situations
o bad expire(0) caused multi_socket API to hang
o libssh2: use calloc as alloc function for older libssh2
o Avoid ftruncate() static define with mingw64
o mk-ca-bundle.pl: ignore untrusted certs
...
...
This diff is collapsed.
Click to expand it.
lib/ssh.c
+
3
−
57
View file @
a7d88942
...
...
@@ -111,7 +111,6 @@
/* Local functions: */
static
const
char
*
sftp_libssh2_strerror
(
unsigned
long
err
);
static
LIBSSH2_ALLOC_FUNC
(
my_libssh2_malloc
);
static
LIBSSH2_ALLOC_FUNC
(
my_libssh2_calloc
);
static
LIBSSH2_REALLOC_FUNC
(
my_libssh2_realloc
);
static
LIBSSH2_FREE_FUNC
(
my_libssh2_free
);
...
...
@@ -199,44 +198,6 @@ const struct Curl_handler Curl_handler_sftp = {
};
static
void
libssh2_version_components
(
int
*
major
,
int
*
minor
,
int
*
patch
)
{
char
buff
[
80
];
char
*
ptr
=
&
buff
[
0
];
*
major
=
0
;
*
minor
=
0
;
*
patch
=
0
;
#ifdef HAVE_LIBSSH2_VERSION
/* run-time version */
snprintf
(
buff
,
sizeof
(
buff
),
"%s"
,
libssh2_version
(
0
));
#else
/* compile-time version */
snprintf
(
buff
,
sizeof
(
buff
),
"%s"
,
LIBSSH2_VERSION
);
#endif
while
(
ptr
&&
ISDIGIT
(
*
ptr
))
{
*
major
*=
10
;
*
major
+=
*
ptr
-
'0'
;
ptr
++
;
}
if
(
*
ptr
==
'.'
)
{
ptr
++
;
while
(
ptr
&&
ISDIGIT
(
*
ptr
))
{
*
minor
*=
10
;
*
minor
+=
*
ptr
-
'0'
;
ptr
++
;
}
if
(
*
ptr
==
'.'
)
{
ptr
++
;
while
(
ptr
&&
ISDIGIT
(
*
ptr
))
{
*
patch
*=
10
;
*
patch
+=
*
ptr
-
'0'
;
ptr
++
;
}
}
}
}
static
void
kbd_callback
(
const
char
*
name
,
int
name_len
,
const
char
*
instruction
,
int
instruction_len
,
int
num_prompts
,
...
...
@@ -344,12 +305,6 @@ static LIBSSH2_ALLOC_FUNC(my_libssh2_malloc)
return
malloc
(
count
);
}
static
LIBSSH2_ALLOC_FUNC
(
my_libssh2_calloc
)
{
(
void
)
abstract
;
/* arg not used */
return
calloc
(
1
,
count
);
}
static
LIBSSH2_REALLOC_FUNC
(
my_libssh2_realloc
)
{
(
void
)
abstract
;
/* arg not used */
...
...
@@ -2670,9 +2625,6 @@ static CURLcode ssh_connect(struct connectdata *conn, bool *done)
#endif
struct
ssh_conn
*
ssh
;
CURLcode
result
;
int
major
=
0
;
int
minor
=
0
;
int
patch
=
0
;
struct
SessionHandle
*
data
=
conn
->
data
;
/* We default to persistent connections. We set this already in this connect
...
...
@@ -2707,15 +2659,9 @@ static CURLcode ssh_connect(struct connectdata *conn, bool *done)
sock
=
conn
->
sock
[
FIRSTSOCKET
];
#endif
/* CURL_LIBSSH2_DEBUG */
libssh2_version_components
(
&
major
,
&
minor
,
&
patch
);
if
((
major
<
1
)
||
((
major
==
1
)
&&
(
minor
<
3
)))
ssh
->
ssh_session
=
libssh2_session_init_ex
(
my_libssh2_calloc
,
my_libssh2_free
,
my_libssh2_realloc
,
conn
);
else
ssh
->
ssh_session
=
libssh2_session_init_ex
(
my_libssh2_malloc
,
my_libssh2_free
,
my_libssh2_realloc
,
conn
);
ssh
->
ssh_session
=
libssh2_session_init_ex
(
my_libssh2_malloc
,
my_libssh2_free
,
my_libssh2_realloc
,
conn
);
if
(
ssh
->
ssh_session
==
NULL
)
{
failf
(
data
,
"Failure initialising ssh session"
);
return
CURLE_FAILED_INIT
;
...
...
This diff is collapsed.
Click to expand it.
Preview
0%
Loading
Try again
or
attach a new file
.
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Save comment
Cancel
Please
register
or
sign in
to comment