Skip to content

Commit

Permalink
Fix for TLS issue
Browse files Browse the repository at this point in the history
  • Loading branch information
GarethAyres committed Jan 17, 2019
1 parent 0c2c724 commit 13961e2
Show file tree
Hide file tree
Showing 3 changed files with 11 additions and 3 deletions.
4 changes: 2 additions & 2 deletions AndroidManifest.xml
Original file line number Diff line number Diff line change
@@ -1,8 +1,8 @@
<?xml version="1.0" encoding="utf-8"?>
<manifest xmlns:android="http://schemas.android.com/apk/res/android"
package="uk.ac.swansea.eduroamcat"
android:versionCode="54"
android:versionName="1.2.9">
android:versionCode="55"
android:versionName="1.2.10">

<uses-permission android:name="android.permission.ACCESS_WIFI_STATE" />
<uses-permission android:name="android.permission.CHANGE_WIFI_STATE" />
Expand Down
2 changes: 1 addition & 1 deletion src/uk/ac/swansea/eduroamcat/ConnectFragment.java
Original file line number Diff line number Diff line change
Expand Up @@ -214,7 +214,7 @@ public String getStoredUsername()
if (db.numberOfRowsUSER()>0)
{
username=db.getUser();
if (username == null) username = "";
if (username.isEmpty()) username = "";
}
else
{
Expand Down
8 changes: 8 additions & 0 deletions src/uk/ac/swansea/eduroamcat/WifiConfigAPI18.java
Original file line number Diff line number Diff line change
Expand Up @@ -242,6 +242,14 @@ else if (aAuth.getInnerNonEAPType()==0) {
userName = aAuth.getClientPrivateKeySubjectCN();
enterpriseConfig.setIdentity(userName);
debug("Using Username:" + userName);
}
else
{
if ( aAuth.getClientPrivateKeySubjectCN() != null && aAuth.getClientPrivateKeySubjectCN().length()>0) {
userName = aAuth.getClientPrivateKeySubjectCN();
enterpriseConfig.setIdentity(userName);
debug("Using Username:" + userName);
}
}
}

Expand Down

0 comments on commit 13961e2

Please sign in to comment.