Skip to content

Commit 724ba2d

Browse files
author
Ned Smith
authored
Merge pull request #5 from TrustedComputingGroup/fix-exports2
remove coswid from dice-corim.cddl export
2 parents 8d8c414 + 2886b4e commit 724ba2d

4 files changed

Lines changed: 6 additions & 286 deletions

File tree

cddl/Makefile

Lines changed: 2 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -39,9 +39,9 @@ examples/corim-4.diag: examples/corim-4.sig examples/corim-4.diag.tmpl examples/
3939
include corim-frags.mk
4040
COMID_START := concise-mid-tag
4141
CORIM_START := tagged-corim-map
42-
$(eval $(call cddl_check_template,comid,$(COMID_FRAGS),$(COMID_EXAMPLES),$(COMID_START)))
42+
$(eval $(call cddl_check_template,comid,$(COMID_FRAGS) $(IMPORT_FRAGS),$(COMID_EXAMPLES),$(COMID_START)))
4343
#$(eval $(call cddl_check_template,cotl,$(COTL_FRAGS),$(COTL_EXAMPLES)))
44-
$(eval $(call cddl_check_template,corim,$(CORIM_FRAGS),$(CORIM_EXAMPLES),$(CORIM_START)))
44+
$(eval $(call cddl_check_template,corim,$(CORIM_FRAGS) $(IMPORT_FRAGS),$(CORIM_EXAMPLES),$(CORIM_START)))
4545

4646
GITHUB := https://raw.githubusercontent.com/
4747
COSWID_REPO := sacmwg/draft-ietf-sacm-coswid/master
@@ -52,7 +52,6 @@ concise-swid-tag.cddl: ; $(curl) -O $(COSWID_REPO_URL)/$@
5252
CLEANFILES += concise-swid-tag.cddl
5353

5454
# Make exports - used by cddl-releases
55-
IMPORT_FRAGS := concise-swid-tag.cddl
5655
$(eval $(call cddl_exp_template,dice-corim,$(CORIM_FRAGS),$(EXPORTS_DIR),$(IMPORT_FRAGS)))
5756
AUTOGEN_FRAGS := $(addprefix $(DC_DIR), corim-autogen.cddl)
5857
AUTOGEN_EXPORTS := $(addprefix $(EXPORTS_DIR), corim-autogen.cddl)

cddl/concise-tag-type-choice.cddl

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,3 @@
1-
$concise-tag-type-choice /= tagged-concise-swid-tag
1+
;$concise-tag-type-choice /= tagged-concise-swid-tag
22
$concise-tag-type-choice /= tagged-concise-mid-tag
33
;$concise-tag-type-choice /= tagged-concise-tl-tag

cddl/corim-frags.mk

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -46,8 +46,9 @@ COMID_FRAGS += ueid.cddl
4646
COMID_FRAGS += uuid.cddl
4747
COMID_FRAGS += version-map.cddl
4848
COMID_FRAGS += digest.cddl
49-
COMID_FRAGS += integrity-registers.cddl
50-
COMID_FRAGS += concise-swid-tag.cddl
49+
#COMID_FRAGS += integrity-registers.cddl
50+
51+
IMPORT_FRAGS += concise-swid-tag.cddl
5152

5253
COMID_EXAMPLES := $(wildcard examples/comid-*.diag)
5354

cddl/exports/dice-corim.cddl

Lines changed: 0 additions & 280 deletions
Original file line numberDiff line numberDiff line change
@@ -11,7 +11,6 @@ concise-tl-tag = {
1111
&(tl-validity: 2) => validity-map
1212
}
1313

14-
$concise-tag-type-choice /= tagged-concise-swid-tag
1514
$concise-tag-type-choice /= tagged-concise-mid-tag
1615

