version 1.73, 2000/11/15 19:58:08 |
version 1.74, 2000/11/23 21:03:47 |
|
|
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': |