[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.73 and 1.74

version 1.73, 2000/11/15 19:58:08 version 1.74, 2000/11/23 21:03:47
Line 405 
Line 405 
                                 options.cipher = SSH_CIPHER_ILLEGAL;                                  options.cipher = SSH_CIPHER_ILLEGAL;
                         } else {                          } else {
                                 /* SSH1 only */                                  /* SSH1 only */
                                 Cipher *c = cipher_by_name(optarg);                                  options.cipher = cipher_number(optarg);
                                 if (c == NULL || c->number < 0) {                                  if (options.cipher == -1) {
                                         fprintf(stderr, "Unknown cipher type '%s'\n", optarg);                                          fprintf(stderr, "Unknown cipher type '%s'\n", optarg);
                                         exit(1);                                          exit(1);
                                 }                                  }
                                 options.cipher = c->number;                                  if (options.cipher == SSH_CIPHER_3DES) {
                                           options.ciphers = "3des-cbc";
                                   } else if (options.cipher == SSH_CIPHER_BLOWFISH) {
                                           options.ciphers = "blowfish-cbc";
                                   } else {
                                           options.ciphers = (char *)-1;
                                   }
                         }                          }
                         break;                          break;
                 case 'p':                  case 'p':

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