|
Jakub Jelen |
b552eb |
--- a/servconf.c 2015-01-30 12:24:12.388337643 +0100
|
|
Jakub Jelen |
b552eb |
+++ b/servconf.c 2015-01-30 12:26:36.229229751 +0100
|
|
Jakub Jelen |
b552eb |
@@ -55,6 +55,7 @@
|
|
Jakub Jelen |
b552eb |
#include "hostfile.h"
|
|
Jakub Jelen |
b552eb |
#include "auth.h"
|
|
Jakub Jelen |
b552eb |
#include "digest.h"
|
|
Jakub Jelen |
b552eb |
+#include "myproposal.h"
|
|
Jakub Jelen |
b552eb |
|
|
Jakub Jelen |
b552eb |
static void add_listen_addr(ServerOptions *, char *, int);
|
|
Jakub Jelen |
b552eb |
static void add_one_listen_addr(ServerOptions *, char *, int);
|
|
Jakub Jelen |
b552eb |
@@ -1974,6 +1974,8 @@ dump_cfg_strarray_oneline(ServerOpCodes code, u_int count, char **vals)
|
|
Jakub Jelen |
b552eb |
{
|
|
Jakub Jelen |
b552eb |
u_int i;
|
|
Jakub Jelen |
b552eb |
|
|
Jakub Jelen |
b552eb |
+ if (count <= 0)
|
|
Jakub Jelen |
b552eb |
+ return;
|
|
Jakub Jelen |
b552eb |
printf("%s", lookup_opcode_name(code));
|
|
Jakub Jelen |
b552eb |
for (i = 0; i < count; i++)
|
|
Jakub Jelen |
b552eb |
printf(" %s", vals[i]);
|
|
Jakub Jelen |
b552eb |
@@ -2093,7 +2094,7 @@
|
|
Jakub Jelen |
b552eb |
|
|
Jakub Jelen |
b552eb |
/* integer arguments */
|
|
Jakub Jelen |
b552eb |
#ifdef USE_PAM
|
|
Jakub Jelen |
b552eb |
- dump_cfg_int(sUsePAM, o->use_pam);
|
|
Jakub Jelen |
b552eb |
+ dump_cfg_fmtint(sUsePAM, o->use_pam);
|
|
Jakub Jelen |
b552eb |
#endif
|
|
Jakub Jelen |
b552eb |
dump_cfg_int(sServerKeyBits, o->server_key_bits);
|
|
Jakub Jelen |
b552eb |
dump_cfg_int(sLoginGraceTime, o->login_grace_time);
|
|
Jakub Jelen |
b552eb |
@@ -2103,6 +2104,7 @@
|
|
Jakub Jelen |
b552eb |
dump_cfg_int(sMaxSessions, o->max_sessions);
|
|
Jakub Jelen |
b552eb |
dump_cfg_int(sClientAliveInterval, o->client_alive_interval);
|
|
Jakub Jelen |
b552eb |
dump_cfg_int(sClientAliveCountMax, o->client_alive_count_max);
|
|
Jakub Jelen |
b552eb |
+ dump_cfg_int(sStreamLocalBindMask, o->fwd_opts.streamlocal_bind_mask);
|
|
Jakub Jelen |
b552eb |
|
|
Jakub Jelen |
b552eb |
/* formatted integer arguments */
|
|
Jakub Jelen |
b552eb |
dump_cfg_fmtint(sPermitRootLogin, o->permit_root_login);
|
|
Jakub Jelen |
b552eb |
@@ -2150,6 +2152,7 @@
|
|
Jakub Jelen |
b552eb |
dump_cfg_fmtint(sShowPatchLevel, o->show_patchlevel);
|
|
Jakub Jelen |
b552eb |
dump_cfg_fmtint(sUseDNS, o->use_dns);
|
|
Jakub Jelen |
b552eb |
dump_cfg_fmtint(sAllowTcpForwarding, o->allow_tcp_forwarding);
|
|
Jakub Jelen |
b552eb |
+ dump_cfg_fmtint(sAllowAgentForwarding, o->allow_agent_forwarding);
|
|
Jakub Jelen |
b552eb |
dump_cfg_fmtint(sAllowStreamLocalForwarding, o->allow_streamlocal_forwarding);
|
|
Jakub Jelen |
b552eb |
dump_cfg_fmtint(sUsePrivilegeSeparation, use_privsep);
|
|
Jakub Jelen |
b552eb |
dump_cfg_fmtint(sFingerprintHash, o->fingerprint_hash);
|
|
Jakub Jelen |
b552eb |
@@ -2159,9 +2162,8 @@
|
|
Jakub Jelen |
b552eb |
/* string arguments */
|
|
Jakub Jelen |
b552eb |
dump_cfg_string(sPidFile, o->pid_file);
|
|
Jakub Jelen |
b552eb |
dump_cfg_string(sXAuthLocation, o->xauth_location);
|
|
Jakub Jelen |
b552eb |
- dump_cfg_string(sCiphers, o->ciphers ? o->ciphers :
|
|
Jakub Jelen |
b552eb |
- cipher_alg_list(',', 0));
|
|
Jakub Jelen |
b552eb |
- dump_cfg_string(sMacs, o->macs ? o->macs : mac_alg_list(','));
|
|
Jakub Jelen |
b552eb |
+ dump_cfg_string(sCiphers, o->ciphers ? o->ciphers : KEX_SERVER_ENCRYPT);
|
|
Jakub Jelen |
b552eb |
+ dump_cfg_string(sMacs, o->macs ? o->macs : KEX_SERVER_MAC);
|
|
Jakub Jelen |
b552eb |
dump_cfg_string(sBanner, o->banner);
|
|
Jakub Jelen |
b552eb |
dump_cfg_string(sForceCommand, o->adm_forced_command);
|
|
Jakub Jelen |
b552eb |
dump_cfg_string(sChrootDirectory, o->chroot_directory);
|
|
Jakub Jelen |
b552eb |
@@ -2169,12 +2171,13 @@
|
|
Jakub Jelen |
b552eb |
dump_cfg_string(sRevokedKeys, o->revoked_keys_file);
|
|
Jakub Jelen |
b552eb |
dump_cfg_string(sAuthorizedPrincipalsFile,
|
|
Jakub Jelen |
b552eb |
o->authorized_principals_file);
|
|
Jakub Jelen |
b552eb |
- dump_cfg_string(sVersionAddendum, o->version_addendum);
|
|
Jakub Jelen |
b552eb |
+ dump_cfg_string(sVersionAddendum, *o->version_addendum == '\0'
|
|
Jakub Jelen |
b552eb |
+ ? "none" : o->version_addendum);
|
|
Jakub Jelen |
b552eb |
dump_cfg_string(sAuthorizedKeysCommand, o->authorized_keys_command);
|
|
Jakub Jelen |
b552eb |
dump_cfg_string(sAuthorizedKeysCommandUser, o->authorized_keys_command_user);
|
|
Jakub Jelen |
b552eb |
dump_cfg_string(sHostKeyAgent, o->host_key_agent);
|
|
Jakub Jelen |
b552eb |
- dump_cfg_string(sKexAlgorithms, o->kex_algorithms ? o->kex_algorithms :
|
|
Jakub Jelen |
b552eb |
- kex_alg_list(','));
|
|
Jakub Jelen |
b552eb |
+ dump_cfg_string(sKexAlgorithms, o->kex_algorithms ? o->kex_algorithms :
|
|
Jakub Jelen |
b552eb |
+ KEX_SERVER_KEX);
|
|
Jakub Jelen |
b552eb |
|
|
Jakub Jelen |
b552eb |
/* string arguments requiring a lookup */
|
|
Jakub Jelen |
b552eb |
dump_cfg_string(sLogLevel, log_level_name(o->log_level));
|
|
Jakub Jelen |
b552eb |
@@ -2096,7 +2101,7 @@ dump_config(ServerOptions *o)
|
|
Jakub Jelen |
b552eb |
o->authorized_keys_files);
|
|
Jakub Jelen |
b552eb |
dump_cfg_strarray(sHostKeyFile, o->num_host_key_files,
|
|
Jakub Jelen |
b552eb |
o->host_key_files);
|
|
Jakub Jelen |
b552eb |
- dump_cfg_strarray(sHostKeyFile, o->num_host_cert_files,
|
|
Jakub Jelen |
b552eb |
+ dump_cfg_strarray(sHostCertificate, o->num_host_cert_files,
|
|
Jakub Jelen |
b552eb |
o->host_cert_files);
|
|
Jakub Jelen |
b552eb |
dump_cfg_strarray(sAllowUsers, o->num_allow_users, o->allow_users);
|
|
Jakub Jelen |
b552eb |
dump_cfg_strarray(sDenyUsers, o->num_deny_users, o->deny_users);
|