Openconnect 2.21 + different port + Network Manager

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



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




[Index of Archives]     [Linux Samsung SoC]     [Linux Rockchip SoC]     [Linux Actions SoC]     [Linux for Synopsys ARC Processors]     [Linux NFS]     [Linux NILFS]     [Linux USB Devel]     [Video for Linux]     [Linux Audio Users]     [Yosemite News]     [Linux Kernel]     [Linux SCSI]


  Powered by Linux