Browse Subversion Repository
Diff of /branches/ssh_chacha20poly1305/ttssh2/ttxssh/ssh.c
Parent Directory
| Revision Log
| Patch
| 32 |
#include "resource.h" |
#include "resource.h" |
| 33 |
#include "libputty.h" |
#include "libputty.h" |
| 34 |
#include "key.h" |
#include "key.h" |
| 35 |
|
#include "ttcommon.h" |
| 36 |
|
|
| 37 |
#include <openssl/bn.h> |
#include <openssl/bn.h> |
| 38 |
#include <openssl/evp.h> |
#include <openssl/evp.h> |
| 9148 |
if (agent_msg->len == 0) { |
if (agent_msg->len == 0) { |
| 9149 |
req_len = get_uint32_MSBfirst(data); |
req_len = get_uint32_MSBfirst(data); |
| 9150 |
if (req_len > AGENT_MAX_MSGLEN - 4) { |
if (req_len > AGENT_MAX_MSGLEN - 4) { |
| 9151 |
|
logprintf(pvar, LOG_LEVEL_NOTICE, |
| 9152 |
|
__FUNCTION__ ": Agent Forwarding Error: server request is too large. " |
| 9153 |
|
"size=%u, allowd max=%u.", req_len, AGENT_MAX_MSGLEN-4); |
| 9154 |
|
if (pvar->session_settings.ForwardAgentNotify) { |
| 9155 |
|
char title[MAX_UIMSG]; |
| 9156 |
|
UTIL_get_lang_msg("MSG_SSH_AGENTERROR_TITLE", pvar, "Bad agent request"); |
| 9157 |
|
strncpy_s(title, sizeof(title), pvar->ts->UIMsg, _TRUNCATE); |
| 9158 |
|
UTIL_get_lang_msg("MSG_SSH_AGENTERROR_TOOLARGE", pvar, |
| 9159 |
|
"Agent request size is too large, ignore it."); |
| 9160 |
|
NotifyInfoMessage(pvar->cv, pvar->ts->UIMsg, title); |
| 9161 |
|
} |
| 9162 |
|
|
| 9163 |
goto error; |
goto error; |
| 9164 |
} |
} |
| 9165 |
|
|
| 9180 |
|
|
| 9181 |
agent_query(data, *agent_request_len, &response, &resplen, NULL, NULL); |
agent_query(data, *agent_request_len, &response, &resplen, NULL, NULL); |
| 9182 |
if (response == NULL || resplen < 5) { |
if (response == NULL || resplen < 5) { |
| 9183 |
|
logprintf(pvar, LOG_LEVEL_NOTICE, __FUNCTION__ "Agent Forwarding Error: agent_query is failed."); |
| 9184 |
goto error; |
goto error; |
| 9185 |
} |
} |
| 9186 |
|
|
|
|
Legend:
| Removed from v.6775 |
|
| changed lines |
| |
Added in v.6779 |
|
|
| |