On 13/06/2019 12:03, Aleksey Shipilev wrote:
I see p11_digest.c seems to include jlong.h already, also pkcs11wrapper.h is including jni_util.h. This suggests it must be making use of some of the macros but not any of the functions. I think there are many opportunities to clean up this code.Maybe? That header is from another library/module, though: libjava, and we are at libj2pkcs11. I am a bit worried about introducing this dependency. It is probably fine to #include <jlong_md.h>?
-Alan