Skip to content

Commit

Permalink
Fixed use of CBOR diagnostic notation in the examples
Browse files Browse the repository at this point in the history
  • Loading branch information
marco-tiloca-sics committed Feb 15, 2024
1 parent bcad61a commit c9ca80f
Showing 1 changed file with 9 additions and 8 deletions.
17 changes: 9 additions & 8 deletions draft-ietf-ace-edhoc-oscore-profile.md
Original file line number Diff line number Diff line change
Expand Up @@ -219,7 +219,7 @@ An example of such a request is shown in {{token-request}}. In this example, C s
Header: POST (Code=0.02)
Uri-Host: "as.example.com"
Uri-Path: "token"
Content-Format: "application/ace+cbor"
Content-Format: application/ace+cbor
Payload:
{
"audience" : "tempSensor4711",
Expand All @@ -241,7 +241,7 @@ AS MUST verify that the received "session\_id" identifies a token series to whic
Header: POST (Code=0.02)
Uri-Host: "as.example.com"
Uri-Path: "token"
Content-Format: "application/ace+cbor"
Content-Format: application/ace+cbor
Payload:
{
"audience" : "tempSensor4711",
Expand Down Expand Up @@ -303,16 +303,16 @@ When issuing the first access token of a token series, AS MAY send EDHOC\_Inform

~~~~~~~~~~~~~~~~~~~~~~~
Header: Created (Code=2.01)
Content-Format: "application/ace+cbor"
Content-Format: application/ace+cbor
Payload:
{
"access_token" : h'8343a1010aa2044c53 ...
(remainder of access token (CWT) omitted for brevity)',
"access_token" : h'8343a1010aa2044c53/...
(remainder of access token (CWT) omitted for brevity)/',
"ace_profile" : "coap_edhoc_oscore",
"expires_in" : "3600",
"rs_cnf" : {
"x5chain" : h'3081ee3081a1a00302 ...'
(remainder of the access credential omitted for brevity)'
"x5chain" : h'3081ee3081a1a00302/...'
(remainder of the access credential omitted for brevity)/'
}
"edhoc_info" : {
"session_id" : h'01',
Expand Down Expand Up @@ -358,7 +358,8 @@ Since the access token does not contain secret information, only its integrity a
"exp" : "1360289224",
"scope" : "temperature_g firmware_p",
"cnf" : {
"x5chain" : h'3081ee3081a1a00302 ...'
"x5chain" : h'3081ee3081a1a00302/...
(remainder of the access credential omitted for brevity)/'
}
"edhoc_info" : {
"session_id" : h'01',
Expand Down

0 comments on commit c9ca80f

Please sign in to comment.