Skip to content

Commit

Permalink
Merge pull request #592 from Webperf-se/openssl-version-info
Browse files Browse the repository at this point in the history
Updated software definition scraping after openssl website redesign
  • Loading branch information
7h3Rabbit authored Aug 9, 2024
2 parents 41a5aa2 + 88f8c7c commit 6a2f742
Showing 1 changed file with 4 additions and 4 deletions.
8 changes: 4 additions & 4 deletions update_software.py
Original file line number Diff line number Diff line change
Expand Up @@ -50,7 +50,7 @@ def main(argv):
update_licenses()
update_software_info()
except Exception as ex: # pylint: disable=broad-exception-caught
info = get_error_info('', 'en', -1, False, ex)
info = get_error_info('', -1, ex)
print('\n'.join(info).replace('\n\n','\n'))

# write error to failure.log file
Expand Down Expand Up @@ -430,11 +430,11 @@ def extend_versions_for_openssl(versions):

def extend_versions_for_openssl_vulnerabilities(versions):
raw_data = get_http_content(
'https://www.openssl.org/news/vulnerabilities.html')
'https://openssl-library.org/news/vulnerabilities/')

ver = sorted(versions.keys(), reverse=False)

section_regex = r'name="CVE[0-9\-]+">(?P<CVE>CVE[0-9\-]+)<\/a>.*?<dd>(?P<content>.*?)<dt><a'
section_regex = r'CVE[0-9\-]+">(?P<CVE>CVE[0-9-]+)<\/a>.*?<ul>(?P<content>.*?)<\/ul>'
section_regex_matches = re.finditer(
section_regex, raw_data, re.MULTILINE | re.S)

Expand Down Expand Up @@ -463,7 +463,7 @@ def extend_versions_for_openssl_vulnerabilities(versions):

def extend_versions_for_openssl_end_of_life(versions):
raw_data = get_http_content(
'https://www.openssl.org/policies/releasestrat.html')
'https://openssl-library.org/policies/releasestrat/index.html')

end_of_life_branches = {}

Expand Down

0 comments on commit 6a2f742

Please sign in to comment.