[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.8 and 1.9

version 1.8, 1999/09/30 17:08:52 version 1.9, 1999/09/30 18:37:45
Line 123 
Line 123 
    int cipher.h. */     int cipher.h. */
 static char *cipher_names[] =  static char *cipher_names[] =
 {  {
   "no none",    NULL,         /* no none */
   "no idea",    NULL,         /* no idea */
   "no des",    NULL,         /* no des */
   "3des",    "3des",
   "no tss",    NULL,         /* no tss */
   "no rc4",    NULL,         /* no rc4 */
   "blowfish"    "blowfish"
 };  };
   
Line 162 
Line 162 
 {  {
   int i;    int i;
   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 (cipher_names[i] != NULL && strcmp(cipher_names[i], name) == 0)
       return i;        return i;
   return -1;    return -1;
 }  }

Legend:
Removed from v.1.8  
changed lines
  Added in v.1.9