Skip to content

Commit

Permalink
Browse files Browse the repository at this point in the history
8178806: Better exception logging in crypto code
Backport-of: b814cfc39d2a49951e8e1839cb2f42d9b7cf705d
  • Loading branch information
GoeLin committed Apr 20, 2023
1 parent 36c1c0a commit 14e3103
Showing 1 changed file with 5 additions and 1 deletion.
Expand Up @@ -235,7 +235,11 @@ final class JceSecurity {

// return whether this provider is properly signed and can be used by JCE
static boolean canUseProvider(Provider p) {
return getVerificationResult(p) == null;
Exception e = getVerificationResult(p);
if (debug != null && e != null) {
debug.println("Provider verification result: " + e);
}
return e == null;
}

// dummy object to represent null
Expand Down

1 comment on commit 14e3103

@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.