pkcs15-tool: check for remaining PIN tries before changing a PIN.
pkcs15-tool: check for remaining PIN tries before changing a PIN.

If the card supports it, changing a blocked PIN will result in an error before PIN entry, not when the card re-states that the PIN is already blocked.

git-svn-id: 444ed946b9c2220da791e84c3dd156a05f92db99@5123 c6295689-39f2-0310-b995-f0e70906c6a9

AktivCo/OpenSC,carlhoerberg/OpenSC,velter/OpenSC,metsma/OpenSC,fabled/OpenSC,dirkx/OpenSC,ieugen/OpenSC,UIKit0/OpenSC,ieugen/OpenSC,ieugen/OpenSC,carlhoerberg/OpenSC,LudovicRousseau/OpenSC,gentoo/OpenSC,velter/OpenSC,martinpaljak/OpenSC,0x7678/myOpenSC,AktivCo/OpenSC,tidatida/OpenSC,financeX/OpenSC,mouse07410/OpenSC,hhonkanen/OpenSC,kasparsd/opensc-latvia-id,gentoo/OpenSC,CardContact/OpenSC,tidatida/OpenSC,gentoo/OpenSC,nmav/OpenSC,philipWendland/OpenSC,carlhoerberg/OpenSC,dengert/OpenSC,nmav/OpenSC,gemini/OpenSC,financeX/OpenSC,marschap/pkg-opensc,Jakuje/OpenSC,jpki/OpenSC,kasparsd/opensc-latvia-id,fabled/OpenSC,hongquan/OpenSC-main,metsma/OpenSC,mtrojnar/OpenSC,frankmorgner/OpenSC,0x7678/OpenSC,UIKit0/OpenSC,viktorTarasov/OpenSC-SM,philipWendland/OpenSC,velter/OpenSC,rickyepoderi/OpenSC,CardContact/OpenSC,ieugen/OpenSC,l1k/OpenSC,marschap/pkg-opensc,adminmt/OpenSC,hhonkanen/OpenSC,0x7678/myOpenSC,frankmorgner/OpenSC,rickyepoderi/OpenSC,rickyepoderi/OpenSC,l1k/OpenSC,Jakuje/OpenSC,aobaid/OpenSC,velter/OpenSC,dirkx/OpenSC,hongquan/OpenSC-main,dirkx/OpenSC.tokend,hhonkanen/OpenSC,dirkx/OpenSC,hongquan/OpenSC-main,UIKit0/OpenSC,fabled/OpenSC,dirkx/OpenSC,carlhoerberg/OpenSC,viktorTarasov/OpenSC-SM,tidatida/OpenSC,dirkx/OpenSC,gemini/OpenSC,0x7678/OpenSC,financeX/OpenSC,dirkx/OpenSC.tokend,OpenSC/OpenSC,kasparsd/opensc-latvia-id,dirkx/OpenSC.tokend,dirkx/OpenSC.tokend,germanblanco/OpenSC,gemini/OpenSC,metsma/OpenSC,philipWendland/OpenSC,carlhoerberg/OpenSC,adminmt/OpenSC,nmav/OpenSC,mouse07410/OpenSC,Jakuje/OpenSC,adminmt/OpenSC,martinpaljak/OpenSC,LudovicRousseau/OpenSC,mouse07410/OpenSC,tidatida/OpenSC,0x7678/myOpenSC,l1k/OpenSC,dirkx/OpenSC.tokend,dirkx/OpenSC.tokend,AktivCo/OpenSC,OpenSC/OpenSC,dengert/OpenSC,0x7678/OpenSC,ieugen/OpenSC,aobaid/OpenSC,LudovicRousseau/OpenSC,UIKit0/OpenSC,germanblanco/OpenSC,marschap/pkg-opensc,gentoo/OpenSC,frankmorgner/OpenSC,OpenSC/OpenSC,adminmt/OpenSC,dengert/OpenSC,jpki/OpenSC,0x7678/myOpenSC,marschap/pkg-opensc,CardContact/OpenSC,aobaid/OpenSC,jpki/OpenSC,frankmorgner/OpenSC,financeX/OpenSC,aobaid/OpenSC,0x7678/OpenSC,mtrojnar/OpenSC,germanblanco/OpenSC,kasparsd/opensc-latvia-id,martinpaljak/OpenSC,0x7678/myOpenSC,mtrojnar/OpenSC,fabled/OpenSC,Jakuje/OpenSC,viktorTarasov/OpenSC-SM,gentoo/OpenSC,financeX/OpenSC