OpenPGP: re-factor gpg_new_blob()
OpenPGP: re-factor gpg_new_blob()

* get file as parameter & fail if it is NULL
* allow parent to be NULL
* do not rely on DO info to be passed as parameter,
  search it yourself using the global DO info list for the card.
* infer file type automatically from DO info matching the file ID.

Signed-off-by: Peter Marschall <4b8373d016f277527198385ba72fda0feb5da015@adpm.de>

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