Skip to content

Commit

Permalink
Addressing most issues on github sans the combination of Section on h…
Browse files Browse the repository at this point in the history
…ash with Section in resource-collection
  • Loading branch information
henkbirkholz authored and david-waltermire committed Nov 2, 2020
1 parent 7518adc commit 7b23b52
Show file tree
Hide file tree
Showing 3 changed files with 22 additions and 22 deletions.
2 changes: 1 addition & 1 deletion Makefile
Original file line number Diff line number Diff line change
Expand Up @@ -7,5 +7,5 @@ ifneq (,$(shell grep "path *= *$(LIBDIR)" .gitmodules 2>/dev/null))
git submodule update $(CLONE_ARGS) --init
else
git clone -q --depth 10 $(CLONE_ARGS) \
-b master https://github.com/martinthomson/i-d-template $(LIBDIR)
-b main https://github.com/martinthomson/i-d-template $(LIBDIR)
endif
20 changes: 10 additions & 10 deletions concise-swid-tag.cddl
Original file line number Diff line number Diff line change
@@ -1,5 +1,4 @@
concise-swid-tag = {
global-attributes,
tag-id => text / bstr .size 16,
tag-version => integer,
? corpus => bool,
Expand All @@ -13,6 +12,7 @@ concise-swid-tag = {
entity => entity-entry / [ 2* entity-entry ],
? link => link-entry / [ 2* link-entry ],
? payload-or-evidence,
global-attributes,
* $$coswid-extension,
}

Expand Down Expand Up @@ -46,11 +46,11 @@ hash-entry = [
]

entity-entry = {
global-attributes,
entity-name => text,
? reg-id => any-uri,
role => $role / [ 2* $role ],
? thumbprint => hash-entry,
global-attributes,
* $$entity-extension,
}

Expand All @@ -63,14 +63,14 @@ $role /= maintainer
$role /= uint / text

link-entry = {
global-attributes,
? artifact => text,
href => any-uri,
? media => text,
? ownership => $ownership,
rel => $rel,
? media-type => text,
? use => $use,
global-attributes,
* $$link-extension
}

Expand All @@ -90,15 +90,14 @@ $rel /= requires
$rel /= see-also
$rel /= supersedes
$rel /= supplemental
$rel /= uint / text
$rel /= -256..64436 / text

$use /= optional
$use /= required
$use /= recommended
$use /= uint / text

software-meta-entry = {
global-attributes,
? activation-status => text,
? channel-type => text,
? colloquial-version => text,
Expand All @@ -114,6 +113,7 @@ software-meta-entry = {
? summary => text,
? unspsc-code => text,
? unspsc-version => text,
global-attributes,
* $$software-meta-extension,
}

Expand Down Expand Up @@ -143,37 +143,37 @@ directory-entry = {
}

process-entry = {
global-attributes,
process-name => text,
? pid => integer,
global-attributes,
* $$process-extension,
}

resource-entry = {
global-attributes,
type => text,
global-attributes,
* $$resource-extension,
}

filesystem-item = (
global-attributes,
? key => bool,
? location => text,
fs-name => text,
? root => text,
global-attributes,
)

payload-entry = {
global-attributes,
resource-collection,
global-attributes,
* $$payload-extension,
}

evidence-entry = {
global-attributes,
resource-collection,
? date => time,
? device-id => text,
global-attributes,
* $$evidence-extension,
}

Expand Down
22 changes: 11 additions & 11 deletions draft-ietf-sacm-coswid.md
Original file line number Diff line number Diff line change
Expand Up @@ -349,7 +349,6 @@ The CDDL specification for the root concise-swid-tag map is as follows and this

~~~ CDDL
concise-swid-tag = {
global-attributes,
tag-id => text / bstr .size 16,
tag-version => integer,
? corpus => bool,
Expand All @@ -363,6 +362,7 @@ concise-swid-tag = {
entity => entity-entry / [ 2* entity-entry ],
? link => link-entry / [ 2* link-entry ],
? payload-or-evidence,
global-attributes,
* $$coswid-extension,
}

Expand Down Expand Up @@ -499,11 +499,11 @@ The CDDL for the entity-entry map follows:

~~~ CDDL
entity-entry = {
global-attributes,
entity-name => text,
? reg-id => any-uri,
role => $role / [ 2* $role ],
? thumbprint => hash-entry,
global-attributes,
* $$entity-extension,
}

Expand Down Expand Up @@ -531,7 +531,7 @@ The following describes each child item of this group.

- global-attributes: The global-attributes group described in {{model-global-attributes}}.

- entity-name (index 32): The textual name of the organizational entity claiming the roles specified by the role item for the CoSWID tag.
- entity-name (index 31): The textual name of the organizational entity claiming the roles specified by the role item for the CoSWID tag.

- reg-id (index 32): The registration id value is intended to uniquely identify a naming authority in a
given scope (e.g. global, organization, vendor, customer, administrative domain,
Expand All @@ -557,14 +557,14 @@ The CDDL for the link-entry map follows:

~~~ CDDL
link-entry = {
global-attributes,
? artifact => text,
href => any-uri,
? media => text,
? ownership => $ownership,
rel => $rel,
? media-type => text,
? use => $use,
global-attributes,
* $$link-extension,
}

Expand Down Expand Up @@ -595,7 +595,7 @@ $rel /= requires
$rel /= see-also
$rel /= supersedes
$rel /= supplemental
$rel /= uint / text
$rel /= -356..65536 / text
ancestor=1
component=2
feature=3
Expand Down Expand Up @@ -652,7 +652,6 @@ The CDDL for the software-meta-entry map follows:

~~~ CDDL
software-meta-entry = {
global-attributes,
? activation-status => text,
? channel-type => text,
? colloquial-version => text,
Expand All @@ -668,6 +667,7 @@ software-meta-entry = {
? summary => text,
? unspsc-code => text,
? unspsc-version => text,
global-attributes,
* $$software-meta-extension,
}

Expand Down Expand Up @@ -764,11 +764,11 @@ resource-collection = (
)

filesystem-item = (
global-attributes,
? key => bool,
? location => text,
fs-name => text,
? root => text,
global-attributes,
)

file-entry = {
Expand All @@ -786,15 +786,15 @@ directory-entry = {
}

process-entry = {
global-attributes,
process-name => text,
? pid => integer,
global-attributes,
* $$process-extension,
}

resource-entry = {
global-attributes,
type => text,
global-attributes,
* $$resource-extension,
}

Expand Down Expand Up @@ -865,8 +865,8 @@ The CDDL for the payload-entry map follows:

~~~ CDDL
payload-entry = {
global-attributes,
resource-collection,
global-attributes,
* $$payload-extension,
}
~~~
Expand All @@ -886,10 +886,10 @@ The CDDL for the evidence-entry map follows:

~~~ CDDL
evidence-entry = {
global-attributes,
resource-collection,
? date => time,
? device-id => text,
global-attributes,
* $$evidence-extension,
}

Expand Down

0 comments on commit 7b23b52

Please sign in to comment.