Line 0
Link Here
|
|
|
1 |
--- lib/vssh/libssh2.c.orig 2021-02-02 08:26:24 UTC |
2 |
+++ lib/vssh/libssh2.c |
3 |
@@ -184,7 +184,7 @@ kbd_callback(const char *name, int name_len, const cha |
4 |
LIBSSH2_USERAUTH_KBDINT_RESPONSE *responses, |
5 |
void **abstract) |
6 |
{ |
7 |
- struct connectdata *conn = (struct connectdata *)*abstract; |
8 |
+ struct Curl_easy *data = (struct Curl_easy *)*abstract; |
9 |
|
10 |
#ifdef CURL_LIBSSH2_DEBUG |
11 |
fprintf(stderr, "name=%s\n", name); |
12 |
@@ -199,11 +199,11 @@ kbd_callback(const char *name, int name_len, const cha |
13 |
(void)instruction_len; |
14 |
#endif /* CURL_LIBSSH2_DEBUG */ |
15 |
if(num_prompts == 1) { |
16 |
+ struct connectdata *conn = data->conn; |
17 |
responses[0].text = strdup(conn->passwd); |
18 |
responses[0].length = curlx_uztoui(strlen(conn->passwd)); |
19 |
} |
20 |
(void)prompts; |
21 |
- (void)abstract; |
22 |
} /* kbd_callback */ |
23 |
|
24 |
static CURLcode sftp_libssh2_error_to_CURLE(unsigned long err) |