[BACK]Return to ssh.c CVS log [TXT][DIR] Up to [local] / src / usr.bin / ssh

Diff for /src/usr.bin/ssh/ssh.c between version 1.211 and 1.212

version 1.211, 2004/04/19 21:51:49 version 1.212, 2004/04/27 09:46:37
Line 68 
Line 68 
 #include "kex.h"  #include "kex.h"
 #include "mac.h"  #include "mac.h"
 #include "sshtty.h"  #include "sshtty.h"
   #include "match.h"
   
 #ifdef SMARTCARD  #ifdef SMARTCARD
 #include "scard.h"  #include "scard.h"
Line 1040 
Line 1041 
                 debug("Requesting authentication agent forwarding.");                  debug("Requesting authentication agent forwarding.");
                 channel_request_start(id, "auth-agent-req@openssh.com", 0);                  channel_request_start(id, "auth-agent-req@openssh.com", 0);
                 packet_send();                  packet_send();
           }
   
           /* Transfer any environment variables from client to server */
           if (options.num_send_env != 0) {
                   int i, j, matched;
                   extern char **environ;
                   char *name, *val;
   
                   debug("Sending environment.");
                   for (i = 0; environ && environ[i] != NULL; i++) {
                           /* Split */
                           name = xstrdup(environ[i]);
                           if ((val = strchr(name, '=')) == NULL) {
                                   free(name);
                                   continue;
                           }
                           *val++ = '\0';
   
                           matched = 0;
                           for (j = 0; j < options.num_send_env; j++) {
                                   if (match_pattern(name, options.send_env[j])) {
                                           matched = 1;
                                           break;
                                   }
                           }
                           if (!matched) {
                                   debug3("Ignored env %s", name);
                                   free(name);
                                   continue;
                           }
   
                           debug("Sending env %s = %s", name, val);
                           channel_request_start(id, "env", 0);
                           packet_put_cstring(name);
                           packet_put_cstring(val);
                           packet_send();
                           free(name);
                   }
         }          }
   
         len = buffer_len(&command);          len = buffer_len(&command);

Legend:
Removed from v.1.211  
changed lines
  Added in v.1.212