summaryrefslogtreecommitdiff
path: root/src/de/blinkt/openvpn/VpnProfile.java
diff options
context:
space:
mode:
authorArne Schwabe <arne@rfc2549.org>2013-02-07 23:59:39 +0100
committerArne Schwabe <arne@rfc2549.org>2013-02-07 23:59:39 +0100
commitfa9f76f27cf1a50122227e8ff9e98adb8eeb44f0 (patch)
treefd3d75982335fdef8ce507a20fcd825ca8196908 /src/de/blinkt/openvpn/VpnProfile.java
parent811436bea4925a657ce8a986c64513f76a5f2aa5 (diff)
More fixes for OpenVPN v3 Core
--HG-- branch : ovpn3
Diffstat (limited to 'src/de/blinkt/openvpn/VpnProfile.java')
-rw-r--r--src/de/blinkt/openvpn/VpnProfile.java7
1 files changed, 3 insertions, 4 deletions
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;