asn1rt: add getv() method to ASN1Set

This commit is contained in:
mich 2019-01-23 11:49:29 +01:00
parent ae47ea49db
commit c0c4f32a70
1 changed files with 10 additions and 0 deletions

View File

@ -937,4 +937,14 @@ class ASN1Set(object):
else:
return None
return num.bit_length()
def getv(self):
"""
returns the list of individual values in the root and ext part, omitting
any values in ranges
"""
ret = self._rv[:]
if self._ev is not None:
ret.extend( self._ev )
return ret