igd2-for-linux:jeevans-deviceprotection.git
6 years agoWrong licensing texts removed and GPL code eliminated. bugfixes
Jukka Kinnunen [Mon, 21 Mar 2011 13:34:08 +0000 (15:34 +0200)]
Wrong licensing texts removed and GPL code eliminated.

6 years agoMerge branch 'master' of http://git.gitorious.org/~melanie/igd2-for-linux/melanies...
Jukka Kinnunen [Fri, 18 Mar 2011 08:21:59 +0000 (10:21 +0200)]
Merge branch 'master' of git.gitorious.org/~melanie/igd2-for-linux/melanies-deviceprotection into bugfixes

6 years agoAdd of a test concerning the "identifier" variable in several functions
Melanie Vilaine [Tue, 15 Mar 2011 09:32:38 +0000 (10:32 +0100)]
Add of a test concerning the "identifier" variable in several functions

Tests if the variable is NULL or not, because if a CP does not use a SSL connection, its identifier is NULL and should not have access to actions which require a SSL connection.

6 years agoMerge branch 'master' of http://git.gitorious.org/~melanie/igd2-for-linux/melanies...
Open Source [Mon, 14 Mar 2011 06:38:00 +0000 (08:38 +0200)]
Merge branch 'master' of git.gitorious.org/~melanie/igd2-for-linux/melanies-deviceprotection into bugfixes

6 years agoModifications in the "GetUserLoginChallenge()" function
Melanie Vilaine [Fri, 11 Mar 2011 14:53:16 +0000 (15:53 +0100)]
Modifications in the "GetUserLoginChallenge()" function

Add of this condition :
if a CP has a Public role, he can't get informations about an admin user according to the specifications.

6 years agoCorrections in the "GetRolesForActions()" function
Melanie Vilaine [Fri, 11 Mar 2011 14:39:25 +0000 (15:39 +0100)]
Corrections in the "GetRolesForActions()" function

The "ii" variable was not incremented, so the function was blocked in an infinite loop.
There was also a confusion between "ii" and "jj" variables.

6 years agomodifications in "gatedevice.c" :
Melanie Vilaine [Fri, 11 Mar 2011 13:09:48 +0000 (14:09 +0100)]
modifications in "gatedevice.c" :

Before this, if SSL was not used, a CP which has a Public Role was able to invoke all actions.
According to the specifications, a CP with a Public Role can do only actions which require Public Role when the SSL connection is not established.
This adds this constraint in the "AuthorizeControlPoint" function and delete the "CONTROL_POINT_HALF_AUTHORIZED" variable.

6 years agoFix from Marc Essayan: Otherwise the CP is not working with UPnP DM v2
Open Source [Thu, 10 Mar 2011 09:53:21 +0000 (11:53 +0200)]
Fix from Marc Essayan: Otherwise the CP is not working with UPnP DM v2

6 years agotest script: Do not ask sudo password twice, if the user does not want to enter it...
Open Source [Thu, 10 Mar 2011 09:44:48 +0000 (11:44 +0200)]
test script: Do not ask sudo password twice, if the user does not want to enter it, and exists with ctrl-c

6 years agoSimple README
Open Source [Thu, 10 Mar 2011 08:39:28 +0000 (10:39 +0200)]
Simple README

6 years agotest script: use the final Gitorious repo
Open Source [Wed, 9 Mar 2011 13:46:32 +0000 (15:46 +0200)]
test script: use the final Gitorious repo

6 years agotest script: no need to create pkgconfig file for libwpa_supplicant anymore.
Open Source [Wed, 9 Mar 2011 12:55:51 +0000 (14:55 +0200)]
test script: no need to create pkgconfig file for libwpa_supplicant anymore.

6 years agominor fixes to test script
Open Source [Wed, 9 Mar 2011 10:50:44 +0000 (12:50 +0200)]
minor fixes to test script

6 years agotest script: get sources from Gitorious. Use still a temporary test repo.
Open Source [Wed, 9 Mar 2011 10:16:22 +0000 (12:16 +0200)]
test script: get sources from Gitorious. Use still a temporary test repo.

