Commit 1ffe43e8 authored by Zoltan Szatmary-Ban's avatar Zoltan Szatmary-Ban Committed by Android (Google) Code Review
Browse files

Merge "Add possibility to get deleted system Certificate Aliases" into lmp-dev

parents ad0cd830 f11be684
......@@ -275,6 +275,10 @@ public final class TrustedCertificateStore {
}
public String getCertificateAlias(Certificate c) {
return getCertificateAlias(c, false);
}
public String getCertificateAlias(Certificate c, boolean includeDeletedSystem) {
if (c == null || !(c instanceof X509Certificate)) {
return null;
}
......@@ -283,7 +287,7 @@ public final class TrustedCertificateStore {
if (user.exists()) {
return PREFIX_USER + user.getName();
}
if (isDeletedSystemCertificate(x)) {
if (!includeDeletedSystem && isDeletedSystemCertificate(x)) {
return null;
}
File system = getCertificateFile(systemDir, x);
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment