Second try.  r27819 was missing a null pointer check for the return value of CERT_GetCommonName, etc.
Second try.  r27819 was missing a null pointer check for
the return value of CERT_GetCommonName, etc.

Map SEC_ERROR_OCSP_BAD_HTTP_RESPONSE (-8073) to 
CERT_STATUS_UNABLE_TO_CHECK_REVOCATION. 

Change ParsePrincipal to take the decoded CERTName as 
argument. 

Use the NSS functions for getting the common name, locality 
name, state or province name, and country name because they 
escape the strings properly. 

R=dank 
BUG=none 
TEST=none (covered by existing unit tests)
Review URL: http://codereview.chromium.org/255055

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

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