pkcs7: fix recipients
This commit is contained in:
parent
d84210e28b
commit
f0b461d253
2
pkcs7.py
2
pkcs7.py
|
@ -405,7 +405,7 @@ class PKCS7:
|
|||
|
||||
def get_recipients(self):
|
||||
if self.get_type() & (PKCS7Type.TargetEncrypted | PKCS7Type.TargetDigested):
|
||||
return [PKCS7Recipient(r) for r in self.msg['content']['recipient_infos']]
|
||||
return [PKCS7Recipient(r.chosen) for r in self.msg['content']['recipient_infos']]
|
||||
return []
|
||||
|
||||
def get_signers(self):
|
||||
|
|
Loading…
Reference in New Issue