Commit graph

58 commits

Author SHA1 Message Date
Tambet Ingo
8f6eb995f9 2008-10-29 Tambet Ingo <tambet@gmail.com>
Half of it by Dan Williams <dcbw@redhat.com>

	* libnm-util/libnm-util.ver
	libnm-util/nm-setting-vpn.c
	libnm-util/nm-setting-vpn.h
		- Make properties private and add accessor functions.

	* src/vpn-manager/nm-vpn-connection.c
	src/vpn-manager/nm-vpn-manager.c
	system-settings/plugins/keyfile/reader.c
	vpn-daemons/openvpn/properties/auth-helpers.c
	vpn-daemons/openvpn/properties/import-export.c
	vpn-daemons/openvpn/properties/nm-openvpn.c
	vpn-daemons/openvpn/src/nm-openvpn-service.c
	vpn-daemons/pptp/auth-dialog/main.c
	vpn-daemons/pptp/properties/advanced-dialog.c
	vpn-daemons/pptp/properties/nm-pptp.c
	vpn-daemons/pptp/src/nm-pptp-service.c
	vpn-daemons/vpnc/properties/nm-vpnc.c
	vpn-daemons/vpnc/src/nm-vpnc-service.c
		- Use VPN setting accessors.

git-svn-id: http://svn-archive.gnome.org/svn/NetworkManager/trunk@4232 4912f4e0-d625-0410-9fb7-b9a5a253dbdc
2008-10-29 09:13:40 +00:00
Dan Williams
15d8c9d075 2008-10-24 Dan Williams <dcbw@redhat.com>
* src/nm-pptp-service.c
		- (construct_pppd_args): pppd always parses /etc/ppp/options, so always
			add really important stuff to the command line to ensure that NM
			overrides /etc/ppp/options (bgo #556781)



git-svn-id: http://svn-archive.gnome.org/svn/NetworkManager/trunk@4210 4912f4e0-d625-0410-9fb7-b9a5a253dbdc
2008-10-24 15:03:29 +00:00
Dan Williams
b48f50f166 2008-10-14 Dan Williams <dcbw@redhat.com>
* src/nm-pptp-pppd-plugin.c
		- (nm_ip_up): pass VPN gateway up to nm-pptp-service



git-svn-id: http://svn-archive.gnome.org/svn/NetworkManager/trunk@4180 4912f4e0-d625-0410-9fb7-b9a5a253dbdc
2008-10-15 02:46:26 +00:00
Dan Williams
48c0aa1e7c 2008-09-29 Dan Williams <dcbw@redhat.com>
* src/nm-pptp-serivce.c
		- (impl_pptp_service_need_secrets): use the expected Windows-style
			'domain\\username' format, not whatever I made up



git-svn-id: http://svn-archive.gnome.org/svn/NetworkManager/trunk@4122 4912f4e0-d625-0410-9fb7-b9a5a253dbdc
2008-09-29 21:25:08 +00:00
Dan Williams
a15af58cdd Fix segfault when no domain is specified (caused by incomplete r4107)
git-svn-id: http://svn-archive.gnome.org/svn/NetworkManager/trunk@4117 4912f4e0-d625-0410-9fb7-b9a5a253dbdc
2008-09-26 15:02:11 +00:00
Dan Williams
0b012b8679 2008-09-25 Dan Williams <dcbw@redhat.com>
* src/nm-pptp-service.c
		- (nm_pptp_ppp_service_cache_credentials, impl_pptp_service_need_secrets):
			when a domain is specified, synthesize the username passed to pppd
			as username@domain



git-svn-id: http://svn-archive.gnome.org/svn/NetworkManager/trunk@4107 4912f4e0-d625-0410-9fb7-b9a5a253dbdc
2008-09-25 17:16:18 +00:00
Dan Williams
e548a71634 2008-08-28 Dan Williams <dcbw@redhat.com>
* src/nm-pptp-service.c
		- (nm_pptp_ppp_service_cache_credentials, nm_pptp_properties_validate,
		   real_connect, real_need_secrets): handle split VPN secrets



git-svn-id: http://svn-archive.gnome.org/svn/NetworkManager/trunk@4034 4912f4e0-d625-0410-9fb7-b9a5a253dbdc
2008-09-04 15:05:58 +00:00
Dan Williams
a9285874f1 Fix warning; make output more useful
git-svn-id: http://svn-archive.gnome.org/svn/NetworkManager/trunk@3937 4912f4e0-d625-0410-9fb7-b9a5a253dbdc
2008-08-12 17:19:23 +00:00
Dan Williams
380929b20d 2008-08-11 Dan Williams <dcbw@redhat.com>
Update to match NM svn3924 vpn setting changes; verify options better;
	return more informative errors on VPN launch failures.



git-svn-id: http://svn-archive.gnome.org/svn/NetworkManager/trunk@3927 4912f4e0-d625-0410-9fb7-b9a5a253dbdc
2008-08-11 17:17:47 +00:00
Dan Williams
de01b8e047 2008-08-07 Dan Williams <dcbw@redhat.com>
* src/nm-pptp-pppd-plugin.c
		- (nm_ip_up): use correct option index (bgo #517468)



git-svn-id: http://svn-archive.gnome.org/svn/NetworkManager/trunk@3910 4912f4e0-d625-0410-9fb7-b9a5a253dbdc
2008-08-08 03:28:29 +00:00
Dan Williams
653e14db5d 2008-07-27 Dan Williams <dcbw@redhat.com>
Patch from Michael Biebl <biebl@debian.org>

	* Move service to $LIBEXECDIR, remove unneeded compilation flags, move
		properties plugin to $LIBDIR/NetworkManager



git-svn-id: http://svn-archive.gnome.org/svn/NetworkManager/trunk@3863 4912f4e0-d625-0410-9fb7-b9a5a253dbdc
2008-07-27 20:24:28 +00:00
Dan Williams
71a846e710 distribute dbus-glib interface description
git-svn-id: http://svn-archive.gnome.org/svn/NetworkManager/trunk@3844 4912f4e0-d625-0410-9fb7-b9a5a253dbdc
2008-07-22 14:43:23 +00:00
Dan Williams
d1a897eb49 2008-07-21 Dan Williams <dcbw@redhat.com>
* src/nm-pptp-service.c
		- (state_changed_cb): remove the timeout handler when it's no longer
			needed either; if pppd died on startup (wrong options) then the
			timeout wouldn't have been removed before



git-svn-id: http://svn-archive.gnome.org/svn/NetworkManager/trunk@3841 4912f4e0-d625-0410-9fb7-b9a5a253dbdc
2008-07-21 16:39:43 +00:00
Dan Williams
481db5021c Correct disabling of vj compression; pass noipdefault too
git-svn-id: http://svn-archive.gnome.org/svn/NetworkManager/trunk@3840 4912f4e0-d625-0410-9fb7-b9a5a253dbdc
2008-07-21 16:34:05 +00:00
Dan Williams
58d9db9a48 2008-07-20 Dan Williams <dcbw@redhat.com>
Port to NM 0.7 VPN plugin API



git-svn-id: http://svn-archive.gnome.org/svn/NetworkManager/trunk@3838 4912f4e0-d625-0410-9fb7-b9a5a253dbdc
2008-07-20 22:45:51 +00:00
Dan Williams
dd0109ee28 2008-06-26 Dan Williams <dcbw@redhat.com>
Patch from David Cantrell <dcantrell@redhat.com>
	
	* Use inet_ntop() and inet_pton() everwhere and check for errors



git-svn-id: http://svn-archive.gnome.org/svn/NetworkManager/trunk@3777 4912f4e0-d625-0410-9fb7-b9a5a253dbdc
2008-06-26 19:33:13 +00:00
Dan Williams
b0cf66eda8 2008-06-26 Dan Williams <dcbw@redhat.com>
* Update FSF address in license headers (Michael Biebl <biebl@debian.org>)



git-svn-id: http://svn-archive.gnome.org/svn/NetworkManager/trunk@3775 4912f4e0-d625-0410-9fb7-b9a5a253dbdc
2008-06-26 18:31:52 +00:00
Dan Williams
33f96a77ae 2007-12-17 Dan Williams <dcbw@redhat.com>
Patch from Christian Persch <chpe@gnome.org>

	Fix up the build (gnome.org #473298)



git-svn-id: http://svn-archive.gnome.org/svn/NetworkManager/trunk@3180 4912f4e0-d625-0410-9fb7-b9a5a253dbdc
2007-12-18 04:29:57 +00:00
Dan Williams
af34f1ac79 2007-08-14 Dan Williams <dcbw@redhat.com>
* src/nm-openvpn-service.c
		- Handle NM_VPN_STATE_* -> NM_VPN_SERVICE_STATE_* and NMVPNState -> 
			NMVPNServiceState renames



git-svn-id: http://svn-archive.gnome.org/svn/NetworkManager/trunk@2679 4912f4e0-d625-0410-9fb7-b9a5a253dbdc
2007-08-14 18:18:09 +00:00
Dan Williams
7ee937c7ac 2007-07-26 Dan Williams <dcbw@redhat.com>
Patch from Robert Buchholz <rbu@gentoo.org>

    * src/Makefile.am
        - Fix for new pppd files layout (#454741)



git-svn-id: http://svn-archive.gnome.org/svn/NetworkManager/trunk@2640 4912f4e0-d625-0410-9fb7-b9a5a253dbdc
2007-07-26 13:28:11 +00:00
Dan Williams
04130d98af 2007-02-02 Dan Williams <dcbw@redhat.com>
* src/nm-ppp-starter.c
		- (nm_ppp_dbus_process_helper_ip4_config): use uint32 arrays instead
			of appending multiple entries with the same key



git-svn-id: http://svn-archive.gnome.org/svn/NetworkManager/trunk@2267 4912f4e0-d625-0410-9fb7-b9a5a253dbdc
2007-02-02 21:15:53 +00:00
Antony Mee
a7f1b4a195 * Make the DBUS dict interface the default (use configure option to select
the old interface)


git-svn-id: http://svn-archive.gnome.org/svn/NetworkManager/trunk@2225 4912f4e0-d625-0410-9fb7-b9a5a253dbdc
2007-01-07 18:24:40 +00:00
Antony Mee
f77c55c763 * Updates cvs ignore
git-svn-id: http://svn-archive.gnome.org/svn/NetworkManager/trunk@2218 4912f4e0-d625-0410-9fb7-b9a5a253dbdc
2007-01-07 18:20:21 +00:00
Antony Mee
7c66269c9d Patch from Helmut Schaa <hschaa suse de>
* Let nm-ppp-starter die gracefully even if
    pppd exits badly


git-svn-id: http://svn-archive.gnome.org/svn/NetworkManager/trunk@2214 4912f4e0-d625-0410-9fb7-b9a5a253dbdc
2007-01-07 17:17:44 +00:00
Dan Williams
8e541d71cf 2006-12-03 Dan Williams <dcbw@redhat.com>
Patch from Nathaniel McCallum <nathaniel@natemccallum.com>

	* properties/nm-ppp-dialog.glade
	  properties/nm-ppp-properties.c
	  src/nm-ppp-starter.c
		- Add option for Stateful MPPE


git-svn-id: http://svn-archive.gnome.org/svn/NetworkManager/trunk@2156 4912f4e0-d625-0410-9fb7-b9a5a253dbdc
2006-12-04 03:48:12 +00:00
Tambet Ingo
d5d84393ab 2006-10-30 Tambet Ingo <tambet@ximian.com>
vpnc/:

	* properties/Makefile.am: Include new files pcf-file.[ch] in build.
	Add NetworkManager to CFLAGS and LDADD.

	* properties/pcf-file.c: Implement.

	* properties/pcf-file.h: Ditto.

	* properties/nm-vpnc.c (import_from_file): Rewrite using new Cisco PCF
	file parser instead of using GKeyFile (which has slightly different
	semantics).

	* src/Makefile.am: Add NetworkManager to CFLAGS and LDADD.

	* src/nm-vpnc-service.c: Remove the leading NetworkManager directory
	from NM includes since the NM pkg-config file already adds that.

	* src/nm-vpnc-service-vpnc-helper.c: Ditto.


	openvpn/:

	* properties/Makefile.am: Add NetworkManager to CFLAGS and LDADD.

	* src/Makefile.am: Ditto.

	* properties/nm-openvpn.c: Remove the leading NetworkManager directory
	from NM includes since the NM pkg-config file already adds that.

	* src/nm-openvpn-service-openvpn-helper.c: Ditto.

	* src/nm-openvpn-service.c: Ditto.


	pptp/:

	* src/nm-pppd-plugin.c: Remove the leading NetworkManager directory
	from NM includes since the NM pkg-config file already adds that.

	* properties/vpnui_impl.c: Ditto.

	* properties/vpnui_impl.h: Ditto.

	* src/nm-ppp-starter.c: Ditto.

	* src/Makefile.am: Add NetworkManager to CFLAGS and LDADD.

	* properties/Makefile.am: Add NetworkManager to CFLAGS and LDADD.


git-svn-id: http://svn-archive.gnome.org/svn/NetworkManager/trunk@2093 4912f4e0-d625-0410-9fb7-b9a5a253dbdc
2006-10-30 11:23:28 +00:00
Antony Mee
21ef5bdb21 * Finally re-committing changes to allow the plugin to use the new
NetworkManager DBUS dict based VPN interface. (This allows the MTU
    of a VPN connection to be passed back to NetworkManager)
     - Currently disabled by default, need to add --enable-nm-vpn-dbus-dict
       to configure.


git-svn-id: http://svn-archive.gnome.org/svn/NetworkManager/trunk@2032 4912f4e0-d625-0410-9fb7-b9a5a253dbdc
2006-09-20 15:04:27 +00:00
Antony Mee
fe5aa56240 * Added some ifdef magic to handle VERSION or PPPD_VERSION being defined
* Changed -DVERSION to -DNM_VERSION in the CPPFLAGS
  * Moved 2.4.4 headers to the correct location


git-svn-id: http://svn-archive.gnome.org/svn/NetworkManager/trunk@1946 4912f4e0-d625-0410-9fb7-b9a5a253dbdc
2006-08-10 10:10:17 +00:00
Dan Williams
a277f7884d update .cvsignore files
git-svn-id: http://svn-archive.gnome.org/svn/NetworkManager/trunk@1943 4912f4e0-d625-0410-9fb7-b9a5a253dbdc
2006-08-07 18:14:05 +00:00
Antony Mee
66e2f92407 * Commented some more unused bits and pieces
git-svn-id: http://svn-archive.gnome.org/svn/NetworkManager/trunk@1933 4912f4e0-d625-0410-9fb7-b9a5a253dbdc
2006-08-06 00:45:44 +00:00
Antony Mee
919715eb41 * Commented unused nm_ppp_dbus_handle_chap_check
git-svn-id: http://svn-archive.gnome.org/svn/NetworkManager/trunk@1932 4912f4e0-d625-0410-9fb7-b9a5a253dbdc
2006-08-06 00:17:19 +00:00
Antony Mee
0a0faf830e * Added 2.4.4 headers in source
* Tidied the directory structure to make the autoconf stuff
    a bit easier.


git-svn-id: http://svn-archive.gnome.org/svn/NetworkManager/trunk@1930 4912f4e0-d625-0410-9fb7-b9a5a253dbdc
2006-08-05 21:57:03 +00:00
Antony Mee
6d5ec61465 * Added 2.4.4b1 version of the headers to the source tree
git-svn-id: http://svn-archive.gnome.org/svn/NetworkManager/trunk@1929 4912f4e0-d625-0410-9fb7-b9a5a253dbdc
2006-08-05 10:32:08 +00:00
Antony Mee
5bf591af74 * Moved the pppd headers to a directory based on the pppd version
and included some automake stuff to give a -I option for
    the correct directory.


git-svn-id: http://svn-archive.gnome.org/svn/NetworkManager/trunk@1927 4912f4e0-d625-0410-9fb7-b9a5a253dbdc
2006-08-05 10:25:36 +00:00
Antony Mee
d15e9d690e * Added DBUS dict routines from NetworkManager/libnm-util that are
necessary for the new dict based VPN interface. (Until a better
    way without this repetition can be found)


git-svn-id: http://svn-archive.gnome.org/svn/NetworkManager/trunk@1926 4912f4e0-d625-0410-9fb7-b9a5a253dbdc
2006-08-05 10:24:00 +00:00
Antony Mee
89b081181b * Tidied some indenting
* Removed spurious "dbus_message_unref" calls


git-svn-id: http://svn-archive.gnome.org/svn/NetworkManager/trunk@1919 4912f4e0-d625-0410-9fb7-b9a5a253dbdc
2006-08-04 12:17:04 +00:00
Antony Mee
a2f637c712 * Add handling of refuse-eap,refuse-chap,refuse-mschap and require-mppe-128
git-svn-id: http://svn-archive.gnome.org/svn/NetworkManager/trunk@1918 4912f4e0-d625-0410-9fb7-b9a5a253dbdc
2006-08-04 11:05:57 +00:00
Antony Mee
8da8ab101f * Replace a couple of NULL error messages with something useful
git-svn-id: http://svn-archive.gnome.org/svn/NetworkManager/trunk@1916 4912f4e0-d625-0410-9fb7-b9a5a253dbdc
2006-08-04 10:34:06 +00:00
Antony Mee
62c65522e0 * Use options from the ppp-extra option having checked
they are in the allowed list.


git-svn-id: http://svn-archive.gnome.org/svn/NetworkManager/trunk@1915 4912f4e0-d625-0410-9fb7-b9a5a253dbdc
2006-08-03 12:44:45 +00:00
Antony Mee
3a6964a6a6 * Backed out the dict patch change (till it has been accepted in NM)
git-svn-id: http://svn-archive.gnome.org/svn/NetworkManager/trunk@1911 4912f4e0-d625-0410-9fb7-b9a5a253dbdc
2006-08-03 11:14:48 +00:00
Antony Mee
5f753f1417 * Remove duplicate require-mppe lines
git-svn-id: http://svn-archive.gnome.org/svn/NetworkManager/trunk@1910 4912f4e0-d625-0410-9fb7-b9a5a253dbdc
2006-08-03 10:55:36 +00:00
Antony Mee
8456fb551f * improve the handling of auth_items to
prevent possible double g_free (Fixed bug #344970)


git-svn-id: http://svn-archive.gnome.org/svn/NetworkManager/trunk@1829 4912f4e0-d625-0410-9fb7-b9a5a253dbdc
2006-06-15 11:36:14 +00:00
Antony Mee
4fe27a22b2 * Add better error messages on connection failure
git-svn-id: http://svn-archive.gnome.org/svn/NetworkManager/trunk@1819 4912f4e0-d625-0410-9fb7-b9a5a253dbdc
2006-06-12 10:59:53 +00:00
Antony Mee
90228d41f6 * GPRS over Bluetooth working (with T610 and Vodafone)
- connect scripts is hard coded as it is at present clear
        to what extent it must be parameterised.


git-svn-id: http://svn-archive.gnome.org/svn/NetworkManager/trunk@1809 4912f4e0-d625-0410-9fb7-b9a5a253dbdc
2006-06-07 12:34:48 +00:00
Antony Mee
4099bf2704 * Support for GPRS over Bluetooth 97% complete
git-svn-id: http://svn-archive.gnome.org/svn/NetworkManager/trunk@1808 4912f4e0-d625-0410-9fb7-b9a5a253dbdc
2006-06-07 03:08:38 +00:00
Antony Mee
4dda72e66a * Generalised pppd oriented implementation.
* General configuration.
 * Runs pppd async. (allows pppd to fork a child)
 * Fixed missing files at compile.


git-svn-id: http://svn-archive.gnome.org/svn/NetworkManager/trunk@1805 4912f4e0-d625-0410-9fb7-b9a5a253dbdc
2006-06-06 19:58:25 +00:00
Antony Mee
87a039a1c2 Missing header file (mistakenly not chacked in already)
git-svn-id: http://svn-archive.gnome.org/svn/NetworkManager/trunk@1797 4912f4e0-d625-0410-9fb7-b9a5a253dbdc
2006-06-03 03:39:21 +00:00
Antony Mee
771b93a674 * DBUS revamp is complete possible to have various
authentication methods, ptys etc.
  * version bumped to 0.6.9 to bring closer in line with NM
  * nm-pptp-service-pppd-plugin.c -> nm-pppd-plugin.c:
    The pppd plugin has now been generalised to work with
    any ppp protocol. (Options do not exist in the config
    dialog yet however)
  * src/Makefile.am: fixed to install pppd plugin correctly
    (unsure about -fPIC usage!)


git-svn-id: http://svn-archive.gnome.org/svn/NetworkManager/trunk@1790 4912f4e0-d625-0410-9fb7-b9a5a253dbdc
2006-06-02 07:10:01 +00:00
Antony Mee
8e193af7d6 * fixed segfault on acquiring IP4Config info
* use "require-mppe" option instead of "mppe required"
   which was associated with the mppe-mppc patch rather
   than the mppe included in pppd >= 2.4.3 and kernel >= 2.6.15


git-svn-id: http://svn-archive.gnome.org/svn/NetworkManager/trunk@1789 4912f4e0-d625-0410-9fb7-b9a5a253dbdc
2006-05-31 02:57:13 +00:00
Antony Mee
676c699036 * free dbus error object in plugin initialization
git-svn-id: http://svn-archive.gnome.org/svn/NetworkManager/trunk@1788 4912f4e0-d625-0410-9fb7-b9a5a253dbdc
2006-05-31 02:54:27 +00:00