• rsleevi@chromium.org's avatar
    Parse individual X.509 name components on Windows, rather than parsing the stringified form · 016ab203
    rsleevi@chromium.org authored
    On Windows, rather than converting the entire certificate 
    name to a string and attempting to parse out the components 
    and values, iterate through the relativeDistinguishedName 
    and AttributeTypeAndValue pairs to extract each name 
    component.
    
    This is to ensure that:
    1) When multiple AVAs are present in an RDN, ALL AVAs are
       parsed.
    2) When converting an AVA to a string, no extra escaping is
       applied.
    
    This also fixes domainComponent parsing on OS X, so that
    unittests with a domainComponent can pass.
    
    BUG=101009, 102839
    TEST=net_unittests:X509CertificateTest has two new regression
    tests. Additionally, sample a variety of SSL sites and ensure no
    regressions, paying attention to internationalized domains.
    
    
    Review URL: http://codereview.chromium.org/8608003
    
    git-svn-id: svn://svn.chromium.org/chrome/trunk/src@112650 0039d316-1c4b-4281-b951-d872f2087c98
    016ab203
multivalue_rdn.pem 3 KB