Is it possible to have an option (say, "--display-no-prompt" or "-nd" for short) where pkcs11-tool does NOT display any kind of user prompt, like "Please enter User PIN:"?
The reason I am asking this is because if I want to pipe the output of pkcs11-tool and rely on stdout the above prompt will mess things up considerably! In other words, when I execute this: /bin/plymouth ask-for-password --prompt "Enter your PIN" --command "/usr/bin/pkcs11-tool -lry data --slot 2 --application-id 12" | /sbin/cryptsetup luksOpen /dev/xxx --key-file=- I will always fail since data from the object displayed will be mixed with the blasted user prompt and there is currently no way to disable it? Is this doable? I looked at pkcs11-tool.c and I could see that the above prompt is in the code just once, but do not know if I remove it if anything else depends on it... P.S. There is a grammar error in the --slot help message - "Specify number of the slot to use" should be "Specify slot number to use" _______________________________________________ opensc-devel mailing list opensc-devel@lists.opensc-project.org http://www.opensc-project.org/mailman/listinfo/opensc-devel