6 years agotest script: fixes to required Ubuntu packages
Jukka Kinnunen [Tue, 8 Mar 2011 12:36:48 +0000 (14:36 +0200)]
test script: fixes to required Ubuntu packages

6 years agominor fixes to test script
Jukka Kinnunen [Tue, 8 Mar 2011 11:57:09 +0000 (13:57 +0200)]
minor fixes to test script

6 years agoA small fixes and improvements
Kari Kallio [Wed, 2 Mar 2011 12:50:51 +0000 (14:50 +0200)]
A small fixes and improvements

6 years agoSplit general functions to a separate file and improve command execution
Kari Kallio [Wed, 2 Mar 2011 06:38:35 +0000 (08:38 +0200)]
Split general functions to a separate file and improve command execution

6 years agoAdded test for exit values of commands
Kari Kallio [Thu, 24 Feb 2011 06:54:07 +0000 (08:54 +0200)]
Added test for exit values of commands

6 years agoImprove test scripts and add tests for PBC method
Kari Kallio [Wed, 23 Feb 2011 11:58:43 +0000 (13:58 +0200)]
Improve test scripts and add tests for PBC method

6 years agoSystem test scripts for device protection
Kari Kallio [Fri, 18 Feb 2011 09:58:18 +0000 (11:58 +0200)]
System test scripts for device protection

6 years agoFixes to hostap pkgconfig files
Open Source [Wed, 9 Mar 2011 11:55:59 +0000 (13:55 +0200)]
Fixes to hostap pkgconfig files

6 years agoSome updates to libupnp OpenWRT Makefile. -Verified against svn://svn.openwrt.org...
Jukka Kinnunen [Wed, 9 Mar 2011 07:53:31 +0000 (09:53 +0200)]
Some updates to libupnp OpenWRT Makefile. -Verified against svn://svn.openwrt.org/openwrt/packages/libs/libupnp/Makefile, r25880. -Run "bootstrap" script in configure phase. This creates configure file in build dir. -Use default OpenWRT build rules -Do not build samples, because there are some linking problems

6 years agoEmpty 'bin' dir required in build phase
Jukka Kinnunen [Tue, 8 Mar 2011 11:38:24 +0000 (13:38 +0200)]
Empty 'bin' dir required in build phase

6 years agoVersion numbers bumped snapshot_delivery_110211
Jukka Kinnunen [Fri, 11 Feb 2011 06:14:05 +0000 (08:14 +0200)]
Version numbers bumped

6 years agoVersion number bumped
Jukka Kinnunen [Fri, 5 Nov 2010 09:33:53 +0000 (11:33 +0200)]
Version number bumped

6 years agolibupnp (aka pupnp) OpenWRT Makefile added here. It is modified from https://dev...
Jukka Kinnunen [Thu, 4 Nov 2010 15:01:16 +0000 (17:01 +0200)]
libupnp (aka pupnp) OpenWRT Makefile added here. It is modified from https://dev.openwrt.org/browser/packages/libs/libupnp/Makefile rev. 19697.

6 years agoVersion number bumped down
Jukka Kinnunen [Wed, 20 Oct 2010 10:55:26 +0000 (13:55 +0300)]
Version number bumped down

6 years agoVersion number bumped. Use libwpa_supplicant instead of libwpsutil.
Jukka Kinnunen [Mon, 20 Sep 2010 11:37:40 +0000 (14:37 +0300)]
Version number bumped. Use libwpa_supplicant instead of libwpsutil.

6 years agoACL rules now in correct path in target
Jukka Kinnunen [Mon, 20 Sep 2010 11:27:41 +0000 (14:27 +0300)]
ACL rules now in correct path in target

6 years agounnecessary OpenWRT Makefiles removed
Jukka Kinnunen [Wed, 1 Sep 2010 11:57:12 +0000 (14:57 +0300)]
unnecessary OpenWRT Makefiles removed

6 years agoOpenWRT Makefiles added
Jukka Kinnunen [Fri, 27 Aug 2010 12:44:06 +0000 (15:44 +0300)]
OpenWRT Makefiles added

6 years agomissing file added
Jukka Kinnunen [Mon, 7 Mar 2011 14:28:03 +0000 (16:28 +0200)]
missing file added

6 years agoDeveloper email addresses added to file headers
Jukka Kinnunen [Mon, 7 Mar 2011 10:25:17 +0000 (12:25 +0200)]
Developer email addresses added to file headers

6 years agoPBC method not selected in the default config
Jukka Kinnunen [Thu, 17 Feb 2011 14:02:41 +0000 (16:02 +0200)]
PBC method not selected in the default config

6 years agoVersion numbers bumped
Jukka Kinnunen [Fri, 11 Feb 2011 06:14:05 +0000 (08:14 +0200)]
Version numbers bumped

6 years agoFix to UUID processing from Marc Essayan (marc.essayan@orange-ftpgroup.com). The...
Jukka Kinnunen [Fri, 28 Jan 2011 08:46:34 +0000 (10:46 +0200)]
Fix to UUID processing from Marc Essayan (marc.essayan@orange-ftpgroup.com). The binary UUID must be kept in network byte order.

6 years agoUse the same UUID type definition as is used in libgupnp changes.
Jukka Kinnunen [Fri, 28 Jan 2011 07:09:43 +0000 (09:09 +0200)]
Use the same UUID type definition as is used in libgupnp changes.

6 years agoBug fixes. Be prepared for NULL pointers and empty strings.
Jukka Kinnunen [Fri, 22 Oct 2010 07:02:26 +0000 (10:02 +0300)]
Bug fixes. Be prepared for NULL pointers and empty strings.

6 years agoVersion number bumped down
Jukka Kinnunen [Wed, 20 Oct 2010 10:37:38 +0000 (13:37 +0300)]
Version number bumped down

6 years agoSend SetupReady(false) when sending M3.
Open Source [Tue, 19 Oct 2010 11:52:31 +0000 (14:52 +0300)]
Send SetupReady(false) when sending M3.

6 years agoRefactoring, DP service does not include Device header file any more.
Jukka Kinnunen [Wed, 6 Oct 2010 12:35:04 +0000 (15:35 +0300)]
Refactoring, DP service does not include Device header file any more.

6 years agoDo not give NULL pointer to base64 encoding function, it leads to seg fault.
Jukka Kinnunen [Wed, 6 Oct 2010 06:04:16 +0000 (09:04 +0300)]
Do not give NULL pointer to base64 encoding function, it leads to seg fault.

6 years agoMinor refactoring. Should not have any effect on functionality.
Jukka Kinnunen [Tue, 5 Oct 2010 10:31:37 +0000 (13:31 +0300)]
Minor refactoring. Should not have any effect on functionality.

6 years agoSetupReady(FALSE) not sent anymore in PBC mode after M2D.
Jukka Kinnunen [Tue, 5 Oct 2010 09:10:50 +0000 (12:10 +0300)]
SetupReady(FALSE) not sent anymore in PBC mode after M2D.

6 years agoDifferent max duration for PIN and PBC modes. In PBC mode the max duration must be...
Jukka Kinnunen [Fri, 1 Oct 2010 10:28:06 +0000 (13:28 +0300)]
Different max duration for PIN and PBC modes. In PBC mode the max duration must be longer than PBC walk time.

6 years agoMemory leak fixed.
Jukka Kinnunen [Fri, 1 Oct 2010 09:20:01 +0000 (12:20 +0300)]
Memory leak fixed.

6 years agoThe first draft version of PBC implementation.
Jukka Kinnunen [Thu, 30 Sep 2010 14:19:19 +0000 (17:19 +0300)]
The first draft version of PBC implementation.

6 years agoOption "wps_config_methods" added to upnpd config file. WPS PBC can be enabled with it.
Jukka Kinnunen [Thu, 30 Sep 2010 07:04:01 +0000 (10:04 +0300)]
Option "wps_config_methods" added to upnpd config file. WPS PBC can be enabled with it.

6 years agoPush button emulated with USR2 signal.
Jukka Kinnunen [Wed, 29 Sep 2010 12:40:37 +0000 (15:40 +0300)]
Push button emulated with USR2 signal.

6 years agoMinor refactoring
Jukka Kinnunen [Wed, 29 Sep 2010 10:24:47 +0000 (13:24 +0300)]
Minor refactoring

6 years agoUser names may not be case-insensitive anymore.
Jukka Kinnunen [Wed, 29 Sep 2010 09:21:42 +0000 (12:21 +0300)]
User names may not be case-insensitive anymore.

6 years agoUser names may not be case-insensitive anymore.
Jukka Kinnunen [Wed, 29 Sep 2010 08:55:47 +0000 (11:55 +0300)]
User names may not be case-insensitive anymore.

6 years agoStore generated PIN into /tmp/upnpd.wps.pin
Jukka Kinnunen [Tue, 28 Sep 2010 12:06:10 +0000 (15:06 +0300)]
Store generated PIN into /tmp/upnpd.wps.pin

6 years agoPIN code is now optional in config file. If PIN is not defined, upnpd generates it...
Jukka Kinnunen [Tue, 28 Sep 2010 06:03:26 +0000 (09:03 +0300)]
PIN code is now optional in config file. If PIN is not defined, upnpd generates it on the fly. Admin password may now contain spaces.

6 years agoWPASUPP_SM_E_SUCCESSINFO status returned in M2D case
Jukka Kinnunen [Mon, 27 Sep 2010 13:10:18 +0000 (16:10 +0300)]
WPASUPP_SM_E_SUCCESSINFO status returned in M2D case

6 years agoFixes to SetUserLoginPassword and UserLogin input arg validation.
Jukka Kinnunen [Thu, 23 Sep 2010 09:37:16 +0000 (12:37 +0300)]
Fixes to SetUserLoginPassword and UserLogin input arg validation.

6 years agoA quick fix to enable passwords with space. the password can be set to env var like...
Jukka Kinnunen [Fri, 17 Sep 2010 09:07:20 +0000 (12:07 +0300)]
A quick fix to enable passwords with space. the password can be set to env var like this: IGD2_ADMIN_PW='admin password'.

6 years agoBug fix; Ongoing WPS introduction stopped, if SendSetupMessage contains invalid Proto...
Jukka Kinnunen [Thu, 16 Sep 2010 10:04:58 +0000 (13:04 +0300)]
Bug fix; Ongoing WPS introduction stopped, if SendSetupMessage contains invalid ProtocolType argument.

6 years agocompilation warnings eliminated
Jukka Kinnunen [Wed, 15 Sep 2010 12:22:31 +0000 (15:22 +0300)]
compilation warnings eliminated

6 years agountabify
Jukka Kinnunen [Wed, 15 Sep 2010 07:40:46 +0000 (10:40 +0300)]
untabify

6 years agoFix problems with several successive WPS introductions. wpa_supplicant library is...
Jukka Kinnunen [Wed, 15 Sep 2010 05:26:42 +0000 (08:26 +0300)]
Fix problems with several successive WPS introductions. wpa_supplicant library is now initialized totally after each WPS intro.

6 years agoWhen WPS introduction succeeds, update session roles into SIR.
Jukka Kinnunen [Tue, 14 Sep 2010 07:59:20 +0000 (10:59 +0300)]
When WPS introduction succeeds, update session roles into SIR.

6 years agoMinor fix to existing trace
Jukka Kinnunen [Fri, 10 Sep 2010 13:40:20 +0000 (16:40 +0300)]
Minor fix to existing trace

6 years agoGetACLData may not succeed, if CP id is not in ACL list.
Jukka Kinnunen [Fri, 10 Sep 2010 13:19:54 +0000 (16:19 +0300)]
GetACLData may not succeed, if CP id is not in ACL list.

6 years agoUserLogin may not succeed, if CP id is not in ACL list.
Jukka Kinnunen [Fri, 10 Sep 2010 13:09:31 +0000 (16:09 +0300)]
UserLogin may not succeed, if CP id is not in ACL list.

6 years agoGetRolesForAction may not succeed, if CP id is not in ACL list.
Jukka Kinnunen [Fri, 10 Sep 2010 12:58:44 +0000 (15:58 +0300)]
GetRolesForAction may not succeed, if CP id is not in ACL list.

6 years agoAdditional cleanup related to a03988811049d1fc8719989a8a83d72c4efa5b50. All uppercase...
Jukka Kinnunen [Fri, 10 Sep 2010 10:58:56 +0000 (13:58 +0300)]
Additional cleanup related to a03988811049d1fc8719989a8a83d72c4efa5b50. All uppercase conversion leftovers removed.

6 years agoCheck 'Salt' and 'Stored' lengths in SetUserLoginPassword handler.
Jukka Kinnunen [Fri, 10 Sep 2010 07:19:13 +0000 (10:19 +0300)]
Check 'Salt' and 'Stored' lengths in SetUserLoginPassword handler.

6 years agomore traces
Jukka Kinnunen [Thu, 9 Sep 2010 13:01:18 +0000 (16:01 +0300)]
more traces

6 years agoBug fix; no more seg fault when handling RemoveRolesForIdentity.
Jukka Kinnunen [Thu, 9 Sep 2010 10:46:21 +0000 (13:46 +0300)]
Bug fix; no more seg fault when handling RemoveRolesForIdentity.

6 years agountabify
Jukka Kinnunen [Sun, 5 Sep 2010 06:59:35 +0000 (09:59 +0300)]
untabify

6 years agoUsernames are case-sensitive now (see UPnP-GW-DeviceProtection-0 87d-service-WD-20100...
Jukka Kinnunen [Sun, 5 Sep 2010 06:58:36 +0000 (09:58 +0300)]
Usernames are case-sensitive now (see UPnP-GW-DeviceProtection-0 87d-service-WD-20100823.doc).

6 years agoWhen verifying authenticators in UserLogin, must verify binary blocks, can not verify...
Jukka Kinnunen [Sun, 5 Sep 2010 06:49:26 +0000 (09:49 +0300)]
When verifying authenticators in UserLogin, must verify binary blocks, can not verify base64 encoded strings.

6 years agoVersion number bumped; unnecessary directories removed from install target.
Jukka Kinnunen [Mon, 30 Aug 2010 10:34:40 +0000 (13:34 +0300)]
Version number bumped; unnecessary directories removed from install target.

6 years agoCrypting and hashing utilities moved to a separate module.
Jukka Kinnunen [Mon, 30 Aug 2010 10:01:41 +0000 (13:01 +0300)]
Crypting and hashing utilities moved to a separate module.

6 years agoFixes for OpenWRT build, because iptables is a newer one in the current OpenWRT snapshot.
Jukka Kinnunen [Fri, 27 Aug 2010 13:49:29 +0000 (16:49 +0300)]
Fixes for OpenWRT build, because iptables is a newer one in the current OpenWRT snapshot.

6 years agoLink to wpa_supplicant lib properly. Include exported header.
Jukka Kinnunen [Fri, 27 Aug 2010 05:22:51 +0000 (08:22 +0300)]
Link to wpa_supplicant lib properly. Include exported header.

6 years agoremove WPA_SUPP_IN_USE compilation flag and all code which uses wpsutil library.
Jukka Kinnunen [Thu, 26 Aug 2010 14:19:24 +0000 (17:19 +0300)]
remove WPA_SUPP_IN_USE compilation flag and all code which uses wpsutil library.

6 years agoCleanup
Jukka Kinnunen [Thu, 26 Aug 2010 12:52:28 +0000 (15:52 +0300)]
Cleanup

6 years agoCleanup
Jukka Kinnunen [Thu, 26 Aug 2010 12:50:00 +0000 (15:50 +0300)]
Cleanup

6 years agoModified config values in interface init().
Jukka Kinnunen [Thu, 26 Aug 2010 09:25:03 +0000 (12:25 +0300)]
Modified config values in interface init().

6 years agoDo not link against libwpsutil anymore
Jukka Kinnunen [Wed, 25 Aug 2010 12:40:30 +0000 (15:40 +0300)]
Do not link against libwpsutil anymore

6 years agoSome temporary traces added.
Jukka Kinnunen [Tue, 24 Aug 2010 12:40:58 +0000 (15:40 +0300)]
Some temporary traces added.

6 years agoUse sha256 instead of sha1 from now on
Jukka Kinnunen [Tue, 24 Aug 2010 09:26:06 +0000 (12:26 +0300)]
Use sha256 instead of sha1 from now on

6 years agobase64 encoding-decoding works now
Jukka Kinnunen [Mon, 23 Aug 2010 11:54:13 +0000 (14:54 +0300)]
base64 encoding-decoding works now

6 years agowpsutil base64 function calls replaced with the hostap corresponding calls. Not taken...
Jukka Kinnunen [Wed, 18 Aug 2010 11:09:48 +0000 (14:09 +0300)]
wpsutil base64 function calls replaced with the hostap corresponding calls. Not taken in use yet (NOT_DEFINED flag used).

6 years agountabify
Jukka Kinnunen [Wed, 18 Aug 2010 09:10:36 +0000 (12:10 +0300)]
untabify

6 years agoHandle 'invalid PIN' case correctly
Jukka Kinnunen [Wed, 18 Aug 2010 09:07:58 +0000 (12:07 +0300)]
Handle 'invalid PIN' case correctly

6 years agoable to generate M3 now
Jukka Kinnunen [Tue, 17 Aug 2010 08:38:12 +0000 (11:38 +0300)]
able to generate M3 now

6 years agolibwpa_supplicant interface used instead of libwpsutil. Implementation separated...
Jukka Kinnunen [Thu, 12 Aug 2010 10:29:36 +0000 (13:29 +0300)]
libwpa_supplicant interface used instead of libwpsutil. Implementation separated with WPA_SUPP_IN_USE flag

6 years agoLink libwpa_supplicant from a temporary location
Jukka Kinnunen [Wed, 25 Aug 2010 10:48:09 +0000 (13:48 +0300)]
Link libwpa_supplicant from a temporary location

6 years agoA way to enable gnutls traces.
Jukka Kinnunen [Wed, 25 Aug 2010 10:44:48 +0000 (13:44 +0300)]
A way to enable gnutls traces.

6 years agowpa_supplicant_iface.h temporarily here, will be moved into hostap project later.
Jukka Kinnunen [Wed, 25 Aug 2010 10:41:17 +0000 (13:41 +0300)]
wpa_supplicant_iface.h temporarily here, will be moved into hostap project later.

6 years agoRemoved the last ACK from WPS. The last ACK is not needed in UPnP WPS process, only...
Open Source [Wed, 30 Jun 2010 11:30:30 +0000 (13:30 +0200)]
Removed the last ACK from WPS. The last ACK is not needed in UPnP WPS process, only in normal WiFi WPS.

6 years agoChanged device description in gatedesc.xml to match DP spec 0.86.
Open Source [Tue, 29 Jun 2010 10:58:23 +0000 (12:58 +0200)]
Changed device description in gatedesc.xml to match DP spec 0.86.

6 years agoUser login challenge generation updates according to spec 0.86.
Open Source [Tue, 29 Jun 2010 11:06:55 +0000 (13:06 +0200)]
User login challenge generation updates according to spec 0.86.

6 years agoUpdated access level XML based on DP spec 0.86.
Open Source [Tue, 29 Jun 2010 10:55:31 +0000 (12:55 +0200)]
Updated access level XML based on DP spec 0.86.

6 years agoFuntion to pupnp for getting own client certificate
Jaakko Pasanen [Wed, 23 Dec 2009 08:58:21 +0000 (08:58 +0000)]
Funtion to pupnp for getting own client certificate

git-svn-id: http://us000253/svn/IGDv2@444 55a18753-f1c3-4722-b33a-e097f9cf6a53

6 years agoRemove plug fest special code
Jaakko Pasanen [Tue, 22 Dec 2009 11:47:48 +0000 (11:47 +0000)]
Remove plug fest special code

git-svn-id: http://us000253/svn/IGDv2@442 55a18753-f1c3-4722-b33a-e097f9cf6a53