aboutsummaryrefslogtreecommitdiffhomepage
path: root/src/cert_rules.py
diff options
context:
space:
mode:
authorStanislav Boboň2020-10-13 20:23:04 +0200
committerStanislav Boboň2020-10-15 09:19:58 +0200
commita8920983343bd73d6ec720d179db192560e485e6 (patch)
treef731ff06ff4ed0084b81de2da7da44480746a427 /src/cert_rules.py
parente8c41751abc63b6f11572aaef1033b66f48b54fd (diff)
downloadsec-certs-a8920983343bd73d6ec720d179db192560e485e6.tar.gz
sec-certs-a8920983343bd73d6ec720d179db192560e485e6.tar.zst
sec-certs-a8920983343bd73d6ec720d179db192560e485e6.zip
light refactoring
Diffstat (limited to 'src/cert_rules.py')
-rw-r--r--src/cert_rules.py19
1 files changed, 19 insertions, 0 deletions
diff --git a/src/cert_rules.py b/src/cert_rules.py
index 02691fd9..800aa825 100644
--- a/src/cert_rules.py
+++ b/src/cert_rules.py
@@ -286,6 +286,25 @@ rules_fips_security_level = [
r"[lL]evel (\d)"
]
+rules_fips_htmls = [
+ r"module-name\">\s*(?P<fips_module_name>[^<]*)",
+ r"module-standard\">\s*(?P<fips_standard>[^<]*)",
+ r"Status[\s\S]*?\">\s*(?P<fips_status>[^<]*)",
+ r"Sunset Date[\s\S]*?\">\s*(?P<fips_date_sunset>[^<]*)",
+ r"Validation Dates[\s\S]*?\">\s*(?P<fips_date_validation>[^<]*)",
+ r"Overall Level[\s\S]*?\">\s*(?P<fips_level>[^<]*)",
+ r"Caveat[\s\S]*?\">\s*(?P<fips_caveat>[^<]*)",
+ r"Security Level Exceptions[\s\S]*?\">\s*(?P<fips_exceptions><ul.*</ul>)",
+ r"Module Type[\s\S]*?\">\s*(?P<fips_type>[^<]*)",
+ r"Embodiment[\s\S]*?\">\s*(?P<fips_embodiment>[^<]*)",
+ r"Tested Configuration[\s\S]*?\">\s*(?P<fips_tested_conf><ul.*</ul>)",
+ r"FIPS Algorithms[\s\S]*?\">\s*(?P<fips_algorithms><tbody>[\s\S]*</tbody>)",
+ r"Allowed Algorithms[\s\S]*?\">\s*(?P<fips_allowed_algorithms>[^<]*)",
+ r"Software Versions[\s\S]*?\">\s*(?P<fips_software>[^<]*)",
+ r"Product URL[\s\S]*?\">\s*<a href=\"(?P<fips_url>.*)\"",
+ r"Vendor<\/h4>[\s\S]*?href=\".*?\">(?P<fips_vendor>.*?)<\/a>"
+]
+
# rules_security_target_class
rules = {}
rules['rules_vendor'] = rules_vendor