1716
corim-entity-map =
@@ -360,282 +359,3 @@ digest = [
360359

361360
digests-type = [ + digest ]
362361

363-
integrity-register-id-type-choice = uint / text
364-
365-
integrity-registers = {
366-
+ integrity-register-id-type-choice => digests-type
367-
}
368-
369-
concise-swid-tag = {
370-
tag-id => text / bstr .size 16,
371-
tag-version => integer,
372-
? corpus => bool,
373-
? patch => bool,
374-
? supplemental => bool,
375-
software-name => text,
376-
? software-version => text,
377-
? version-scheme => $version-scheme,
378-
? media => text,
379-
? software-meta => one-or-more<software-meta-entry>,
380-
entity => one-or-more<entity-entry>,
381-
? link => one-or-more<link-entry>,
382-
? payload-or-evidence,
383-
* $$coswid-extension,
384-
global-attributes,
385-
}
386-
387-
payload-or-evidence //= ( payload => payload-entry )
388-
payload-or-evidence //= ( evidence => evidence-entry )
389-
390-
any-uri = uri
391-
label = text / int
392-
393-
$version-scheme /= multipartnumeric
394-
$version-scheme /= multipartnumeric-suffix
395-
$version-scheme /= alphanumeric
396-
$version-scheme /= decimal
397-
$version-scheme /= semver
398-
$version-scheme /= int / text
399-
400-
any-attribute = (
401-
label => one-or-more<text> / one-or-more<int>
402-
)
403-
404-
one-or-more<T> = T / [ 2* T ]
405-
406-
global-attributes = (
407-
? lang => text,
408-
* any-attribute,
409-
)
410-
411-
hash-entry = [
412-
hash-alg-id: int,
413-
hash-value: bytes,
414-
]
415-
416-
entity-entry = {
417-
entity-name => text,
418-
? reg-id => any-uri,
419-
role => one-or-more<$role>,
420-
? thumbprint => hash-entry,
421-
* $$entity-extension,
422-
global-attributes,
423-
}
424-
425-
$role /= tag-creator
426-
$role /= software-creator
427-
$role /= aggregator
428-
$role /= distributor
429-
$role /= licensor
430-
$role /= maintainer
431-
$role /= int / text
432-
433-
link-entry = {
434-
? artifact => text,
435-
href => any-uri,
436-
? media => text,
437-
? ownership => $ownership,
438-
rel => $rel,
439-
? media-type => text,
440-
? use => $use,
441-
* $$link-extension,
442-
global-attributes,
443-
}
444-
445-
$ownership /= shared
446-
$ownership /= private
447-
$ownership /= abandon
448-
$ownership /= int / text
449-
450-
$rel /= ancestor
451-
$rel /= component
452-
$rel /= feature
453-
$rel /= installationmedia
454-
$rel /= packageinstaller
455-
$rel /= parent
456-
$rel /= patches
457-
$rel /= requires
458-
$rel /= see-also
459-
$rel /= supersedes
460-
$rel /= supplemental
461-
$rel /= -256..64436 / text
462-
463-
$use /= optional
464-
$use /= required
465-
$use /= recommended
466-
$use /= int / text
467-
468-
software-meta-entry = {
469-
? activation-status => text,
470-
? channel-type => text,
471-
? colloquial-version => text,
472-
? description => text,
473-
? edition => text,
474-
? entitlement-data-required => bool,
475-
? entitlement-key => text,
476-
? generator => text / bstr .size 16,
477-
? persistent-id => text,
478-
? product => text,
479-
? product-family => text,
480-
? revision => text,
481-
? summary => text,
482-
? unspsc-code => text,
483-
? unspsc-version => text,
484-
* $$software-meta-extension,
485-
global-attributes,
486-
}
487-
488-
path-elements-group = ( ? directory => one-or-more<directory-entry>,
489-
? file => one-or-more<file-entry>,
490-
)
491-
492-
resource-collection = (
493-
path-elements-group,
494-
? process => one-or-more<process-entry>,
495-
? resource => one-or-more<resource-entry>,
496-
* $$resource-collection-extension,
497-
)
498-
499-
file-entry = {
500-
filesystem-item,
501-
? size => uint,
502-
? file-version => text,
503-
? hash => hash-entry,
504-
* $$file-extension,
505-
global-attributes,
506-
}
507-
508-
directory-entry = {
509-
filesystem-item,
510-
? path-elements => { path-elements-group },
511-
* $$directory-extension,
512-
global-attributes,
513-
}
514-
515-
process-entry = {
516-
process-name => text,
517-
? pid => integer,
518-
* $$process-extension,
519-
global-attributes,
520-
}
521-
522-
resource-entry = {
523-
type => text,
524-
* $$resource-extension,
525-
global-attributes,
526-
}
527-
528-
filesystem-item = (
529-
? key => bool,
530-
? location => text,
531-
fs-name => text,
532-
? root => text,
533-
)
534-
535-
payload-entry = {
536-
resource-collection,
537-
* $$payload-extension,
538-
global-attributes,
539-
}
540-
541-
evidence-entry = {
542-
resource-collection,
543-
? date => integer-time,
544-
? device-id => text,
545-
? location => text,
546-
* $$evidence-extension,
547-
global-attributes,
548-
}
549-
550-
integer-time = #6.1(int)
551-
552-
tag-id = 0
553-
software-name = 1
554-
entity = 2
555-
evidence = 3
556-
link = 4
557-
software-meta = 5
558-
payload = 6
559-
hash = 7
560-
corpus = 8
561-
patch = 9
562-
media = 10
563-
supplemental = 11
564-
tag-version = 12
565-
software-version = 13
566-
version-scheme = 14
567-
lang = 15
568-
directory = 16
569-
file = 17
570-
process = 18
571-
resource = 19
572-
size = 20
573-
file-version = 21
574-
key = 22
575-
location = 23
576-
fs-name = 24
577-
root = 25
578-
path-elements = 26
579-
process-name = 27
580-
pid = 28
581-
type = 29
582-
entity-name = 31
583-
reg-id = 32
584-
role = 33
585-
thumbprint = 34
586-
date = 35
587-
device-id = 36
588-
artifact = 37
589-
href = 38
590-
ownership = 39
591-
rel = 40
592-
media-type = 41
593-
use = 42
594-
activation-status = 43
595-
channel-type = 44
596-
colloquial-version = 45
597-
description = 46
598-
edition = 47
599-
entitlement-data-required = 48
600-
entitlement-key = 49
601-
generator = 50
602-
persistent-id = 51
603-
product = 52
604-
product-family = 53
605-
revision = 54
606-
summary = 55
607-
unspsc-code = 56
608-
unspsc-version = 57
609-
610-
multipartnumeric = 1
611-
multipartnumeric-suffix = 2
612-
alphanumeric = 3
613-
decimal = 4
614-
semver = 16384
615-
616-
tag-creator=1
617-
software-creator=2
618-
aggregator=3
619-
distributor=4
620-
licensor=5
621-
maintainer=6
622-
623-
abandon=1
624-
private=2
625-
shared=3
626-
627-
ancestor=1
628-
component=2
629-
feature=3
630-
installationmedia=4
631-
packageinstaller=5
632-
parent=6
633-
patches=7
634-
requires=8
635-
see-also=9
636-
supersedes=10
637-
638-
optional=1
639-
required=2
640-
recommended=3
641-

0 commit comments

Comments
 (0)