netops: catch the server not sending a certificate
netops: catch the server not sending a certificate

It's possible for an encrypted connection not have a certificate. In
this case, SSL_get_verify_result() will return OK because no error
happened (as it never even tried to validate anything).

SSL_get_peer_certificate() will return NULL in this case so we need to
catch that. On the upside, the current code would segfault in this
situation instead of letting it through as a valid cert.

stewid/libgit2,linquize/libgit2,yongthecoder/libgit2,joshtriplett/libgit2,jeffhostetler/public_libgit2,KTXSoftware/libgit2,saurabhsuniljain/libgit2,MrHacky/libgit2,kissthink/libgit2,spraints/libgit2,since2014/libgit2,t0xicCode/libgit2,linquize/libgit2,joshtriplett/libgit2,amyvmiwei/libgit2,kenprice/libgit2,chiayolin/libgit2,oaastest/libgit2,whoisj/libgit2,swisspol/DEMO-libgit2,linquize/libgit2,yongthecoder/libgit2,mcanthony/libgit2,magnus98/TEST,sygool/libgit2,claudelee/libgit2,jflesch/libgit2-mariadb,falqas/libgit2,JIghtuse/libgit2,rcorre/libgit2,t0xicCode/libgit2,rcorre/libgit2,kenprice/libgit2,Snazz2001/libgit2,claudelee/libgit2,dleehr/libgit2,mcanthony/libgit2,since2014/libgit2,jeffhostetler/public_libgit2,spraints/libgit2,amyvmiwei/libgit2,mhp/libgit2,whoisj/libgit2,maxiaoqian/libgit2,leoyanggit/libgit2,since2014/libgit2,iankronquist/libgit2,falqas/libgit2,jeffhostetler/public_libgit2,iankronquist/libgit2,KTXSoftware/libgit2,claudelee/libgit2,rcorre/libgit2,maxiaoqian/libgit2,KTXSoftware/libgit2,since2014/libgit2,Tousiph/Demo1,whoisj/libgit2,yosefhackmon/libgit2,MrHacky/libgit2,oaastest/libgit2,stewid/libgit2,chiayolin/libgit2,chiayolin/libgit2,whoisj/libgit2,t0xicCode/libgit2,leoyanggit/libgit2,swisspol/DEMO-libgit2,dleehr/libgit2,saurabhsuniljain/libgit2,magnus98/TEST,stewid/libgit2,sygool/libgit2,ardumont/libgit2,linquize/libgit2,joshtriplett/libgit2,sygool/libgit2,leoyanggit/libgit2,JIghtuse/libgit2,yongthecoder/libgit2,swisspol/DEMO-libgit2,swisspol/DEMO-libgit2,Corillian/libgit2,falqas/libgit2,mcanthony/libgit2,raybrad/libit2,t0xicCode/libgit2,amyvmiwei/libgit2,mhp/libgit2,amyvmiwei/libgit2,jflesch/libgit2-mariadb,claudelee/libgit2,kissthink/libgit2,yosefhackmon/libgit2,joshtriplett/libgit2,nokiddin/libgit2,nokiddin/libgit2,mingyaaaa/libgit2,leoyanggit/libgit2,nokiddin/libgit2,yongthecoder/libgit2,kenprice/libgit2,chiayolin/libgit2,mcanthony/libgit2,sim0629/libgit2,MrHacky/libgit2,kissthink/libgit2,skabel/manguse,kenprice/libgit2,Corillian/libgit2,magnus98/TEST,kissthink/libgit2,kenprice/libgit2,since2014/libgit2,claudelee/libgit2,dleehr/libgit2,jflesch/libgit2-mariadb,stewid/libgit2,sygool/libgit2,t0xicCode/libgit2,falqas/libgit2,amyvmiwei/libgit2,leoyanggit/libgit2,sim0629/libgit2,skabel/manguse,kenprice/libgit2,Tousiph/Demo1,mingyaaaa/libgit2,rcorre/libgit2,iankronquist/libgit2,stewid/libgit2,joshtriplett/libgit2,spraints/libgit2,spraints/libgit2,sygool/libgit2,maxiaoqian/libgit2,Snazz2001/libgit2,Tousiph/Demo1,yongthecoder/libgit2,skabel/manguse,swisspol/DEMO-libgit2,linquize/libgit2,nokiddin/libgit2,dleehr/libgit2,ardumont/libgit2,sygool/libgit2,oaastest/libgit2,yosefhackmon/libgit2,yosefhackmon/libgit2,Snazz2001/libgit2,MrHacky/libgit2,skabel/manguse,KTXSoftware/libgit2,Corillian/libgit2,mingyaaaa/libgit2,skabel/manguse,jeffhostetler/public_libgit2,kissthink/libgit2,jflesch/libgit2-mariadb,mingyaaaa/libgit2,maxiaoqian/libgit2,Tousiph/Demo1,yongthecoder/libgit2,mhp/libgit2,jflesch/libgit2-mariadb,falqas/libgit2,maxiaoqian/libgit2,swisspol/DEMO-libgit2,Snazz2001/libgit2,mrksrm/Mingijura,mrksrm/Mingijura,Snazz2001/libgit2,iankronquist/libgit2,maxiaoqian/libgit2,jflesch/libgit2-mariadb,JIghtuse/libgit2,yosefhackmon/libgit2,since2014/libgit2,sim0629/libgit2,t0xicCode/libgit2,mhp/libgit2,rcorre/libgit2,MrHacky/libgit2,saurabhsuniljain/libgit2,ardumont/libgit2,iankronquist/libgit2,Corillian/libgit2,Snazz2001/libgit2,spraints/libgit2,mhp/libgit2,mrksrm/Mingijura,whoisj/libgit2,mrksrm/Mingijura,leoyanggit/libgit2,KTXSoftware/libgit2,saurabhsuniljain/libgit2,mhp/libgit2,raybrad/libit2,magnus98/TEST,kissthink/libgit2,saurabhsuniljain/libgit2,mingyaaaa/libgit2,mingyaaaa/libgit2,mcanthony/libgit2,rcorre/libgit2,skabel/manguse,dleehr/libgit2,sim0629/libgit2,jeffhostetler/public_libgit2,mrksrm/Mingijura,JIghtuse/libgit2,Tousiph/Demo1,magnus98/TEST,raybrad/libit2,oaastest/libgit2,whoisj/libgit2,mrksrm/Mingijura,oaastest/libgit2,Tousiph/Demo1,Corillian/libgit2,joshtriplett/libgit2,nokiddin/libgit2,yosefhackmon/libgit2,jeffhostetler/public_libgit2,dleehr/libgit2,nokiddin/libgit2,iankronquist/libgit2,MrHacky/libgit2,falqas/libgit2,chiayolin/libgit2,ardumont/libgit2,amyvmiwei/libgit2,ardumont/libgit2,JIghtuse/libgit2,raybrad/libit2,raybrad/libit2,magnus98/TEST,stewid/libgit2,sim0629/libgit2,linquize/libgit2,oaastest/libgit2,KTXSoftware/libgit2,spraints/libgit2,claudelee/libgit2,mcanthony/libgit2,sim0629/libgit2,chiayolin/libgit2,ardumont/libgit2,Corillian/libgit2,JIghtuse/libgit2,saurabhsuniljain/libgit2