version 1.31, 2000/05/08 17:12:15 |
version 1.32, 2000/05/22 18:42:01 |
|
|
case oCipher: |
case oCipher: |
intptr = &options->cipher; |
intptr = &options->cipher; |
cp = strtok(NULL, WHITESPACE); |
cp = strtok(NULL, WHITESPACE); |
|
if (!cp) |
|
fatal("%.200s line %d: Missing argument.", filename, linenum); |
value = cipher_number(cp); |
value = cipher_number(cp); |
if (value == -1) |
if (value == -1) |
fatal("%.200s line %d: Bad cipher '%s'.", |
fatal("%.200s line %d: Bad cipher '%s'.", |
|
|
|
|
case oCiphers: |
case oCiphers: |
cp = strtok(NULL, WHITESPACE); |
cp = strtok(NULL, WHITESPACE); |
|
if (!cp) |
|
fatal("%.200s line %d: Missing argument.", filename, linenum); |
if (!ciphers_valid(cp)) |
if (!ciphers_valid(cp)) |
fatal("%.200s line %d: Bad SSH2 cipher spec '%s'.", |
fatal("%.200s line %d: Bad SSH2 cipher spec '%s'.", |
filename, linenum, cp ? cp : "<NONE>"); |
filename, linenum, cp ? cp : "<NONE>"); |
|
|
case oProtocol: |
case oProtocol: |
intptr = &options->protocol; |
intptr = &options->protocol; |
cp = strtok(NULL, WHITESPACE); |
cp = strtok(NULL, WHITESPACE); |
|
if (!cp) |
|
fatal("%.200s line %d: Missing argument.", filename, linenum); |
value = proto_spec(cp); |
value = proto_spec(cp); |
if (value == SSH_PROTO_UNKNOWN) |
if (value == SSH_PROTO_UNKNOWN) |
fatal("%.200s line %d: Bad protocol spec '%s'.", |
fatal("%.200s line %d: Bad protocol spec '%s'.", |