Skip to content

Commit

Permalink
Turns out we shouldn't call it uniqueIdentifier (#3234)
Browse files Browse the repository at this point in the history
  • Loading branch information
reaperhulk authored and alex committed Nov 12, 2016
1 parent c3b8ff6 commit c7ab931
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 3 deletions.
2 changes: 1 addition & 1 deletion docs/x509/reference.rst
Original file line number Diff line number Diff line change
Expand Up @@ -2306,7 +2306,7 @@ instances. The following common OIDs are available as constants.

Corresponds to the dotted string ``"2.5.4.44"``.

.. attribute:: UNIQUE_IDENTIFIER
.. attribute:: X500_UNIQUE_IDENTIFIER

.. versionadded:: 1.6

Expand Down
4 changes: 2 additions & 2 deletions src/cryptography/x509/oid.py
Original file line number Diff line number Diff line change
Expand Up @@ -107,7 +107,7 @@ class NameOID(object):
GIVEN_NAME = ObjectIdentifier("2.5.4.42")
TITLE = ObjectIdentifier("2.5.4.12")
GENERATION_QUALIFIER = ObjectIdentifier("2.5.4.44")
UNIQUE_IDENTIFIER = ObjectIdentifier("2.5.4.45")
X500_UNIQUE_IDENTIFIER = ObjectIdentifier("2.5.4.45")
DN_QUALIFIER = ObjectIdentifier("2.5.4.46")
PSEUDONYM = ObjectIdentifier("2.5.4.65")
DOMAIN_COMPONENT = ObjectIdentifier("0.9.2342.19200300.100.1.25")
Expand Down Expand Up @@ -189,7 +189,7 @@ class CertificatePoliciesOID(object):
NameOID.GIVEN_NAME: "givenName",
NameOID.TITLE: "title",
NameOID.GENERATION_QUALIFIER: "generationQualifier",
NameOID.UNIQUE_IDENTIFIER: "uniqueIdentifier",
NameOID.X500_UNIQUE_IDENTIFIER: "x500UniqueIdentifier",
NameOID.DN_QUALIFIER: "dnQualifier",
NameOID.PSEUDONYM: "pseudonym",
NameOID.DOMAIN_COMPONENT: "domainComponent",
Expand Down

0 comments on commit c7ab931

Please sign in to comment.