[pki] check for NULL and small cosmetic changes
[pki] check for NULL and small cosmetic changes

kedazo/libssh,sebadoom/libssh,elastichosts/libssh,taikoo/libssh,Distrotech/libssh,rofl0r/libssh,bigcat26/libssh-mod,jt1/honeypot-libssh,pouete/libssh,taikoo/libssh,nviennot/libssh,robxu9/libssh,elastichosts/libssh,jt1/honeypot-libssh,mwgoldsmith/ssh,pouete/libssh,kedazo/libssh,wangshawn/libssh,taikoo/libssh,wangshawn/libssh,sebadoom/libssh,jt1/honeypot-libssh,rofl0r/libssh,nviennot/libssh,Distrotech/libssh,bigcat26/libssh-mod,kedazo/libssh,bigcat26/libssh-mod,DouglasHeriot/libssh,rofl0r/libssh,mwgoldsmith/ssh,nviennot/libssh,mwgoldsmith/ssh,bigcat26/libssh-mod,pouete/libssh,Distrotech/libssh,pouete/libssh,DouglasHeriot/libssh,sebadoom/libssh,taikoo/libssh,mwgoldsmith/libssh,mwgoldsmith/ssh,rofl0r/libssh,wangshawn/libssh,Distrotech/libssh,wangshawn/libssh,kedazo/libssh,robxu9/libssh,DouglasHeriot/libssh,DouglasHeriot/libssh,jt1/honeypot-libssh,nviennot/libssh,robxu9/libssh,mwgoldsmith/libssh,mwgoldsmith/libssh,mwgoldsmith/libssh,robxu9/libssh,sebadoom/libssh,elastichosts/libssh