Support pseudonym RDN
authorAndreas Steffen <andreas.steffen@strongswan.org>
Wed, 27 Jan 2016 10:38:18 +0000 (11:38 +0100)
committerAndreas Steffen <andreas.steffen@strongswan.org>
Wed, 27 Jan 2016 10:38:18 +0000 (11:38 +0100)
src/libstrongswan/asn1/oid.txt
src/libstrongswan/utils/identification.c
src/libstrongswan/utils/identification.h

index 64dedcb..b5ec15f 100644 (file)
@@ -34,6 +34,7 @@
     0x2B                     "I"                                               OID_INITIALS
     0x2D                     "ID"                                              OID_UNIQUE_IDENTIFIER
     0x2E                     "dnQualifier"                             OID_DN_QUALIFIER
+    0x41                     "pseudonym"                               OID_PSEUDONYM
     0x48                     "role"                                            OID_ROLE
   0x1D                       "id-ce"
     0x09                     "subjectDirectoryAttrs"
index da23d14..1b0d055 100644 (file)
@@ -79,6 +79,7 @@ static const x501rdn_t x501rdns[] = {
        {"G",                                   OID_GIVEN_NAME,                         ASN1_PRINTABLESTRING},
        {"I",                                   OID_INITIALS,                           ASN1_PRINTABLESTRING},
        {"dnQualifier",                 OID_DN_QUALIFIER,                       ASN1_PRINTABLESTRING},
+       {"pseudonym",                   OID_PSEUDONYM,                          ASN1_PRINTABLESTRING},
        {"ID",                                  OID_UNIQUE_IDENTIFIER,          ASN1_PRINTABLESTRING},
        {"EN",                                  OID_EMPLOYEE_NUMBER,            ASN1_PRINTABLESTRING},
        {"employeeNumber",              OID_EMPLOYEE_NUMBER,            ASN1_PRINTABLESTRING},
@@ -218,6 +219,7 @@ METHOD(enumerator_t, rdn_part_enumerate, bool,
                {OID_GIVEN_NAME,                ID_PART_RDN_G},
                {OID_INITIALS,                  ID_PART_RDN_I},
                {OID_DN_QUALIFIER,              ID_PART_RDN_DNQ},
+               {OID_PSEUDONYM,                 ID_PART_RDN_PN},
                {OID_UNIQUE_IDENTIFIER, ID_PART_RDN_ID},
                {OID_EMAIL_ADDRESS,             ID_PART_RDN_E},
                {OID_EMPLOYEE_NUMBER,   ID_PART_RDN_EN},
index 5f27ba1..51d1324 100644 (file)
@@ -168,6 +168,8 @@ enum id_part_t {
        ID_PART_RDN_I,
        /** DN Qualifier RDN of a DN */
        ID_PART_RDN_DNQ,
+       /** Pseudonym RDN of a DN */
+       ID_PART_RDN_PN,
        /** UniqueIdentifier RDN of a DN */
        ID_PART_RDN_ID,
        /** Locality RDN of a DN */