summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authordjm@openbsd.org <djm@openbsd.org>2018-04-06 03:51:27 +0000
committerDamien Miller <djm@mindrot.org>2018-04-06 14:20:33 +1000
commit30fd7f9af0f553aaa2eeda5a1f53f26cfc222b5e (patch)
treebea710bc8bb17f64594cfded757a6bfc405cc50a
parent8d6829be324452d2acd282d5f8ceb0adaa89a4de (diff)
upstream: add a couple of missed options to the config dump; patch
from Jakub Jelen via bz2835 OpenBSD-Commit-ID: 5970adadf6ef206bee0dddfc75d24c2019861446
-rw-r--r--readconf.c10
1 files changed, 9 insertions, 1 deletions
diff --git a/readconf.c b/readconf.c
index f69b46547..ae1c31da0 100644
--- a/readconf.c
+++ b/readconf.c
@@ -1,4 +1,4 @@
1/* $OpenBSD: readconf.c,v 1.284 2018/04/04 15:12:17 job Exp $ */ 1/* $OpenBSD: readconf.c,v 1.285 2018/04/06 03:51:27 djm Exp $ */
2/* 2/*
3 * Author: Tatu Ylonen <ylo@cs.hut.fi> 3 * Author: Tatu Ylonen <ylo@cs.hut.fi>
4 * Copyright (c) 1995 Tatu Ylonen <ylo@cs.hut.fi>, Espoo, Finland 4 * Copyright (c) 1995 Tatu Ylonen <ylo@cs.hut.fi>, Espoo, Finland
@@ -2348,6 +2348,8 @@ fmt_intarg(OpCodes code, int val)
2348 return fmt_multistate_int(val, multistate_requesttty); 2348 return fmt_multistate_int(val, multistate_requesttty);
2349 case oCanonicalizeHostname: 2349 case oCanonicalizeHostname:
2350 return fmt_multistate_int(val, multistate_canonicalizehostname); 2350 return fmt_multistate_int(val, multistate_canonicalizehostname);
2351 case oAddKeysToAgent:
2352 return fmt_multistate_int(val, multistate_yesnoaskconfirm);
2351 case oFingerprintHash: 2353 case oFingerprintHash:
2352 return ssh_digest_alg_name(val); 2354 return ssh_digest_alg_name(val);
2353 default: 2355 default:
@@ -2467,6 +2469,7 @@ dump_client_config(Options *o, const char *host)
2467 dump_cfg_int(oPort, o->port); 2469 dump_cfg_int(oPort, o->port);
2468 2470
2469 /* Flag options */ 2471 /* Flag options */
2472 dump_cfg_fmtint(oAddKeysToAgent, o->add_keys_to_agent);
2470 dump_cfg_fmtint(oAddressFamily, o->address_family); 2473 dump_cfg_fmtint(oAddressFamily, o->address_family);
2471 dump_cfg_fmtint(oBatchMode, o->batch_mode); 2474 dump_cfg_fmtint(oBatchMode, o->batch_mode);
2472 dump_cfg_fmtint(oCanonicalizeFallbackLocal, o->canonicalize_fallback_local); 2475 dump_cfg_fmtint(oCanonicalizeFallbackLocal, o->canonicalize_fallback_local);
@@ -2523,6 +2526,7 @@ dump_client_config(Options *o, const char *host)
2523 dump_cfg_string(oHostKeyAlias, o->host_key_alias); 2526 dump_cfg_string(oHostKeyAlias, o->host_key_alias);
2524 dump_cfg_string(oHostbasedKeyTypes, o->hostbased_key_types); 2527 dump_cfg_string(oHostbasedKeyTypes, o->hostbased_key_types);
2525 dump_cfg_string(oIdentityAgent, o->identity_agent); 2528 dump_cfg_string(oIdentityAgent, o->identity_agent);
2529 dump_cfg_string(oIgnoreUnknown, o->ignored_unknown);
2526 dump_cfg_string(oKbdInteractiveDevices, o->kbd_interactive_devices); 2530 dump_cfg_string(oKbdInteractiveDevices, o->kbd_interactive_devices);
2527 dump_cfg_string(oKexAlgorithms, o->kex_algorithms ? o->kex_algorithms : KEX_CLIENT_KEX); 2531 dump_cfg_string(oKexAlgorithms, o->kex_algorithms ? o->kex_algorithms : KEX_CLIENT_KEX);
2528 dump_cfg_string(oLocalCommand, o->local_command); 2532 dump_cfg_string(oLocalCommand, o->local_command);
@@ -2545,6 +2549,7 @@ dump_client_config(Options *o, const char *host)
2545 /* String array options */ 2549 /* String array options */
2546 dump_cfg_strarray(oIdentityFile, o->num_identity_files, o->identity_files); 2550 dump_cfg_strarray(oIdentityFile, o->num_identity_files, o->identity_files);
2547 dump_cfg_strarray_oneline(oCanonicalDomains, o->num_canonical_domains, o->canonical_domains); 2551 dump_cfg_strarray_oneline(oCanonicalDomains, o->num_canonical_domains, o->canonical_domains);
2552 dump_cfg_strarray(oCertificateFile, o->num_certificate_files, o->certificate_files);
2548 dump_cfg_strarray_oneline(oGlobalKnownHostsFile, o->num_system_hostfiles, o->system_hostfiles); 2553 dump_cfg_strarray_oneline(oGlobalKnownHostsFile, o->num_system_hostfiles, o->system_hostfiles);
2549 dump_cfg_strarray_oneline(oUserKnownHostsFile, o->num_user_hostfiles, o->user_hostfiles); 2554 dump_cfg_strarray_oneline(oUserKnownHostsFile, o->num_user_hostfiles, o->user_hostfiles);
2550 dump_cfg_strarray(oSendEnv, o->num_send_env, o->send_env); 2555 dump_cfg_strarray(oSendEnv, o->num_send_env, o->send_env);
@@ -2605,6 +2610,9 @@ dump_client_config(Options *o, const char *host)
2605 printf("streamlocalbindmask 0%o\n", 2610 printf("streamlocalbindmask 0%o\n",
2606 o->fwd_opts.streamlocal_bind_mask); 2611 o->fwd_opts.streamlocal_bind_mask);
2607 2612
2613 /* oLogFacility */
2614 printf("syslogfacility %s\n", log_facility_name(o->log_facility));
2615
2608 /* oProxyCommand / oProxyJump */ 2616 /* oProxyCommand / oProxyJump */
2609 if (o->jump_host == NULL) 2617 if (o->jump_host == NULL)
2610 dump_cfg_string(oProxyCommand, o->proxy_command); 2618 dump_cfg_string(oProxyCommand, o->proxy_command);