mirror of
https://gitlab.freedesktop.org/NetworkManager/NetworkManager.git
synced 2025-12-27 02:20:12 +01:00
style: various minor adjustments
This commit is contained in:
parent
61a302ff6b
commit
16c0be1ada
2 changed files with 4 additions and 3 deletions
|
|
@ -1175,7 +1175,7 @@ _con_get_try_complete_early(Request *req)
|
|||
|| (NM_FLAGS_HAS(req->con.get.flags, NM_SECRET_AGENT_GET_SECRETS_FLAG_REQUEST_NEW)
|
||||
&& !nm_connection_need_secrets_for_rerequest(tmp))
|
||||
|| (!NM_FLAGS_HAS(req->con.get.flags, NM_SECRET_AGENT_GET_SECRETS_FLAG_REQUEST_NEW)
|
||||
&& nm_connection_need_secrets(tmp, NULL) == NULL)) {
|
||||
&& !nm_connection_need_secrets(tmp, NULL))) {
|
||||
_LOGD(NULL, "(" LOG_REQ_FMT ") system settings secrets sufficient", LOG_REQ_ARG(req));
|
||||
|
||||
/* Got everything, we're done */
|
||||
|
|
|
|||
|
|
@ -2536,11 +2536,12 @@ need_secrets_tls(NMSetting8021x *self,
|
|||
gboolean phase2,
|
||||
gboolean check_rerequest)
|
||||
{
|
||||
// If check_rerequest is TRUE do not return secrets, unless missing.
|
||||
// This secret cannot be wrong.
|
||||
NMSetting8021xPrivate *priv = NM_SETTING_802_1X_GET_PRIVATE(self);
|
||||
NMSetting8021xCKScheme scheme;
|
||||
|
||||
/* If check_rerequest is TRUE do not return secrets, unless missing.
|
||||
* This secret cannot be wrong. */
|
||||
|
||||
if (!NM_FLAGS_HAS(phase2 ? priv->phase2_private_key_password_flags
|
||||
: priv->private_key_password_flags,
|
||||
NM_SETTING_SECRET_FLAG_NOT_REQUIRED)) {
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue