summaryrefslogtreecommitdiff
path: root/src/se
AgeCommit message (Collapse)Author
2013-10-03Fixed M2 and M1 constants values.Parménides GV
Logging in, it was returning a "Bad response from server" due to the malinterpretation of the received JSON. It was looking for a field named "m2", but it was "M2".
2013-09-30Fixed typo in EIP.certificateParménides GV
2013-09-30Erroneous CA cert download correctly handled.Parménides GV
If there is an error while downloading CA cert on downloadJsonFiles, false is returned and progress dialog is dismissed.
2013-09-30Moved all constants from ConfigHelper.Parménides GV
They have been relocated to the corresponding classes.
2013-09-30Moved result constants to ProviderAPI.Parménides GV
2013-09-26Merge branch 'bug/inconsistent-cookie-management' into developSean Leonard
2013-09-26Replaced Apache HTTP client with HttpURLConnectionParménides GV
I do not manually manage cookies anymore, letting HttpURLConnection manage them via default CookieHandler (using CookiePolicy.ACCEPT_ORIGINAL_SERVER).
2013-09-26Apache HTTP to Android HttpsURLConnection started.Parménides GV
SRP parameter A tries to be sent via HttpsURLConnection. Right now, we have a problem with certificates because I'm not using provider CA cert to get the response. I'm going to merge the branch with better method names to download response using already existing code.
2013-09-26Commented all manual cookie management.Parménides GV
I send session_id cookie in the request for 1/cert, getting it from LeapHttpClient directly.
2013-09-25Removed cookie to logout chain.Parménides GV
2013-09-25Renamed certificate handling methods.Parménides GV
I still let one method to bypass hostname verifier, otherwise dev.bm will not work. I've reduced downloading functions to 3: download without CA, download with commercial CA and download with provider CA. I only download CA cert once, when the user selects the corresponding provider. Each time a user switch provider, the cert is downloaded (along with other json files).
2013-08-15Merge branch 'hotfix/danger_on-is-true-for-assets-provider' into developSean Leonard
2013-08-14Assets providers have danger_on "false".Parménides GV
2013-08-13Use java.security classes to validate string certificates and keys from providerSean Leonard
2013-08-13Merge branch 'bug/eip-fragment-is-not-showed-after-switching-provider' into ↵Sean Leonard
develop
2013-08-13Merge branch 'bug/provider-down-not-differentiated-from-certificate-error' ↵Sean Leonard
into develop
2013-08-13Merge branch 'feature/retry-login-retain-username' into developSean Leonard
2013-08-13Merge branch 'feature/providerApi-actions-instead-of-bundleExtras' into developSean Leonard
2013-08-03EIP fragment is replaced if provider is switched.Parménides GV
We were checking if eip existed before adding it again, but that check can be removed if we make a replace instead of an add.
2013-08-03FileNotFoundException catched in all downloads.Parménides GV
Added a new catch block in all downloads methods.
2013-08-01Merge branch 'bug/backstack-screwed-up-by-notification-tap' into developSean Leonard
2013-08-01ProviderAPI intent receives actions and parameters.Parménides GV
We no longer use BundleExtras named as the action ProviderAPI is intended to perform, but we standardise this name (ProviderAPI.PARAMETERS), and use setAction to pass that action string.
2013-07-30Retains username if login process failed.Parménides GV
New login dialog shows the original username, so that if the user failed writing his/her password, s/he does not have to write again the username.
2013-07-29Backstack OK from notification bar.Parménides GV
Pressing back after entering Dashboard from notification bar, the user goes back to home.
2013-07-29LeapHttpClient verifies hostname.Parménides GV
This fixes #3287
2013-07-26Include GPLv3+ file and header for files in se.leap.leapclient packageSean Leonard
2013-07-26Include ics-openvpn license file in se.leap.openvpn packageSean Leonard
Clean erroneous copyright text (Consulted Arne) ics-openvpn uses GPLv2+
2013-07-25Login progressdialog get dismissed when finished.Parménides GV
If login is successful, dialog is dismissed and toast is showed. If login is not successful and the user cancels the new login dialog presented to him/her, then Dashboard is showed.
2013-07-20If IOException, use current provider CA cert.Parménides GV
If the CA cert was correctly downloaded, we assume it can be used to validate the string download. If CA cert cannot validate that connection, then if the trust completely checkbox was checked it will try with the other methods. If it was not checked, a certificate error is shown (telling the user the provider is not trusted).
2013-07-20Certificate message shown when appropiate.Parménides GV
Only if all downloading methods fail and the last one throws an IOException, the certificate error message toast is shown.
2013-07-20Erroneous untrusted provider toast with LEAP fixedParménides GV
I've also rearranged how we handle SSL errors. In first place, if the user checked the "Trust completely" checkbox, leap_android tries to use the CA cert pointed out by provider.json. If that does not succeed, it uses an always-returning-true hostname verifier (this was previously done before using CA cert).
2013-07-19Fix config error dialog missing call to show()Sean Leonard
2013-07-19Change EIP switch label to "Encrypted Internet"Sean Leonard
2013-07-19Display provider domain on Dashboard instead of nameSean Leonard
2013-07-19Add logic to only trigger EIP control events if switch changed by a touch event.Sean Leonard
Fixes VPN reconnection when framework rebuilds view, triggering onCheckedChangeListener
2013-07-19Add a progress bar while VPN connection is being establishedSean Leonard
2013-07-19Refactor EIP UI and control logic out of Dashboard into a FragmentSean Leonard
2013-07-19Use non-blocking logic for EIP switchSean Leonard
Includes AlertDialog if the user attempts to stop EIP while a connection is being established
2013-07-19Only parse eip-services.json if the serial has incrementedSean Leonard
2013-07-19Better VPN connection state messagesSean Leonard
2013-07-19Don't send byte count messages to the state listenersSean Leonard
2013-07-19Show notification while VPN connection in progress and when VPN connection lostSean Leonard
2013-07-18Clean up AboutFragment, remove donation textSean Leonard
2013-07-18Move AboutFragment into leapclient packageSean Leonard
2013-07-12Shows bad user/password message when appropriate.Parménides GV
If an empty json string is received after sending M1 (that means no M2 in return), bad user/password message is shown. This fixes bug 3153.
2013-07-12Dashboard menu is updated when logged in or out.Parménides GV
Login option is not shown if the user is already logged in, and logout option is not shown if the user is not logged in. I've also removed a debug line from ProviderDetailFragment, which returned true when it returned false because of an exception.
2013-07-12New certificates are added without creating filesParménides GV
LeapHttpClient can fetch the main CA certificate downloaded from the provider and add it to its in-memory keystore, without saving the certificate in a file. This is a very important feature, I think it can be cherry picked (it has little modifications, and very localized). It's very important because authentication does not work without this bug fix in the latest branches, because I removed the code that saved the certificate in a file but didn't test the authentication part.
2013-07-12Shows certificate error message.Parménides GV
If a download didn't occurr due to an IOException, we assume it was for an SSL error and notify the user telling him/her that LEAP provider is not trusted.
2013-07-12Distinguish non LEAP provider and down provider.Parménides GV
I've set ProviderAPI to show its own toast depending on the exception that getStringFromProvider issues. If the socket timeout reaches its end, a toast different from when an IOException or a MalformedException occur.
2013-07-12ConfigurationWizard backstack and exit behavior.Parménides GV
Feature #3023 first solution. I don't like to tell anything to the user when s/he wants to exit pressing the back button. I assume s/he is saying: "Wanna go out!!" I've implemented the behaviour written in UI Rev II. If a user selects a new provider when coming back from Switch Provider, the previous provider is forgotten and we assume s/he wants to change of provider but he is not sure to which. That means that previous provider configuration will be removed (that means there is no provider selected and Dashboard will not be launched before a new provider is selected).