Merge change 4460 into donut
* changes: Use the new keystore API in vpn service.
This commit is contained in:
@@ -50,16 +50,17 @@ class L2tpIpsecService extends VpnService<L2tpIpsecProfile> {
|
|||||||
}
|
}
|
||||||
|
|
||||||
private String getCaCertPath() {
|
private String getCaCertPath() {
|
||||||
return Keystore.getInstance().getCertificate(
|
return Keystore.getInstance().getCaCertificate(
|
||||||
getProfile().getCaCertificate());
|
getProfile().getCaCertificate());
|
||||||
}
|
}
|
||||||
|
|
||||||
private String getUserCertPath() {
|
private String getUserCertPath() {
|
||||||
return Keystore.getInstance().getCertificate(
|
return Keystore.getInstance().getUserCertificate(
|
||||||
getProfile().getUserCertificate());
|
getProfile().getUserCertificate());
|
||||||
}
|
}
|
||||||
|
|
||||||
private String getUserkeyPath() {
|
private String getUserkeyPath() {
|
||||||
return Keystore.getInstance().getUserkey(getProfile().getUserkey());
|
return Keystore.getInstance().getUserPrivateKey(
|
||||||
|
getProfile().getUserCertificate());
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|||||||
Reference in New Issue
Block a user