Skip to content
GitLab
Projects
Groups
Snippets
Help
Loading...
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
Open sidebar
halo
external_conscrypt
Commits
1ffe43e8
Commit
1ffe43e8
authored
10 years ago
by
Zoltan Szatmary-Ban
Committed by
Android (Google) Code Review
10 years ago
Browse files
Options
Download
Plain Diff
Merge "Add possibility to get deleted system Certificate Aliases" into lmp-dev
parents
ad0cd830
f11be684
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
5 additions
and
1 deletion
+5
-1
src/platform/java/org/conscrypt/TrustedCertificateStore.java
src/platform/java/org/conscrypt/TrustedCertificateStore.java
+5
-1
No files found.
src/platform/java/org/conscrypt/TrustedCertificateStore.java
View file @
1ffe43e8
...
...
@@ -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
);
...
...
This diff is collapsed.
Click to expand it.
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
.
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment