From fa9f76f27cf1a50122227e8ff9e98adb8eeb44f0 Mon Sep 17 00:00:00 2001 From: Arne Schwabe Date: Thu, 7 Feb 2013 23:59:39 +0100 Subject: More fixes for OpenVPN v3 Core --HG-- branch : ovpn3 --- src/de/blinkt/openvpn/VpnProfile.java | 7 +++---- 1 file changed, 3 insertions(+), 4 deletions(-) (limited to 'src/de/blinkt/openvpn/VpnProfile.java') diff --git a/src/de/blinkt/openvpn/VpnProfile.java b/src/de/blinkt/openvpn/VpnProfile.java index 2f2a10a8..ea034b55 100644 --- a/src/de/blinkt/openvpn/VpnProfile.java +++ b/src/de/blinkt/openvpn/VpnProfile.java @@ -782,8 +782,8 @@ public class VpnProfile implements Serializable{ rsasinger.init(Cipher.ENCRYPT_MODE, privkey); byte[] signed_bytes = rsasinger.doFinal(data); - String signed_string = Base64.encodeToString(signed_bytes, Base64.NO_WRAP); - ; + return Base64.encodeToString(signed_bytes, Base64.NO_WRAP); + } catch (NoSuchAlgorithmException e){ err =e; } catch (InvalidKeyException e) { @@ -824,8 +824,7 @@ public class VpnProfile implements Serializable{ getPkeyContext.setAccessible(false); byte[] signed_bytes = rsasign(data, pkey); - String signed_string = Base64.encodeToString(signed_bytes, Base64.NO_WRAP); - return signed_string; + return Base64.encodeToString(signed_bytes, Base64.NO_WRAP); } catch (NoSuchMethodException e) { err=e; -- cgit v1.2.3