[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.10 and 1.11

version 1.10, 1999/09/30 18:41:24 version 1.11, 1999/09/30 22:12:16
Line 123 
Line 123 
    int cipher.h. */     int cipher.h. */
 static char *cipher_names[] =  static char *cipher_names[] =
 {  {
   NULL,         /* no none */    "none",
   NULL,         /* no idea */    "idea",
   NULL,         /* no des */    "des",
   "3des",    "3des",
   NULL,         /* no tss */    "tss",
   NULL,         /* no rc4 */    "rc4",
   "blowfish"    "blowfish"
 };  };
   
Line 163 
Line 163 
 {  {
   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 (cipher_names[i] != NULL && strcmp(cipher_names[i], name) == 0)      if (strcmp(cipher_names[i], name) == 0 &&
           (cipher_mask() & (1 << i)))
       return i;        return i;
   return -1;    return -1;
 }  }

Legend:
Removed from v.1.10  
changed lines
  Added in v.1.11