Skip to content

Commit

Permalink
8293815: P11PSSSignature.engineUpdate should not print debug messages…
Browse files Browse the repository at this point in the history
… during normal operation

Backport-of: 80615a6f39bf8929908804ce3f9f5c6d4b3f2864
  • Loading branch information
zzambers committed Mar 14, 2023
1 parent 7c5d77c commit a7fb08c
Showing 1 changed file with 4 additions and 4 deletions.
Expand Up @@ -501,10 +501,10 @@ protected void engineUpdate(byte[] b, int ofs, int len)
case T_UPDATE:
try {
if (mode == M_SIGN) {
System.out.println(this + ": Calling C_SignUpdate");
if (DEBUG) System.out.println(this + ": Calling C_SignUpdate");
token.p11.C_SignUpdate(session.id(), 0, b, ofs, len);
} else {
System.out.println(this + ": Calling C_VerfifyUpdate");
if (DEBUG) System.out.println(this + ": Calling C_VerfifyUpdate");
token.p11.C_VerifyUpdate(session.id(), 0, b, ofs, len);
}
bytesProcessed += len;
Expand Down Expand Up @@ -550,11 +550,11 @@ protected void engineUpdate(ByteBuffer byteBuffer) {
int ofs = byteBuffer.position();
try {
if (mode == M_SIGN) {
System.out.println(this + ": Calling C_SignUpdate");
if (DEBUG) System.out.println(this + ": Calling C_SignUpdate");
token.p11.C_SignUpdate
(session.id(), addr + ofs, null, 0, len);
} else {
System.out.println(this + ": Calling C_VerifyUpdate");
if (DEBUG) System.out.println(this + ": Calling C_VerifyUpdate");
token.p11.C_VerifyUpdate
(session.id(), addr + ofs, null, 0, len);
}
Expand Down

1 comment on commit a7fb08c

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