Skip to content

Commit d5439e0

Browse files
committed
minor wrap to YANG to keep RFC8792 wrapper at bay
1 parent 7dc86cf commit d5439e0

5 files changed

Lines changed: 53 additions & 48 deletions

File tree

Makefile

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -87,4 +87,4 @@ settings:
8787
echo pyang: ${PYANG}
8888

8989
redosid:
90-
rm *-sid.txt && rm -rf yang && make
90+
rm *-sid.txt && make

ietf-voucher-request-sid.txt

Lines changed: 23 additions & 23 deletions
Original file line numberDiff line numberDiff line change
@@ -1,25 +1,25 @@
11
SID Assigned to
22
--------- --------------------------------------------------
3-
2501 data /ietf-voucher-request:voucher
4-
2502 data /ietf-voucher-request:voucher/assertion
5-
2503 data /ietf-voucher-request:voucher/created-on
6-
2504 data .../domain-cert-revocation-checks
7-
2505 data /ietf-voucher-request:voucher/expires-on
8-
2506 data /ietf-voucher-request:voucher/idevid-issuer
9-
2507 data /ietf-voucher-request:voucher/last-renewal-date
10-
2508 data /ietf-voucher-request:voucher/nonce
11-
2509 data /ietf-voucher-request:voucher/pinned-domain-cert
12-
2510 data .../prior-signed-voucher-request
13-
2511 data .../proximity-registrar-cert
14-
2512 data .../proximity-registrar-pubk-sha256
15-
2513 data .../proximity-registrar-pubk
16-
2514 data /ietf-voucher-request:voucher/serial-number
17-
2515 data .../agent-provided-proximity-registrar-cert
18-
2516 data /ietf-voucher-request:voucher/agent-sign-cert
19-
2517 data /ietf-voucher-request:voucher/agent-signed-data
20-
2518 data /ietf-voucher-request:voucher/pinned-domain-pubk
21-
2519 data .../pinned-domain-pubk-sha256
22-
2520 data .../additional-configuration-url
23-
2521 data /ietf-voucher-request:voucher/est-domain
24-
2522 data /ietf-voucher-request:voucher/extensions
25-
2523 data .../manufacturer-private
3+
2501 data .../ietf-voucher-request:voucher
4+
2502 data .../assertion
5+
2503 data .../created-on
6+
2504 data .../domain-cert-revocation-checks
7+
2505 data .../expires-on
8+
2506 data .../idevid-issuer
9+
2507 data .../last-renewal-date
10+
2508 data .../nonce
11+
2509 data .../pinned-domain-cert
12+
2510 data .../prior-signed-voucher-request
13+
2511 data .../proximity-registrar-cert
14+
2512 data .../proximity-registrar-pubk-sha256
15+
2513 data .../proximity-registrar-pubk
16+
2514 data .../serial-number
17+
2515 data .../agent-provided-proximity-registrar-cert
18+
2516 data .../agent-sign-cert
19+
2517 data .../agent-signed-data
20+
2518 data .../pinned-domain-pubk
21+
2519 data .../pinned-domain-pubk-sha256
22+
2520 data .../additional-configuration-url
23+
2521 data .../est-domain
24+
2522 data .../extensions
25+
2523 data .../manufacturer-private

ietf-voucher-request.yang

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -180,14 +180,14 @@ RFCEDITOR: please replace XXXX with the RFC number assigned.
180180
leaf agent-signed-data {
181181
type binary;
182182
description
183-
"The agent-signed-data field contains a data artifact provided
184-
by the Registrar-Agent to the Pledge for inclusion into the
185-
voucher request.
183+
"The agent-signed-data field contains a data artifact
184+
provided by the Registrar-Agent to the Pledge for
185+
inclusion into the voucher request.
186186
187187
This artifact is signed by the Registrar-Agent and contains
188188
data, which can be verified by the pledge and the registrar.
189-
This data contains the pledge's serial-number and a created-on
190-
information of the agent-signed-data.
189+
This data contains the pledge's serial-number and a
190+
created-on information of the agent-signed-data.
191191
192192
The format is intentionally defined as binary to allow
193193
the document using this leaf to determine the encoding.";

ietf-voucher-sid.txt

Lines changed: 16 additions & 16 deletions
Original file line numberDiff line numberDiff line change
@@ -1,18 +1,18 @@
11
SID Assigned to
22
--------- --------------------------------------------------
3-
2451 data /ietf-voucher:voucher
4-
2452 data /ietf-voucher:voucher/assertion
5-
2453 data /ietf-voucher:voucher/created-on
6-
2454 data .../domain-cert-revocation-checks
7-
2455 data /ietf-voucher:voucher/expires-on
8-
2456 data /ietf-voucher:voucher/idevid-issuer
9-
2457 data /ietf-voucher:voucher/last-renewal-date
10-
2458 data /ietf-voucher:voucher/nonce
11-
2459 data /ietf-voucher:voucher/pinned-domain-cert
12-
2460 data /ietf-voucher:voucher/pinned-domain-pubk
13-
2461 data /ietf-voucher:voucher/pinned-domain-pubk-sha256
14-
2462 data /ietf-voucher:voucher/serial-number
15-
2463 data .../additional-configuration-url
16-
2464 data /ietf-voucher:voucher/est-domain
17-
2465 data /ietf-voucher:voucher/manufacturer-private
18-
2466 data /ietf-voucher:voucher/extensions
3+
2451 data .../ietf-voucher:voucher
4+
2452 data .../assertion
5+
2453 data .../created-on
6+
2454 data .../domain-cert-revocation-checks
7+
2455 data .../expires-on
8+
2456 data .../idevid-issuer
9+
2457 data .../last-renewal-date
10+
2458 data .../nonce
11+
2459 data .../pinned-domain-cert
12+
2460 data .../pinned-domain-pubk
13+
2461 data .../pinned-domain-pubk-sha256
14+
2462 data .../serial-number
15+
2463 data .../additional-configuration-url
16+
2464 data .../est-domain
17+
2465 data .../manufacturer-private
18+
2466 data .../extensions

truncate-sid-table

Lines changed: 8 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,9 +1,12 @@
11
#!/usr/bin/perl
22

33
# process the table SID output from pyang and make it fit into 70 columns.
4-
# do this by truncating the left-hand side of the third column.
4+
# do this by truncating the left-hand side of the third column, except for the module
5+
# name, which is the first entry.
56
# first two columns are allocated 22 characters, so 70-22 = 48.
67

8+
my $first = 1;
9+
710
while(<ARGV>) {
811
chomp;
912

@@ -17,13 +20,15 @@ while(<ARGV>) {
1720

1821
($sid, $type, $object) = split;
1922

20-
if(length($object) > 48) {
23+
unless($first) {
24+
print STDERR "FIRST: $first\n";
2125
$object = substr($object, -48);
2226
# now actually align it on the /.
2327
$object =~ s,.*(/[^/]+),...\1,;
2428
}
2529
26-
print sprintf("%9s %s %s\n", $sid, $type, $object);
30+
print sprintf("%9s %6s %s\n", $sid, $type, $object);
31+
$first = 0;
2732
}
2833
2934

0 commit comments

Comments
 (0)