Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Add: Added conversion routines for different CPE notation formats. #827

Conversation

jhelmold
Copy link
Member

@jhelmold jhelmold commented Jul 11, 2024

What

Added routines to read a v2.2-conformant URI of a CPE or a formatted string binding of a CPE into some kind of WFN struct. Added routines to convert the WFN struct into a formatted string binding or a CPE v2.2-conformant URI. Added routines to convert a formatted string binding into a v2.2-conformant URI and vice versa.

Also added a function, that takes two CPEs represented in CPE structs and checks if one of the CPEs matches the other one.

Why

These routines are needed for direct matching.

References

GEA-622
GEA-624

Checklist

Added some unit tests.

  • Tests

Added routines to read a v2.2-conformant URI of a CPE or a
formatted string binding of a CPE into some kind of WFN struct.
Added routines to convert the WFN struct into a formatted string
binding or a CPE v2.2-conformant URI. Added routines to convert a
formatted string binding into a v2.2-conformant URI and vice versa.
@jhelmold jhelmold requested a review from a team as a code owner July 11, 2024 08:03
Implemented some amendments and added a function, that takes two
CPE structs and checks if one of the CPEs matches the other one.
util/cpeutils.c Outdated Show resolved Hide resolved
util/cpeutils.c Outdated Show resolved Hide resolved
util/cpeutils.c Show resolved Hide resolved
util/cpeutils.c Show resolved Hide resolved
util/cpeutils.c Show resolved Hide resolved
util/cpeutils.c Outdated Show resolved Hide resolved
@jhelmold jhelmold merged commit 07e7ee8 into greenbone:main Jul 25, 2024
15 of 16 checks passed
@jhelmold jhelmold deleted the GEA-622_Handle_different_CPE_versions_formats_for_direct_matching branch July 25, 2024 07:08
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants