Use the new keystore API in vpn service.

This commit is contained in:
Chung-yih Wang
2009-06-17 18:25:02 +08:00
parent 5c1c40d28c
commit 68fdd3d4cd

View File

@@ -50,16 +50,17 @@ class L2tpIpsecService extends VpnService<L2tpIpsecProfile> {
}
private String getCaCertPath() {
return Keystore.getInstance().getCertificate(
return Keystore.getInstance().getCaCertificate(
getProfile().getCaCertificate());
}
private String getUserCertPath() {
return Keystore.getInstance().getCertificate(
return Keystore.getInstance().getUserCertificate(
getProfile().getUserCertificate());
}
private String getUserkeyPath() {
return Keystore.getInstance().getUserkey(getProfile().getUserkey());
return Keystore.getInstance().getUserPrivateKey(
getProfile().getUserCertificate());
}
}