|
Lines 1185-1191
parse_int:
Link Here
|
| 1185 |
value = cipher_number(arg); |
1185 |
value = cipher_number(arg); |
| 1186 |
if (value == -1) |
1186 |
if (value == -1) |
| 1187 |
fatal("%.200s line %d: Bad cipher '%s'.", |
1187 |
fatal("%.200s line %d: Bad cipher '%s'.", |
| 1188 |
filename, linenum, arg ? arg : "<NONE>"); |
1188 |
filename, linenum, arg); |
| 1189 |
if (*activep && *intptr == -1) |
1189 |
if (*activep && *intptr == -1) |
| 1190 |
*intptr = value; |
1190 |
*intptr = value; |
| 1191 |
break; |
1191 |
break; |
|
Lines 1196-1202
parse_int:
Link Here
|
| 1196 |
fatal("%.200s line %d: Missing argument.", filename, linenum); |
1196 |
fatal("%.200s line %d: Missing argument.", filename, linenum); |
| 1197 |
if (*arg != '-' && !ciphers_valid(*arg == '+' ? arg + 1 : arg)) |
1197 |
if (*arg != '-' && !ciphers_valid(*arg == '+' ? arg + 1 : arg)) |
| 1198 |
fatal("%.200s line %d: Bad SSH2 cipher spec '%s'.", |
1198 |
fatal("%.200s line %d: Bad SSH2 cipher spec '%s'.", |
| 1199 |
filename, linenum, arg ? arg : "<NONE>"); |
1199 |
filename, linenum, arg); |
| 1200 |
if (*activep && options->ciphers == NULL) |
1200 |
if (*activep && options->ciphers == NULL) |
| 1201 |
options->ciphers = xstrdup(arg); |
1201 |
options->ciphers = xstrdup(arg); |
| 1202 |
break; |
1202 |
break; |
|
Lines 1207-1213
parse_int:
Link Here
|
| 1207 |
fatal("%.200s line %d: Missing argument.", filename, linenum); |
1207 |
fatal("%.200s line %d: Missing argument.", filename, linenum); |
| 1208 |
if (*arg != '-' && !mac_valid(*arg == '+' ? arg + 1 : arg)) |
1208 |
if (*arg != '-' && !mac_valid(*arg == '+' ? arg + 1 : arg)) |
| 1209 |
fatal("%.200s line %d: Bad SSH2 Mac spec '%s'.", |
1209 |
fatal("%.200s line %d: Bad SSH2 Mac spec '%s'.", |
| 1210 |
filename, linenum, arg ? arg : "<NONE>"); |
1210 |
filename, linenum, arg); |
| 1211 |
if (*activep && options->macs == NULL) |
1211 |
if (*activep && options->macs == NULL) |
| 1212 |
options->macs = xstrdup(arg); |
1212 |
options->macs = xstrdup(arg); |
| 1213 |
break; |
1213 |
break; |
|
Lines 1220-1226
parse_int:
Link Here
|
| 1220 |
if (*arg != '-' && |
1220 |
if (*arg != '-' && |
| 1221 |
!kex_names_valid(*arg == '+' ? arg + 1 : arg)) |
1221 |
!kex_names_valid(*arg == '+' ? arg + 1 : arg)) |
| 1222 |
fatal("%.200s line %d: Bad SSH2 KexAlgorithms '%s'.", |
1222 |
fatal("%.200s line %d: Bad SSH2 KexAlgorithms '%s'.", |
| 1223 |
filename, linenum, arg ? arg : "<NONE>"); |
1223 |
filename, linenum, arg); |
| 1224 |
if (*activep && options->kex_algorithms == NULL) |
1224 |
if (*activep && options->kex_algorithms == NULL) |
| 1225 |
options->kex_algorithms = xstrdup(arg); |
1225 |
options->kex_algorithms = xstrdup(arg); |
| 1226 |
break; |
1226 |
break; |
|
Lines 1235-1241
parse_keytypes:
Link Here
|
| 1235 |
if (*arg != '-' && |
1235 |
if (*arg != '-' && |
| 1236 |
!sshkey_names_valid2(*arg == '+' ? arg + 1 : arg, 1)) |
1236 |
!sshkey_names_valid2(*arg == '+' ? arg + 1 : arg, 1)) |
| 1237 |
fatal("%s line %d: Bad key types '%s'.", |
1237 |
fatal("%s line %d: Bad key types '%s'.", |
| 1238 |
filename, linenum, arg ? arg : "<NONE>"); |
1238 |
filename, linenum, arg); |
| 1239 |
if (*activep && *charptr == NULL) |
1239 |
if (*activep && *charptr == NULL) |
| 1240 |
*charptr = xstrdup(arg); |
1240 |
*charptr = xstrdup(arg); |
| 1241 |
break; |
1241 |
break; |
|
Lines 1248-1254
parse_keytypes:
Link Here
|
| 1248 |
value = proto_spec(arg); |
1248 |
value = proto_spec(arg); |
| 1249 |
if (value == SSH_PROTO_UNKNOWN) |
1249 |
if (value == SSH_PROTO_UNKNOWN) |
| 1250 |
fatal("%.200s line %d: Bad protocol spec '%s'.", |
1250 |
fatal("%.200s line %d: Bad protocol spec '%s'.", |
| 1251 |
filename, linenum, arg ? arg : "<NONE>"); |
1251 |
filename, linenum, arg); |
| 1252 |
if (*activep && *intptr == SSH_PROTO_UNKNOWN) |
1252 |
if (*activep && *intptr == SSH_PROTO_UNKNOWN) |
| 1253 |
*intptr = value; |
1253 |
*intptr = value; |
| 1254 |
break; |
1254 |
break; |