Hello,

On Tue, 2010-10-26 at 01:05 +0100, Mr Dash Four wrote:
> 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=-

See attachment and use exactly the same quotation marks.

./x.sh --command '/usr/bin/pkcs11-tool -lp $PIN -ry data --slot 2 
--application-id 12'


> 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
> [email protected]
> http://www.opensc-project.org/mailman/listinfo/opensc-devel

Attachment: x.sh
Description: application/shellscript

_______________________________________________
opensc-devel mailing list
[email protected]
http://www.opensc-project.org/mailman/listinfo/opensc-devel

Reply via email to