SlHelpers
Loading...
Searching...
No Matches
SlCVEs::CVE2Bugzilla Class Reference

Map between CVE and bugzilla numbers. More...

#include <CVE2Bugzilla.h>

Public Types

using Map
 CVE -> Bugzilla mapping.

Public Member Functions

std::string get_bsc (std::string_view cve_number) const
 Get bugzilla number for a CVE.
std::string get_cve (std::string_view bsc_number) const
 Get CVE number for a bugzilla.

Static Public Member Functions

static std::optional< CVE2Bugzilla > create (const std::filesystem::path &cve2bugzilla) noexcept
 Create a new CVE2Bugzilla map from cve2bugzilla.

Detailed Description

Map between CVE and bugzilla numbers.

Member Typedef Documentation

◆ Map

Initial value:
std::unordered_map<std::string, std::string, SlHelpers::String::Hash,
Equality test for string and string_view to be used in containers.
Definition String.h:250
Hash for string and string_view to be used in hashing containers.
Definition String.h:223

CVE -> Bugzilla mapping.

Member Function Documentation

◆ create()

std::optional< CVE2Bugzilla > SlCVEs::CVE2Bugzilla::create ( const std::filesystem::path & cve2bugzilla)
staticnoexcept

Create a new CVE2Bugzilla map from cve2bugzilla.

Parameters
cve2bugzillaFile to parse
Returns
CVE2Bugzilla or nullopt on failure

◆ get_bsc()

std::string SlCVEs::CVE2Bugzilla::get_bsc ( std::string_view cve_number) const

Get bugzilla number for a CVE.

Parameters
cve_numberCVE number
Returns
Bugzilla number or an empty string

◆ get_cve()

std::string SlCVEs::CVE2Bugzilla::get_cve ( std::string_view bsc_number) const

Get CVE number for a bugzilla.

Parameters
bsc_numberBugzilla number
Returns
CVE number or an empty string

The documentation for this class was generated from the following file:
  • /home/abuild/rpmbuild/BUILD/slhelpers-20260428.f233ce9-build/slhelpers-20260428.f233ce9/include/cves/CVE2Bugzilla.h