Cleanup and add more error checks to privatekey_from_file().
Cleanup and add more error checks to privatekey_from_file().


git-svn-id: b1dee0d48e635e16c3b356ce77271b225d4db9f7@564 7dcaeef0-15fb-0310-b436-a5af3365683c

DouglasHeriot/libssh,miloj/libssh-v0.5,wangshawn/libssh,kedazo/libssh,mwgoldsmith/libssh,kedazo/libssh,mwgoldsmith/ssh,robxu9/libssh,taikoo/libssh,DouglasHeriot/libssh,rofl0r/libssh,substack/libssh,robxu9/libssh,miloj/libssh-v0.5,nviennot/libssh,DouglasHeriot/libssh,taikoo/libssh,bigcat26/libssh-mod,nviennot/libssh,robxu9/libssh,jt1/honeypot-libssh,Distrotech/libssh,jahrome/libssh,nviennot/libssh,mwgoldsmith/ssh,mwgoldsmith/libssh,jahrome/libssh,DouglasHeriot/libssh,Distrotech/libssh,rofl0r/libssh,bigcat26/libssh-mod,elastichosts/libssh,wangshawn/libssh,rofl0r/libssh,pouete/libssh,elastichosts/libssh,Distrotech/libssh,bigcat26/libssh-mod,jt1/honeypot-libssh,mwgoldsmith/ssh,sebadoom/libssh,elastichosts/libssh,substack/libssh,substack/libssh,mwgoldsmith/ssh,miloj/libssh-v0.5,wangshawn/libssh,kedazo/libssh,robxu9/libssh,substack/libssh,mwgoldsmith/libssh,jahrome/libssh,Distrotech/libssh,jt1/honeypot-libssh,miloj/libssh-v0.5,sebadoom/libssh,wangshawn/libssh,pouete/libssh,pouete/libssh,taikoo/libssh,rofl0r/libssh,mwgoldsmith/libssh,nviennot/libssh,kedazo/libssh,jt1/honeypot-libssh,pouete/libssh,taikoo/libssh,sebadoom/libssh,sebadoom/libssh,bigcat26/libssh-mod,jahrome/libssh