Skip to content

Commit

Permalink
fix to broken Enumerated type
Browse files Browse the repository at this point in the history
  • Loading branch information
etingof committed Feb 6, 2017
1 parent ec9ad9e commit 4e46f52
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 1 deletion.
1 change: 1 addition & 0 deletions CHANGES.rst
Original file line number Diff line number Diff line change
Expand Up @@ -6,6 +6,7 @@ Revision 0.2.2, released XX-XX-2017
processed indefinite length serialization.
- FIX TO A SECURITY WEAKNESS: canonical decoders (CER/DER) may have successfully
consumed non-canonical variations of (otherwise valid) serialization.
- Broken Enumeratated subtyping fixed.

Revision 0.2.1, released 05-02-2017
-----------------------------------
Expand Down
2 changes: 1 addition & 1 deletion pyasn1/type/univ.py
Original file line number Diff line number Diff line change
Expand Up @@ -1910,7 +1910,7 @@ def subtype(self, value=noValue, implicitTag=None, explicitTag=None,
new instance of ENUMERATED type/value
"""
return Integer.subtype(self, value, implicitTag, explicitTag, namedValues)
return Integer.subtype(self, value, implicitTag, explicitTag, subtypeSpec, namedValues)


# "Structured" ASN.1 types
Expand Down

0 comments on commit 4e46f52

Please sign in to comment.