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

Diff for /src/usr.bin/ssh/cipher.c between version 1.26 and 1.26.2.1

version 1.26, 2000/04/14 10:30:30 version 1.26.2.1, 2000/06/12 02:37:33
Line 178 
Line 178 
         char *p;          char *p;
         int i;          int i;
   
         if (strcmp(names, "") == 0)          if (names == NULL || strcmp(names, "") == 0)
                 return 0;                  return 0;
         ciphers = xstrdup(names);          ciphers = xstrdup(names);
         for ((p = strtok(ciphers, CIPHER_SEP)); p; (p = strtok(NULL, CIPHER_SEP))) {          for ((p = strtok(ciphers, CIPHER_SEP)); p; (p = strtok(NULL, CIPHER_SEP))) {
Line 201 
Line 201 
 cipher_number(const char *name)  cipher_number(const char *name)
 {  {
         int i;          int i;
           if (name == NULL)
                   return -1;
         for (i = 0; i < sizeof(cipher_names) / sizeof(cipher_names[0]); i++)          for (i = 0; i < sizeof(cipher_names) / sizeof(cipher_names[0]); i++)
                 if (strcmp(cipher_names[i], name) == 0 &&                  if (strcmp(cipher_names[i], name) == 0 &&
                     (cipher_mask() & (1 << i)))                      (cipher_mask() & (1 << i)))

Legend:
Removed from v.1.26  
changed lines
  Added in v.1.26.2.1