Skip to content

Commit

Permalink
JTReg tests #32
Browse files Browse the repository at this point in the history
The jtreg tests identified an issue with ConfidentialityStrength constraints.  Fixed.
  • Loading branch information
Peter Firmstone committed Jul 8, 2020
1 parent 0431728 commit 380c6d8
Showing 1 changed file with 5 additions and 5 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -279,11 +279,11 @@ private long supported(InvocationConstraint constraint) {
return ok(doesEncryption(cipherSuite) ==
(constraint == Confidentiality.YES));
} else if (constraint instanceof ConfidentialityStrength) {
if (constraint == ConfidentialityStrength.WEAK && (doesEncryption(cipherSuite)))
return OK;
if (constraint == ConfidentialityStrength.STRONG && hasStrongKeyCipherAlgorithms(cipherSuite))
return OK;
return NOT_SUPPORTED;
return ok((constraint == ConfidentialityStrength.WEAK &&
doesEncryption(cipherSuite) &&
!hasStrongKeyCipherAlgorithms(cipherSuite))
||(constraint == ConfidentialityStrength.STRONG &&
hasStrongKeyCipherAlgorithms(cipherSuite)));
} else if (constraint instanceof ClientAuthentication) {
return ok((constraint == ClientAuthentication.YES));
} else if (constraint instanceof ClientMinPrincipalType) {
Expand Down

0 comments on commit 380c6d8

Please sign in to comment.