summaryrefslogtreecommitdiff
path: root/app/src/main/java/se/leap/bitmaskclient/eip/VpnCertificateValidator.java
diff options
context:
space:
mode:
authorParménides GV <parmegv@sdf.org>2015-03-24 19:29:55 +0100
committerParménides GV <parmegv@sdf.org>2015-03-24 19:29:55 +0100
commite54c7a5407da82feb6dc6fb0de5e2d9f3756b651 (patch)
tree1dc70ce1b4542b9ae81aa6b4ad56e370dd831465 /app/src/main/java/se/leap/bitmaskclient/eip/VpnCertificateValidator.java
parentb87f082fe0e9c05cf45c56b510a2c4000133b572 (diff)
Remove all Logs.
In the near future, I should implement an error feedback mechanism (ideally using ics-openvpn's log view), and avoid the e.printStackTrace() and Log.d("","") without losing information.
Diffstat (limited to 'app/src/main/java/se/leap/bitmaskclient/eip/VpnCertificateValidator.java')
-rw-r--r--app/src/main/java/se/leap/bitmaskclient/eip/VpnCertificateValidator.java4
1 files changed, 0 insertions, 4 deletions
diff --git a/app/src/main/java/se/leap/bitmaskclient/eip/VpnCertificateValidator.java b/app/src/main/java/se/leap/bitmaskclient/eip/VpnCertificateValidator.java
index 025d049d..8fce6a37 100644
--- a/app/src/main/java/se/leap/bitmaskclient/eip/VpnCertificateValidator.java
+++ b/app/src/main/java/se/leap/bitmaskclient/eip/VpnCertificateValidator.java
@@ -16,8 +16,6 @@
*/
package se.leap.bitmaskclient.eip;
-import android.util.*;
-
import java.security.cert.*;
import java.util.*;
@@ -42,7 +40,6 @@ public class VpnCertificateValidator {
private boolean isValid(X509Certificate certificate) {
Calendar offset_date = calculateOffsetCertificateValidity(certificate);
try {
- Log.d(TAG, "offset_date = " + offset_date.getTime().toString());
certificate.checkValidity(offset_date.getTime());
return true;
} catch (CertificateExpiredException e) {
@@ -53,7 +50,6 @@ public class VpnCertificateValidator {
}
private Calendar calculateOffsetCertificateValidity(X509Certificate certificate) {
- Log.d(TAG, "certificate not after = " + certificate.getNotAfter());
long preventive_time = Math.abs(certificate.getNotBefore().getTime() - certificate.getNotAfter().getTime()) / 2;
long current_date_millis = Calendar.getInstance().getTimeInMillis();