cardmod: adopt classic form for container's GUID ...
cardmod: adopt classic form for container's GUID ...

also:
- debug function to dump the objects;
- function to get pin by role, used in CardAuthenticateEx();
- CALG_* flags are not translated into the SC_ALGORITHM_RSA_HASH_* flags
  (http://www.opensc-project.org/pipermail/opensc-devel/2011-March/016130.html);
- minor changes to the procedure to find the keys.

tested with 'ruToken ECP' and 'IAS/ECC' from Sagem



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

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