Skip to content

Commit

Permalink
8326942: [17u] Backout "8325254: CKA_TOKEN private and secret keys ar…
Browse files Browse the repository at this point in the history
…e not necessarily sensitive"

Reviewed-by: lucy
  • Loading branch information
GoeLin committed Feb 28, 2024
1 parent 8c3dcf3 commit 87e7c6e
Showing 1 changed file with 2 additions and 3 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -395,9 +395,8 @@ static PrivateKey privateKey(Session session, long keyID, String algorithm,
new CK_ATTRIBUTE(CKA_EXTRACTABLE),
});

boolean keySensitive =
(attrs[0].getBoolean() && P11Util.isNSS(session.token)) ||
attrs[1].getBoolean() || !attrs[2].getBoolean();
boolean keySensitive = (attrs[0].getBoolean() ||
attrs[1].getBoolean() || !attrs[2].getBoolean());

switch (algorithm) {
case "RSA":
Expand Down

1 comment on commit 87e7c6e

@openjdk-notifier
Copy link

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Please sign in to comment.