Map some CRL and OCSP errors to CERT_STATUS_UNABLE_TO_CHECK_REVOCATION. Otherwise they would be mapped to CERT_STATUS_INVALID by default.
Map some CRL and OCSP errors to CERT_STATUS_UNABLE_TO_CHECK_REVOCATION.
Otherwise they would be mapped to CERT_STATUS_INVALID by default.

Sort the CRL and OCSP error codes by their numeric values.

Ryan Sleevi tracked down the bug and suggested this patch.

R=rsleevi@chromium.org,rvargas@chromium.org
BUG=81005,85328
TEST=Visit https://scedv.serpro.gov.br/ and
https://servicecenter.discovernetwork.com/mrc/exec/summary.do on Mac OS X
10.5.8.  Should not get the "Invalid Server Certificate" error.

Review URL: http://codereview.chromium.org/7168006

git-svn-id: de016e52bd170d2d4f2344f9bf92d50478b649e0@89281 0039d316-1c4b-4281-b951-d872f2087c98

hgl888/chromium-crosswalk-efl,hgl888/chromium-crosswalk,anirudhSK/chromium,hgl888/chromium-crosswalk-efl,timopulkkinen/BubbleFish,Jonekee/chromium.src,jaruba/chromium.src,anirudhSK/chromium,rogerwang/chromium,chuan9/chromium-crosswalk,zcbenz/cefode-chromium,axinging/chromium-crosswalk,hgl888/chromium-crosswalk-efl,timopulkkinen/BubbleFish,rogerwang/chromium,fujunwei/chromium-crosswalk,zcbenz/cefode-chromium,patrickm/chromium.src,nacl-webkit/chrome_deps,M4sse/chromium.src,Pluto-tv/chromium-crosswalk,Jonekee/chromium.src,anirudhSK/chromium,axinging/chromium-crosswalk,hgl888/chromium-crosswalk-efl,ChromiumWebApps/chromium,hujiajie/pa-chromium,mohamed--abdel-maksoud/chromium.src,littlstar/chromium.src,hgl888/chromium-crosswalk,zcbenz/cefode-chromium,PeterWangIntel/chromium-crosswalk,junmin-zhu/chromium-rivertrail,timopulkkinen/BubbleFish,patrickm/chromium.src,axinging/chromium-crosswalk,pozdnyakov/chromium-crosswalk,markYoungH/chromium.src,fujunwei/chromium-crosswalk,patrickm/chromium.src,dednal/chromium.src,jaruba/chromium.src,pozdnyakov/chromium-crosswalk,TheTypoMaster/chromium-crosswalk,bright-sparks/chromium-spacewalk,mogoweb/chromium-crosswalk,junmin-zhu/chromium-rivertrail,dednal/chromium.src,Fireblend/chromium-crosswalk,Just-D/chromium-1,dushu1203/chromium.src,ChromiumWebApps/chromium,krieger-od/nwjs_chromium.src,hgl888/chromium-crosswalk,mohamed--abdel-maksoud/chromium.src,crosswalk-project/chromium-crosswalk-efl,jaruba/chromium.src,markYoungH/chromium.src,keishi/chromium,pozdnyakov/chromium-crosswalk,littlstar/chromium.src,hujiajie/pa-chromium,ltilve/chromium,jaruba/chromium.src,zcbenz/cefode-chromium,hujiajie/pa-chromium,anirudhSK/chromium,Chilledheart/chromium,PeterWangIntel/chromium-crosswalk,Pluto-tv/chromium-crosswalk,keishi/chromium,PeterWangIntel/chromium-crosswalk,keishi/chromium,TheTypoMaster/chromium-crosswalk,dushu1203/chromium.src,markYoungH/chromium.src,Jonekee/chromium.src,krieger-od/nwjs_chromium.src,Jonekee/chromium.src,krieger-od/nwjs_chromium.src,robclark/chromium,chuan9/chromium-crosswalk,junmin-zhu/chromium-rivertrail,markYoungH/chromium.src,jaruba/chromium.src,markYoungH/chromium.src,hgl888/chromium-crosswalk-efl,jaruba/chromium.src,timopulkkinen/BubbleFish,rogerwang/chromium,robclark/chromium,TheTypoMaster/chromium-crosswalk,Fireblend/chromium-crosswalk,robclark/chromium,jaruba/chromium.src,hgl888/chromium-crosswalk-efl,dednal/chromium.src,ChromiumWebApps/chromium,hujiajie/pa-chromium,crosswalk-project/chromium-crosswalk-efl,junmin-zhu/chromium-rivertrail,ondra-novak/chromium.src,robclark/chromium,Just-D/chromium-1,robclark/chromium,axinging/chromium-crosswalk,keishi/chromium,pozdnyakov/chromium-crosswalk,M4sse/chromium.src,littlstar/chromium.src,krieger-od/nwjs_chromium.src,rogerwang/chromium,littlstar/chromium.src,jaruba/chromium.src,hgl888/chromium-crosswalk,chuan9/chromium-crosswalk,mogoweb/chromium-crosswalk,patrickm/chromium.src,Chilledheart/chromium,M4sse/chromium.src,Just-D/chromium-1,nacl-webkit/chrome_deps,ChromiumWebApps/chromium,markYoungH/chromium.src,markYoungH/chromium.src,dednal/chromium.src,junmin-zhu/chromium-rivertrail,dushu1203/chromium.src,crosswalk-project/chromium-crosswalk-efl,rogerwang/chromium,pozdnyakov/chromium-crosswalk,M4sse/chromium.src,mogoweb/chromium-crosswalk,timopulkkinen/BubbleFish,Jonekee/chromium.src,dednal/chromium.src,bright-sparks/chromium-spacewalk,robclark/chromium,dushu1203/chromium.src,bright-sparks/chromium-spacewalk,hujiajie/pa-chromium,dushu1203/chromium.src,anirudhSK/chromium,M4sse/chromium.src,dushu1203/chromium.src,chuan9/chromium-crosswalk,Just-D/chromium-1,Pluto-tv/chromium-crosswalk,nacl-webkit/chrome_deps,anirudhSK/chromium,chuan9/chromium-crosswalk,pozdnyakov/chromium-crosswalk,hujiajie/pa-chromium,dednal/chromium.src,nacl-webkit/chrome_deps,PeterWangIntel/chromium-crosswalk,hgl888/chromium-crosswalk-efl,PeterWangIntel/chromium-crosswalk,Fireblend/chromium-crosswalk,Chilledheart/chromium,junmin-zhu/chromium-rivertrail,PeterWangIntel/chromium-crosswalk,krieger-od/nwjs_chromium.src,Pluto-tv/chromium-crosswalk,Pluto-tv/chromium-crosswalk,dednal/chromium.src,ondra-novak/chromium.src,Fireblend/chromium-crosswalk,littlstar/chromium.src,pozdnyakov/chromium-crosswalk,ChromiumWebApps/chromium,jaruba/chromium.src,rogerwang/chromium,hujiajie/pa-chromium,mohamed--abdel-maksoud/chromium.src,TheTypoMaster/chromium-crosswalk,keishi/chromium,Just-D/chromium-1,Chilledheart/chromium,krieger-od/nwjs_chromium.src,chuan9/chromium-crosswalk,hujiajie/pa-chromium,ChromiumWebApps/chromium,M4sse/chromium.src,hgl888/chromium-crosswalk,jaruba/chromium.src,bright-sparks/chromium-spacewalk,junmin-zhu/chromium-rivertrail,axinging/chromium-crosswalk,Jonekee/chromium.src,bright-sparks/chromium-spacewalk,mogoweb/chromium-crosswalk,fujunwei/chromium-crosswalk,pozdnyakov/chromium-crosswalk,hujiajie/pa-chromium,dednal/chromium.src,M4sse/chromium.src,TheTypoMaster/chromium-crosswalk,nacl-webkit/chrome_deps,hgl888/chromium-crosswalk,Pluto-tv/chromium-crosswalk,anirudhSK/chromium,M4sse/chromium.src,nacl-webkit/chrome_deps,fujunwei/chromium-crosswalk,Fireblend/chromium-crosswalk,crosswalk-project/chromium-crosswalk-efl,pozdnyakov/chromium-crosswalk,Chilledheart/chromium,ltilve/chromium,mohamed--abdel-maksoud/chromium.src,ondra-novak/chromium.src,timopulkkinen/BubbleFish,ondra-novak/chromium.src,ondra-novak/chromium.src,fujunwei/chromium-crosswalk,nacl-webkit/chrome_deps,rogerwang/chromium,dushu1203/chromium.src,anirudhSK/chromium,M4sse/chromium.src,mohamed--abdel-maksoud/chromium.src,hujiajie/pa-chromium,Just-D/chromium-1,ltilve/chromium,dednal/chromium.src,Chilledheart/chromium,mogoweb/chromium-crosswalk,Pluto-tv/chromium-crosswalk,krieger-od/nwjs_chromium.src,markYoungH/chromium.src,fujunwei/chromium-crosswalk,nacl-webkit/chrome_deps,hgl888/chromium-crosswalk,junmin-zhu/chromium-rivertrail,zcbenz/cefode-chromium,ChromiumWebApps/chromium,timopulkkinen/BubbleFish,dushu1203/chromium.src,fujunwei/chromium-crosswalk,Jonekee/chromium.src,TheTypoMaster/chromium-crosswalk,Pluto-tv/chromium-crosswalk,hgl888/chromium-crosswalk,patrickm/chromium.src,crosswalk-project/chromium-crosswalk-efl,Fireblend/chromium-crosswalk,junmin-zhu/chromium-rivertrail,bright-sparks/chromium-spacewalk,anirudhSK/chromium,nacl-webkit/chrome_deps,markYoungH/chromium.src,mohamed--abdel-maksoud/chromium.src,keishi/chromium,Chilledheart/chromium,robclark/chromium,robclark/chromium,chuan9/chromium-crosswalk,patrickm/chromium.src,bright-sparks/chromium-spacewalk,zcbenz/cefode-chromium,rogerwang/chromium,hgl888/chromium-crosswalk,robclark/chromium,ChromiumWebApps/chromium,pozdnyakov/chromium-crosswalk,nacl-webkit/chrome_deps,zcbenz/cefode-chromium,Jonekee/chromium.src,markYoungH/chromium.src,patrickm/chromium.src,keishi/chromium,dushu1203/chromium.src,ondra-novak/chromium.src,timopulkkinen/BubbleFish,axinging/chromium-crosswalk,ltilve/chromium,PeterWangIntel/chromium-crosswalk,nacl-webkit/chrome_deps,zcbenz/cefode-chromium,krieger-od/nwjs_chromium.src,hgl888/chromium-crosswalk-efl,hujiajie/pa-chromium,patrickm/chromium.src,mohamed--abdel-maksoud/chromium.src,timopulkkinen/BubbleFish,jaruba/chromium.src,Jonekee/chromium.src,robclark/chromium,M4sse/chromium.src,ltilve/chromium,krieger-od/nwjs_chromium.src,ltilve/chromium,littlstar/chromium.src,Just-D/chromium-1,ondra-novak/chromium.src,mohamed--abdel-maksoud/chromium.src,anirudhSK/chromium,ChromiumWebApps/chromium,zcbenz/cefode-chromium,bright-sparks/chromium-spacewalk,mogoweb/chromium-crosswalk,Chilledheart/chromium,Fireblend/chromium-crosswalk,markYoungH/chromium.src,dednal/chromium.src,dednal/chromium.src,zcbenz/cefode-chromium,krieger-od/nwjs_chromium.src,Pluto-tv/chromium-crosswalk,axinging/chromium-crosswalk,ondra-novak/chromium.src,Jonekee/chromium.src,ltilve/chromium,chuan9/chromium-crosswalk,hgl888/chromium-crosswalk-efl,junmin-zhu/chromium-rivertrail,ChromiumWebApps/chromium,ltilve/chromium,dushu1203/chromium.src,mogoweb/chromium-crosswalk,Chilledheart/chromium,anirudhSK/chromium,rogerwang/chromium,ltilve/chromium,crosswalk-project/chromium-crosswalk-efl,axinging/chromium-crosswalk,Fireblend/chromium-crosswalk,mogoweb/chromium-crosswalk,rogerwang/chromium,keishi/chromium,timopulkkinen/BubbleFish,Fireblend/chromium-crosswalk,mohamed--abdel-maksoud/chromium.src,krieger-od/nwjs_chromium.src,axinging/chromium-crosswalk,ChromiumWebApps/chromium,keishi/chromium,fujunwei/chromium-crosswalk,junmin-zhu/chromium-rivertrail,hgl888/chromium-crosswalk-efl,dushu1203/chromium.src,ondra-novak/chromium.src,chuan9/chromium-crosswalk,axinging/chromium-crosswalk,fujunwei/chromium-crosswalk,mohamed--abdel-maksoud/chromium.src,littlstar/chromium.src,littlstar/chromium.src,M4sse/chromium.src,crosswalk-project/chromium-crosswalk-efl,keishi/chromium,anirudhSK/chromium,Just-D/chromium-1,patrickm/chromium.src,mohamed--abdel-maksoud/chromium.src,bright-sparks/chromium-spacewalk,PeterWangIntel/chromium-crosswalk,timopulkkinen/BubbleFish,keishi/chromium,ChromiumWebApps/chromium,mogoweb/chromium-crosswalk,axinging/chromium-crosswalk,Jonekee/chromium.src,crosswalk-project/chromium-crosswalk-efl,Just-D/chromium-1,TheTypoMaster/chromium-crosswalk,PeterWangIntel/chromium-crosswalk,mogoweb/chromium-crosswalk,crosswalk-project/chromium-crosswalk-efl,TheTypoMaster/chromium-crosswalk,TheTypoMaster/chromium-crosswalk,pozdnyakov/chromium-crosswalk,zcbenz/cefode-chromium