Re: [COSE] COSE content-type (generic header 3)

Laurence Lundblade <lgl@island-resort.com> Thu, 18 February 2021 17:10 UTC

Return-Path: <lgl@island-resort.com>
X-Original-To: cose@ietfa.amsl.com
Delivered-To: cose@ietfa.amsl.com
Received: from localhost (localhost [127.0.0.1]) by ietfa.amsl.com (Postfix) with ESMTP id 6CE823A14A5 for <cose@ietfa.amsl.com>; Thu, 18 Feb 2021 09:10:58 -0800 (PST)
X-Virus-Scanned: amavisd-new at amsl.com
X-Spam-Flag: NO
X-Spam-Score: -1.895
X-Spam-Level:
X-Spam-Status: No, score=-1.895 tagged_above=-999 required=5 tests=[BAYES_00=-1.9, RCVD_IN_DNSWL_NONE=-0.0001, RCVD_IN_MSPIKE_H3=0.001, RCVD_IN_MSPIKE_WL=0.001, SPF_HELO_NONE=0.001, SPF_NONE=0.001, URIBL_BLOCKED=0.001] autolearn=ham autolearn_force=no
Received: from mail.ietf.org ([4.31.198.44]) by localhost (ietfa.amsl.com [127.0.0.1]) (amavisd-new, port 10024) with ESMTP id CdCPaazzJl4C for <cose@ietfa.amsl.com>; Thu, 18 Feb 2021 09:10:56 -0800 (PST)
Received: from p3plsmtpa06-09.prod.phx3.secureserver.net (p3plsmtpa06-09.prod.phx3.secureserver.net [173.201.192.110]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by ietfa.amsl.com (Postfix) with ESMTPS id B022D3A14AE for <cose@ietf.org>; Thu, 18 Feb 2021 09:10:56 -0800 (PST)
Received: from laurences-mbp.gateway.2wire.net ([187.223.244.101]) by :SMTPAUTH: with ESMTPSA id CmpLlRzlh83D5CmpLlFozr; Thu, 18 Feb 2021 10:10:55 -0700
X-CMAE-Analysis: v=2.4 cv=Zvwol/3G c=1 sm=1 tr=0 ts=602e9f9f a=4DuQCvq92BI7+Z+mmVs66w==:117 a=4DuQCvq92BI7+Z+mmVs66w==:17 a=IkcTkHD0fZMA:10 a=gKmFwSsBAAAA:8 a=48vgC7mUAAAA:8 a=zqREtDhodxhy806wGLkA:9 a=QEXdDO2ut3YA:10 a=f4c_a6ooMhEA:10 a=FcBBUqa8UHQA:10 a=nnPW6aIcBuj1ljLj_o6Q:22 a=w1C3t2QeGrPiZgrLijVG:22
X-SECURESERVER-ACCT: lgl@island-resort.com
Content-Type: text/plain; charset="utf-8"
Mime-Version: 1.0 (Mac OS X Mail 13.4 \(3608.120.23.2.1\))
From: Laurence Lundblade <lgl@island-resort.com>
In-Reply-To: <CB35944F-EBA3-487C-8B2C-96267E1A87CD@tzi.org>
Date: Thu, 18 Feb 2021 10:10:54 -0700
Cc: cose <cose@ietf.org>
Content-Transfer-Encoding: quoted-printable
Message-Id: <2BA100B3-D531-4D7A-9593-148B38A250E7@island-resort.com>
References: <CB35944F-EBA3-487C-8B2C-96267E1A87CD@tzi.org>
To: Carsten Bormann <cabo@tzi.org>
X-Mailer: Apple Mail (2.3608.120.23.2.1)
X-CMAE-Envelope: MS4xfDNSQrm6TfDVJrgvQA5aiAiAuAgDY8KvT00qeE5G4IWYAG82zhAB1y8/DqxN5IBPeiUhWnpt+XqTutcEGbQaz7Zewko7LIF6IzX4yvFJd4D5doH7WQ6P ImUS8PUNgu5jT3ITTZoMaa/oJNXA4NubSik8mM73Ga3hLEWH1f7betlo/cnuEBoJw8+btYM0KksqnKD4A/83PztoTYjYbHgtO0HWrFyj07pNG0wzPdzLbYxM
Archived-At: <https://mailarchive.ietf.org/arch/msg/cose/UVStLU7dUqTem2QlbaJpy_tViQY>
Subject: Re: [COSE] COSE content-type (generic header 3)
X-BeenThere: cose@ietf.org
X-Mailman-Version: 2.1.29
Precedence: list
List-Id: CBOR Object Signing and Encryption <cose.ietf.org>
List-Unsubscribe: <https://www.ietf.org/mailman/options/cose>, <mailto:cose-request@ietf.org?subject=unsubscribe>
List-Archive: <https://mailarchive.ietf.org/arch/browse/cose/>
List-Post: <mailto:cose@ietf.org>
List-Help: <mailto:cose-request@ietf.org?subject=help>
List-Subscribe: <https://www.ietf.org/mailman/listinfo/cose>, <mailto:cose-request@ietf.org?subject=subscribe>
X-List-Received-Date: Thu, 18 Feb 2021 17:11:04 -0000

This is a CoAP content ID, right? Seems like RFC 7252 restricts these to 0-65535, so yes, uint.

LL

> On Feb 17, 2021, at 2:11 PM, Carsten Bormann <cabo@tzi.org> wrote:
> 
> draft-ietf-cose-rfc8152bis-struct-15.txt defines a generic header 3, which is either a media-type-name [1] or a content-format number.
> Table 3 on page 17 says this is text string or unsigned integer.
> The CDDL snippet following the table at the start of page 18 says
> 
>       ? 3 => tstr / int,  ; content type
> 
> I think this should be uint, not int.
> 
> I also would like to be able to use Content-Type [1] or preferably even Content—Format-String [2] for the text string (we already can use Content-Format numbers for the uint).
> 
> Is this a clarification we can/should do at this stage?
> 
> Grüße, Carsten
> 
> 
> [1]: https://www.ietf.org/archive/id/draft-bormann-core-media-content-type-format-02.html#name-content-type
> [2]: https://www.ietf.org/archive/id/draft-bormann-core-media-content-type-format-02.html#name-content-format
> 
> BTW, the plan for this draft is to update and resubmit it before IETF110 and then ask for DISPATCH.
> 
> _______________________________________________
> COSE mailing list
> COSE@ietf.org
> https://www.ietf.org/mailman/listinfo/cose