diff options
| author | Stanislav Boboň | 2021-01-21 08:58:55 +0100 |
|---|---|---|
| committer | Stanislav Boboň | 2021-01-21 08:58:55 +0100 |
| commit | 8cd7b0144e77abf439188497a2de28c32f4031ac (patch) | |
| tree | dc79e2803e95c9bd21192b60689b707aa22b176e | |
| parent | 14569298025c20ff5ebd0e8a4b9cf7e23f936dd2 (diff) | |
| download | sec-certs-8cd7b0144e77abf439188497a2de28c32f4031ac.tar.gz sec-certs-8cd7b0144e77abf439188497a2de28c32f4031ac.tar.zst sec-certs-8cd7b0144e77abf439188497a2de28c32f4031ac.zip | |
Raw strings + trello
| -rw-r--r-- | sec_certs/certificate.py | 7 |
1 files changed, 6 insertions, 1 deletions
diff --git a/sec_certs/certificate.py b/sec_certs/certificate.py index 0c509715..d7d35fa5 100644 --- a/sec_certs/certificate.py +++ b/sec_certs/certificate.py @@ -420,7 +420,9 @@ class FIPSCertificate(Certificate, ComplexSerializableType): and alg['Name'] == items_found['algorithms'][pair]['Name']: entry = {'Name': alg['Name'], 'Certificate': list(set([x for x in alg['Certificate']]) - | set(items_found['algorithms'][pair]['Certificate']))} + | set(items_found['algorithms'][pair]['Certificate'])), + 'Raw': items_found['algorithms'][pair]['Raw'], + 'Links': items_found['algorithms'][pair]['Links']} if entry not in new_algs: new_algs.append(entry) for entry in new_algs: @@ -430,6 +432,9 @@ class FIPSCertificate(Certificate, ComplexSerializableType): else: new_algs.append({'Name': 'Not Defined', 'Certificate': list(not_defined)}) + if {'Certificate': []} in new_algs: + new_algs.remove({'Certificate': []}) + items_found['algorithms'] = new_algs FIPSCertificate.normalize(items_found) |
