Skip to content
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
10 changes: 5 additions & 5 deletions OneCryptoPkg/Plugin/SbomInserter/SbomInserter.py
Original file line number Diff line number Diff line change
Expand Up @@ -115,7 +115,7 @@ def build_openssl_component(ws: Path, lookup: dict, compiler: uswid.uSwidLink) -
compiler (uswid.uSwidLink): A uSwidLink object representing the compiler used for the build.
"""
# This UUID is only used to associate components together.
TAG_ID = "e2aeed23-3824-45ad-9043-a5237e1131c2"
TAG_ID = "e2aeed23-3824-45ad-9043-a5237e1131c2".lower()

architecture = lookup["ARCHITECTURE"]
target = lookup["TARGET"]
Expand All @@ -127,7 +127,6 @@ def build_openssl_component(ws: Path, lookup: dict, compiler: uswid.uSwidLink) -
name = "The OpenSSL Project",
regid = "openssl.org",
roles = [
uswid.uSwidEntityRole.TAG_CREATOR,
uswid.uSwidEntityRole.DISTRIBUTOR,
uswid.uSwidEntityRole.MAINTAINER,
uswid.uSwidEntityRole.SOFTWARE_CREATOR
Expand All @@ -146,7 +145,7 @@ def build_openssl_component(ws: Path, lookup: dict, compiler: uswid.uSwidLink) -

component = uswid.uSwidComponent(
tag_id=TAG_ID,
tag_version=None,
tag_version=1,
software_name="OpenSSL",
software_version=openssl_version
)
Expand All @@ -155,6 +154,7 @@ def build_openssl_component(ws: Path, lookup: dict, compiler: uswid.uSwidLink) -
component.add_link(openssl_license)
component.add_link(compiler)
component.colloquial_version = colloquial_version
component.product = "OpenSSL"
component.type = uswid.uSwidComponentType.LIBRARY
component.cpe = f"cpe:2.3:a:openssl:openssl:{openssl_version}:*:*:*:*:*:*:*"
component.version_scheme = uswid.uSwidVersionScheme.SEMVER
Expand Down Expand Up @@ -204,7 +204,7 @@ def build_one_crypto_component(ws: Path, lookup: dict, compiler: uswid.uSwidLink
"""
architecture = lookup["ARCHITECTURE"]
target = lookup["TARGET"]
tag_id = lookup["GUID"]
tag_id = lookup["GUID"].lower()
software_name = lookup["EFI_NAME"]
software_version = lookup["VERSION"]
colloquial_version = SbomInserter.get_commit_sha(ws)
Expand Down Expand Up @@ -244,7 +244,7 @@ def build_one_crypto_component(ws: Path, lookup: dict, compiler: uswid.uSwidLink

component = uswid.uSwidComponent(
tag_id,
tag_version=None,
tag_version=1,
software_name=software_name,
software_version=software_version,
)
Expand Down
Loading