[network-manager-openswan] auth-dialog: ensure saved secrets are passed back to NM
- From: Dan Williams <dcbw src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [network-manager-openswan] auth-dialog: ensure saved secrets are passed back to NM
- Date: Mon, 18 Jul 2011 20:33:00 +0000 (UTC)
commit 99ae6602f4f7a7dd83c2ae7cad8c339788476171
Author: Dan Williams <dcbw redhat com>
Date: Mon Jul 18 13:28:51 2011 -0500
auth-dialog: ensure saved secrets are passed back to NM
If the secret was saved, it may not have been passed back to NM like
it should have been.
auth-dialog/main.c | 8 ++++++--
1 files changed, 6 insertions(+), 2 deletions(-)
---
diff --git a/auth-dialog/main.c b/auth-dialog/main.c
index ba75d86..8b98dd3 100644
--- a/auth-dialog/main.c
+++ b/auth-dialog/main.c
@@ -126,13 +126,17 @@ get_secrets (const char *vpn_uuid,
/* Don't ask if both passwords are either saved and present, or unused */
if (upw_flags & NM_SETTING_SECRET_FLAG_NOT_REQUIRED)
need_upw = FALSE;
- else if (upw && !(upw_flags & NM_SETTING_SECRET_FLAG_NOT_SAVED))
+ else if (upw && !(upw_flags & NM_SETTING_SECRET_FLAG_NOT_SAVED)) {
+ *out_upw = upw;
need_upw = FALSE;
+ }
if (gpw_flags & NM_SETTING_SECRET_FLAG_NOT_REQUIRED)
need_gpw = FALSE;
- else if (gpw && !(gpw_flags & NM_SETTING_SECRET_FLAG_NOT_SAVED))
+ else if (gpw && !(gpw_flags & NM_SETTING_SECRET_FLAG_NOT_SAVED)) {
+ *out_gpw = gpw;
need_gpw = FALSE;
+ }
if (!need_upw && !need_gpw)
return TRUE;
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]