Uploaded image for project: 'JDK'
  1. JDK
  2. JDK-8293815

P11PSSSignature.engineUpdate should not print debug messages during normal operation

XMLWordPrintable

        During testing I have found messages such as this are printed to stdout:
        sun.security.pkcs11.P11PSSSignature@6e1567f1: Calling C_SignUpdate

        Problem:
        Problem is in P11PSSSignature.engineUpdate method [1], which unconditionally prints some debug information to stdout. Other prints in that class are conditional based on value of DEBUG field.

        Solution:
        I have made fix to make these conditional based on value of DEBUG field. As it only affects debug messages, there is no test added.

        Testing:
        Passed jdk_security locally with my fix.

        [1] https://github.com/openjdk/jdk/blob/211fab8d361822bbd1a34a88626853bf4a029af5/src/jdk.crypto.cryptoki/share/classes/sun/security/pkcs11/P11PSSSignature.java#L578

              valeriep Valerie Peng
              zzambers Zdenek Zambersky
              Votes:
              0 Vote for this issue
              Watchers:
              3 Start watching this issue

                Created:
                Updated:
                Resolved: