Openconnect 2.21 + different port + Network Manager
David Woodhouse
dwmw2 at infradead.org
Tue Feb 23 08:05:33 EST 2010
On Tue, 2010-02-23 at 13:52 +0100, Charles Bovy wrote:
>
> Thanks for the patch.
> This solveds the nm-openconnect-auth-dialog. The certificate is
> received, but when launching openconnect binary, the port number is
> stripped:
diff --git a/nm-auth-dialog.c b/nm-auth-dialog.c
index f173212..f118aa5 100644
--- a/nm-auth-dialog.c
+++ b/nm-auth-dialog.c
@@ -1122,8 +1122,10 @@ static gboolean cookie_obtained(auth_ui_data *ui_data)
g_free(k);
}
- printf("%s\n%s\n", NM_OPENCONNECT_KEY_GATEWAY, ui_data->vpninfo->hostname);
- printf("%s\n%s\n", NM_OPENCONNECT_KEY_COOKIE, ui_data->vpninfo->cookie);
+ printf("%s\n%s:%d\n", NM_OPENCONNECT_KEY_GATEWAY,
+ ui_data->vpninfo->hostname, ui_data->vpninfo->port);
+ printf("%s\n%s\n", NM_OPENCONNECT_KEY_COOKIE,
+ ui_data->vpninfo->cookie);
print_peer_cert(ui_data->vpninfo);
memset((void *)ui_data->vpninfo->cookie, 0, strlen(ui_data->vpninfo->cookie));
printf("\n\n");
Thanks, Jussi -- please can I have a signed-off-by?
--
David Woodhouse Open Source Technology Centre
David.Woodhouse at intel.com Intel Corporation
More information about the openconnect-devel
mailing list