Skip to content

Commit

Permalink
Fix duplicate definition of RecipientKeyIdentifier
Browse files Browse the repository at this point in the history
  • Loading branch information
wbond committed Sep 2, 2023
1 parent 896166d commit 8a0eced
Showing 1 changed file with 4 additions and 8 deletions.
12 changes: 4 additions & 8 deletions asn1crypto/cms.py
Original file line number Diff line number Diff line change
Expand Up @@ -729,6 +729,10 @@ class RecipientKeyIdentifier(Sequence):
('other', OtherKeyAttribute, {'optional': True}),
]

def _setup(self):
super(RecipientKeyIdentifier, self)._setup()
self._field_map['subjectKeyIdentifier'] = self._field_map['subject_key_identifier']


class KeyAgreementRecipientIdentifier(Choice):
_alternatives = [
Expand Down Expand Up @@ -929,14 +933,6 @@ def decompressed(self):
return self._decompressed


class RecipientKeyIdentifier(Sequence):
_fields = [
('subjectKeyIdentifier', OctetString),
('date', GeneralizedTime, {'optional': True}),
('other', OtherKeyAttribute, {'optional': True}),
]


class SMIMEEncryptionKeyPreference(Choice):
_alternatives = [
('issuer_and_serial_number', IssuerAndSerialNumber, {'implicit': 0}),
Expand Down

0 comments on commit 8a0eced

Please sign in to comment.