Changeset 78010c4 in mod_gnutls


Ignore:
Timestamp:
Feb 3, 2013, 10:38:00 AM (6 years ago)
Author:
Daniel Kahn Gillmor <dkg@…>
Branches:
msva
Parents:
e6fb68c
git-author:
Daniel Kahn Gillmor <dkg@…> (02/03/13 09:59:26)
git-committer:
Daniel Kahn Gillmor <dkg@…> (02/03/13 10:38:00)
Message:

accept the e-mail address in the cert Subject if no sAN e-mail is present

File:
1 edited

Legend:

Unmodified
Added
Removed
  • src/gnutls_hooks.c

    re6fb68c r78010c4  
    14671467       This should be the the first rfc822Name from the sAN.
    14681468
    1469    (MAYBE: leaf rfc822Name in the certificate's subject, but this is
    1470            deprecated, and i don't see the OID in x509.h; can we
    1471            support it?)
    1472 
     1469       failing that, we'll take the leaf email in the certificate's
     1470       subject; this is a deprecated use though.
    14731471     */
    14741472    email = mgs_x509_first_type_from_san(sp, GNUTLS_SAN_RFC822NAME, cert);
    1475 
     1473    if (email == NULL)
     1474        email = mgs_x509_leaf_oid_from_dn(sp, GNUTLS_OID_PKCS9_EMAIL, cert);
    14761475
    14771476    /* assemble all the parts: */
Note: See TracChangeset for help on using the changeset viewer.