summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorBeniamino Galvani <bgalvani@redhat.com>2019-04-24 15:21:34 +0200
committerBeniamino Galvani <bgalvani@redhat.com>2019-05-06 10:10:00 +0200
commitc91aad49695fc0d5ff1dd07a4459dc7fbe9bdbc0 (patch)
tree9b8c0c9b5902c681c24cb3fd796c0775748f2e09
parentec4a12ecdbebbca5b8108e1611e95fa93b43d637 (diff)
downloadNetworkManager-c91aad49695fc0d5ff1dd07a4459dc7fbe9bdbc0.tar.gz
cli: hide certificate blobs unless --show-secrets is passed
This restores the behavior before commit 99711579ed43. Fixes: 99711579ed43 ('cli: add property type for 802-1x certificate properties (pt2)').
-rw-r--r--clients/common/nm-meta-setting-desc.c3
1 files changed, 1 insertions, 2 deletions
diff --git a/clients/common/nm-meta-setting-desc.c b/clients/common/nm-meta-setting-desc.c
index c7a7fe54bb..cc3557d6fa 100644
--- a/clients/common/nm-meta-setting-desc.c
+++ b/clients/common/nm-meta-setting-desc.c
@@ -2216,8 +2216,7 @@ _get_fcn_cert_8021x (ARGS_GET_FCN)
switch (vtable->scheme_func (s_8021X)) {
case NM_SETTING_802_1X_CK_SCHEME_BLOB:
- if ( vtable->is_secret
- && !NM_FLAGS_HAS (get_flags, NM_META_ACCESSOR_GET_FLAGS_SHOW_SECRETS))
+ if (!NM_FLAGS_HAS (get_flags, NM_META_ACCESSOR_GET_FLAGS_SHOW_SECRETS))
return _get_text_hidden (get_type);
str = bytes_to_string (vtable->blob_func (s_8021X));
break;