Skip to content

Commit fabfa34

Browse files
zzambersRealCLanger
authored andcommitted
8293815: P11PSSSignature.engineUpdate should not print debug messages during normal operation
Backport-of: 2057070eb069ccee20760e47bd5e09590850d2ce
1 parent 3945ccb commit fabfa34

File tree

1 file changed

+4
-4
lines changed

1 file changed

+4
-4
lines changed

src/jdk.crypto.cryptoki/share/classes/sun/security/pkcs11/P11PSSSignature.java

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -569,10 +569,10 @@ protected void engineUpdate(byte[] b, int ofs, int len)
569569
case T_UPDATE:
570570
try {
571571
if (mode == M_SIGN) {
572-
System.out.println(this + ": Calling C_SignUpdate");
572+
if (DEBUG) System.out.println(this + ": Calling C_SignUpdate");
573573
token.p11.C_SignUpdate(session.id(), 0, b, ofs, len);
574574
} else {
575-
System.out.println(this + ": Calling C_VerfifyUpdate");
575+
if (DEBUG) System.out.println(this + ": Calling C_VerfifyUpdate");
576576
token.p11.C_VerifyUpdate(session.id(), 0, b, ofs, len);
577577
}
578578
bytesProcessed += len;
@@ -618,11 +618,11 @@ protected void engineUpdate(ByteBuffer byteBuffer) {
618618
int ofs = byteBuffer.position();
619619
try {
620620
if (mode == M_SIGN) {
621-
System.out.println(this + ": Calling C_SignUpdate");
621+
if (DEBUG) System.out.println(this + ": Calling C_SignUpdate");
622622
token.p11.C_SignUpdate
623623
(session.id(), addr + ofs, null, 0, len);
624624
} else {
625-
System.out.println(this + ": Calling C_VerifyUpdate");
625+
if (DEBUG) System.out.println(this + ": Calling C_VerifyUpdate");
626626
token.p11.C_VerifyUpdate
627627
(session.id(), addr + ofs, null, 0, len);
628628
}

0 commit comments

Comments
 (0)