When detecting client certs on OS X, ensure all certs match the server's CertificateRequest
When detecting client certs on OS X, ensure all certs match the server's CertificateRequest

Previously, if an identity preference for a server existed,
such as those created by Safari, then the client certificate
would not be checked to ensure it matched the server's
CertificateRequest. As a result, it was possible to send a
potentially invalid client certificate - and this would
be the default client certificate presented to users.

BUG=118306
TEST=See bug
R=wtc@chromium.org

Review URL: https://chromiumcodereview.appspot.com/9699058

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

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