Develop and Download Open Source Software

Browse Subversion Repository

Diff of /branches/ssh_chacha20poly1305/ttssh2/ttxssh/ssh.c

Parent Directory Parent Directory | Revision Log Revision Log | View Patch Patch

revision 6775 by doda, Mon Jun 5 12:13:46 2017 UTC revision 6779 by doda, Tue Jun 6 08:39:15 2017 UTC
# Line 32  SOFTWARE, EVEN IF ADVISED OF THE POSSIBI Line 32  SOFTWARE, EVEN IF ADVISED OF THE POSSIBI
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>
# Line 9147  static BOOL SSH_agent_response(PTInstVar Line 9148  static BOOL SSH_agent_response(PTInstVar
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    
# Line 9167  static BOOL SSH_agent_response(PTInstVar Line 9180  static BOOL SSH_agent_response(PTInstVar
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

Back to OSDN">Back to OSDN
ViewVC Help
Powered by ViewVC 1.1.26