[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.72 and 1.73

version 1.72, 2004/12/22 02:13:19 version 1.73, 2005/01/23 10:18:12
Line 115 
Line 115 
 {  {
         Cipher *c;          Cipher *c;
         for (c = ciphers; c->name != NULL; c++)          for (c = ciphers; c->name != NULL; c++)
                 if (strcasecmp(c->name, name) == 0)                  if (strcmp(c->name, name) == 0)
                         return c;                          return c;
         return NULL;          return NULL;
 }  }
Line 168 
Line 168 
         Cipher *c;          Cipher *c;
         if (name == NULL)          if (name == NULL)
                 return -1;                  return -1;
         c = cipher_by_name(name);          for (c = ciphers; c->name != NULL; c++)
         return (c==NULL) ? -1 : c->number;                  if (strcasecmp(c->name, name) == 0)
                           return c->number;
           return -1;
 }  }
   
 char *  char *

Legend:
Removed from v.1.72  
changed lines
  Added in v.1.73