piv-tool loops when using OpenSSL-1.1
piv-tool loops when using OpenSSL-1.1

Add code to support OpenSSL initialization correctly when using OpenSSL-1.1

Tested with OpenSSL-1.1.0c and OpenSSL-1.1.0e.

 Changes to be committed:
	modified:   src/tools/piv-tool.c

mtrojnar/OpenSC,metsma/OpenSC,viktorTarasov/OpenSC-SM,mouse07410/OpenSC,hongquan/OpenSC-main,AktivCo/OpenSC,hongquan/OpenSC-main,rickyepoderi/OpenSC,metsma/OpenSC,fabled/OpenSC,viktorTarasov/OpenSC-SM,jpki/OpenSC,jpki/OpenSC,hongquan/OpenSC-main,CardContact/OpenSC,Jakuje/OpenSC,CardContact/OpenSC,philipWendland/OpenSC,hhonkanen/OpenSC,frankmorgner/OpenSC,Jakuje/OpenSC,LudovicRousseau/OpenSC,metsma/OpenSC,frankmorgner/OpenSC,fabled/OpenSC,CardContact/OpenSC,rickyepoderi/OpenSC,hhonkanen/OpenSC,frankmorgner/OpenSC,fabled/OpenSC,hhonkanen/OpenSC,dengert/OpenSC,mouse07410/OpenSC,dengert/OpenSC,AktivCo/OpenSC,AktivCo/OpenSC,fabled/OpenSC,frankmorgner/OpenSC,OpenSC/OpenSC,mtrojnar/OpenSC,LudovicRousseau/OpenSC,mouse07410/OpenSC,OpenSC/OpenSC,philipWendland/OpenSC,Jakuje/OpenSC,viktorTarasov/OpenSC-SM,LudovicRousseau/OpenSC,jpki/OpenSC,OpenSC/OpenSC,rickyepoderi/OpenSC,dengert/OpenSC,mtrojnar/OpenSC,philipWendland/OpenSC,Jakuje/OpenSC