summaryrefslogtreecommitdiff
path: root/main/src/ovpn3/java
diff options
context:
space:
mode:
authorArne Schwabe <arne@rfc2549.org>2018-08-06 18:19:41 +0200
committerArne Schwabe <arne@rfc2549.org>2018-08-06 18:19:41 +0200
commitb9ac2b15eac3e5e5f9dc89c948ec8278e2e7c1f9 (patch)
tree63f371b4ae6555b15f76c5a13ed2e26c192895dc /main/src/ovpn3/java
parent7b7940186fafcdf4bb15ea8e087b8cf345cd53c8 (diff)
Implement certificate authentication via external provider
Diffstat (limited to 'main/src/ovpn3/java')
-rw-r--r--main/src/ovpn3/java/de/blinkt/openvpn/core/OpenVPNThreadv3.java4
1 files changed, 2 insertions, 2 deletions
diff --git a/main/src/ovpn3/java/de/blinkt/openvpn/core/OpenVPNThreadv3.java b/main/src/ovpn3/java/de/blinkt/openvpn/core/OpenVPNThreadv3.java
index 3e7011e7..d132f612 100644
--- a/main/src/ovpn3/java/de/blinkt/openvpn/core/OpenVPNThreadv3.java
+++ b/main/src/ovpn3/java/de/blinkt/openvpn/core/OpenVPNThreadv3.java
@@ -222,7 +222,7 @@ public class OpenVPNThreadv3 extends ClientAPI_OpenVPNClient implements Runnable
@Override
public void external_pki_cert_request(ClientAPI_ExternalPKICertRequest certreq) {
VpnStatus.logDebug("Got external PKI certificate request from OpenVPN core");
- String[] ks = mVp.getKeyStoreCertificates((Context) mService);
+ String[] ks = mVp.getExternalCertificates(mService);
if(ks==null) {
certreq.setError(true);
certreq.setErrorText("Error in pki cert request");
@@ -241,7 +241,7 @@ public class OpenVPNThreadv3 extends ClientAPI_OpenVPNClient implements Runnable
@Override
public void external_pki_sign_request(ClientAPI_ExternalPKISignRequest signreq) {
VpnStatus.logDebug("Got external PKI signing request from OpenVPN core");
- signreq.setSig(mVp.getSignedData(signreq.getData()));
+ signreq.setSig(mVp.getSignedData(mService, signreq.getData()));
}
void setUserPW() {