aboutsummaryrefslogtreecommitdiffstats
path: root/src/asn1_dn.cpp
diff options
context:
space:
mode:
authorlloyd <[email protected]>2006-08-22 23:07:43 +0000
committerlloyd <[email protected]>2006-08-22 23:07:43 +0000
commit51e7c90fa717be4e08ef00496fa0bd6a84c1b641 (patch)
tree34fec31154d9303d479ebd02d6fc56154cd1d7bf /src/asn1_dn.cpp
parentc8e171dcaf8fe5750c7cbbb16d22bc5d0e3f0aa1 (diff)
Add "OrgUnit" as an additional synonym for X520.OrganizationalUnit,
though it's clear that this whole naming system is very broken.
Diffstat (limited to 'src/asn1_dn.cpp')
-rw-r--r--src/asn1_dn.cpp3
1 files changed, 2 insertions, 1 deletions
diff --git a/src/asn1_dn.cpp b/src/asn1_dn.cpp
index 4d33db38b..17bf45eff 100644
--- a/src/asn1_dn.cpp
+++ b/src/asn1_dn.cpp
@@ -156,7 +156,8 @@ std::string X509_DN::deref_info_field(const std::string& info)
if(info == "SerialNumber") return "X520.SerialNumber";
if(info == "Country") return "X520.Country";
if(info == "Organization") return "X520.Organization";
- if(info == "Organizational Unit") return "X520.OrganizationalUnit";
+ if(info == "Organizational Unit" || info == "OrgUnit")
+ return "X520.OrganizationalUnit";
if(info == "Locality") return "X520.Locality";
if(info == "State" || info == "Province") return "X520.State";
if(info == "Email") return "RFC822";