If a release is only available to premium support customers because it
authorMark J. Cox <mark@awe.com>
Mon, 25 Jul 2022 07:49:58 +0000 (08:49 +0100)
committerMark J. Cox <mark@awe.com>
Mon, 25 Jul 2022 07:49:58 +0000 (08:49 +0100)
is EOL then don't link to github as those patches won't be there

bin/mk-cvepage

index 612bc7405d1d3155bce970e9936606a294ba0ecd..08fd1daa4de8fa65e172d1f0d9c006644e58ecde 100755 (executable)
@@ -122,7 +122,10 @@ for issue in sorted(issues, key=lambda x: (x.getAttribute('public'), x.getElemen
                 continue
         allissues += "<li>Fixed in OpenSSL %s " %(affects.getAttribute('version'))
         for git in affects.getElementsByTagName('git'):
-            allissues += "<a href=\"https://github.com/openssl/openssl/commit/%s\">(git commit)</a> " %(git.getAttribute('hash'))            
+            if (affects.getAttribute('premium')):
+                allissues += "<a href=\"/support/contracts.html?githash=%s\">(premium support)</a> " %(git.getAttribute('hash'))
+            else:
+                allissues += "<a href=\"https://github.com/openssl/openssl/commit/%s\">(git commit)</a> " %(git.getAttribute('hash'))
         allissues += "(Affected "+merge_affects(issue,affects.getAttribute("base"))+")"       
         allissues += "</li>"
     if also: