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
libcore
Commits
9abfeaca
Commit
9abfeaca
authored
13 years ago
by
Brian Carlstrom
Committed by
Android (Google) Code Review
13 years ago
Browse files
Options
Download
Plain Diff
Merge "Fix backwards Engine cache test" into ics-mr0
parents
bea6b3d2
17b6b6b0
Changes
3
Hide whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
7 additions
and
2 deletions
+7
-2
luni/src/main/java/org/apache/harmony/security/fortress/Engine.java
...ain/java/org/apache/harmony/security/fortress/Engine.java
+1
-1
luni/src/test/java/tests/targets/security/SignatureTestMD2withRSA.java
.../java/tests/targets/security/SignatureTestMD2withRSA.java
+4
-1
luni/src/test/java/tests/targets/security/cert/CertificateTest.java
...est/java/tests/targets/security/cert/CertificateTest.java
+2
-0
No files found.
luni/src/main/java/org/apache/harmony/security/fortress/Engine.java
View file @
9abfeaca
...
...
@@ -139,7 +139,7 @@ public class Engine {
ServiceCacheEntry
cacheEntry
=
this
.
serviceCache
;
if
(
cacheEntry
!=
null
&&
cacheEntry
.
algorithm
.
equalsIgnoreCase
(
algorithm
)
&&
Services
.
refreshNumber
!
=
cacheEntry
.
refreshNumber
)
{
&&
Services
.
refreshNumber
=
=
cacheEntry
.
refreshNumber
)
{
service
=
cacheEntry
.
service
;
}
else
{
if
(
Services
.
isEmpty
())
{
...
...
This diff is collapsed.
Click to expand it.
luni/src/test/java/tests/targets/security/SignatureTestMD2withRSA.java
View file @
9abfeaca
...
...
@@ -94,7 +94,8 @@ public class SignatureTestMD2withRSA extends TestCase {
@AndroidOnly
(
"Android allows usage of MD2withRSA in third party providers"
)
public
void
testSignature2
()
throws
Exception
{
Security
.
addProvider
(
new
MyProvider
());
Provider
provider
=
new
MyProvider
();
Security
.
addProvider
(
provider
);
Signature
signature
=
Signature
.
getInstance
(
"MD2withRSA"
);
signature
=
Signature
.
getInstance
(
"MD2WithRSA"
);
...
...
@@ -104,6 +105,8 @@ public class SignatureTestMD2withRSA extends TestCase {
signature
=
Signature
.
getInstance
(
"MD2WITHRSAENCRYPTION"
);
signature
=
Signature
.
getInstance
(
"MD2/RSA"
);
signature
=
Signature
.
getInstance
(
"1.2.840.113549.1.1.2"
);
Security
.
removeProvider
(
provider
.
getName
());
}
public
final
class
MyProvider
extends
Provider
{
...
...
This diff is collapsed.
Click to expand it.
luni/src/test/java/tests/targets/security/cert/CertificateTest.java
View file @
9abfeaca
...
...
@@ -616,6 +616,8 @@ public class CertificateTest extends TestCase {
fail
(
"MD2 should not be allowed"
);
}
catch
(
NoSuchAlgorithmException
e
)
{
// expected
}
catch
(
Throwable
e
)
{
throw
new
AssertionError
(
provider
.
getName
(),
e
);
}
}
}
...
...
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