Commit c91aad49 authored by Beniamino Galvani's avatar Beniamino Galvani

cli: hide certificate blobs unless --show-secrets is passed

This restores the behavior before commit 99711579.

Fixes: 99711579 ('cli: add property type for 802-1x certificate properties (pt2)').
parent ec4a12ec
...@@ -2216,8 +2216,7 @@ _get_fcn_cert_8021x (ARGS_GET_FCN) ...@@ -2216,8 +2216,7 @@ _get_fcn_cert_8021x (ARGS_GET_FCN)
switch (vtable->scheme_func (s_8021X)) { switch (vtable->scheme_func (s_8021X)) {
case NM_SETTING_802_1X_CK_SCHEME_BLOB: case NM_SETTING_802_1X_CK_SCHEME_BLOB:
if ( vtable->is_secret if (!NM_FLAGS_HAS (get_flags, NM_META_ACCESSOR_GET_FLAGS_SHOW_SECRETS))
&& !NM_FLAGS_HAS (get_flags, NM_META_ACCESSOR_GET_FLAGS_SHOW_SECRETS))
return _get_text_hidden (get_type); return _get_text_hidden (get_type);
str = bytes_to_string (vtable->blob_func (s_8021X)); str = bytes_to_string (vtable->blob_func (s_8021X));
break; break;
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment