A map between CVE numbers and upstream SHAs.
More...
#include <CveShaMap.h>
A map between CVE numbers and upstream SHAs.
◆ CveShaMap()
| SlCVEs::CveShaMap::CveShaMap |
( |
const std::filesystem::path & |
vsource = {}, |
|
|
ShaSize |
shaSize = ShaSize::Long, |
|
|
const std::string & |
branch = "origin/master", |
|
|
unsigned |
year = 0, |
|
|
bool |
rejected = false |
|
) |
| |
Create a new CveShaMap.
- Parameters
-
| vsource | Path to the vulns git repository |
| shaSize | Long or Short |
| branch | Branch of vsource to walk |
| year | A specific year to walk or zero |
| rejected | Walk published/ or rejected/ |
◆ getAllCves()
| std::set<std::string> SlCVEs::CveShaMap::getAllCves |
( |
| ) |
const |
|
inline |
Get all stored CVE numbers.
- Returns
- Set of CVE numbers
◆ getCve()
| std::string_view SlCVEs::CveShaMap::getCve |
( |
std::string_view |
shaCommit | ) |
const |
|
inline |
Get CVE number for shaCommit.
- Parameters
-
- Returns
- CVE number
◆ getShas()
| std::vector<std::string> SlCVEs::CveShaMap::getShas |
( |
std::string_view |
cveNumber | ) |
const |
|
inline |
Get SHAs for cveNumber.
- Parameters
-
- Returns
- Vector of upstream SHAs (possibly empty)
The documentation for this class was generated from the following file:
- /home/abuild/rpmbuild/BUILD/slhelpers-20260723.5ab24d1/include/cves/CveShaMap.h