Re: [Lake] Error message "Success" (relates to #74)

John Mattsson <john.mattsson@ericsson.com> Tue, 27 April 2021 14:37 UTC

Return-Path: <john.mattsson@ericsson.com>
X-Original-To: lake@ietfa.amsl.com
Delivered-To: lake@ietfa.amsl.com
Received: from localhost (localhost [127.0.0.1]) by ietfa.amsl.com (Postfix) with ESMTP id C4BB63A0CED for <lake@ietfa.amsl.com>; Tue, 27 Apr 2021 07:37:39 -0700 (PDT)
X-Virus-Scanned: amavisd-new at amsl.com
X-Spam-Flag: NO
X-Spam-Score: -2.102
X-Spam-Level:
X-Spam-Status: No, score=-2.102 tagged_above=-999 required=5 tests=[BAYES_00=-1.9, DKIMWL_WL_HIGH=-0.001, DKIM_SIGNED=0.1, DKIM_VALID=-0.1, DKIM_VALID_AU=-0.1, DKIM_VALID_EF=-0.1, RCVD_IN_MSPIKE_H2=-0.001, SPF_PASS=-0.001, URIBL_BLOCKED=0.001] autolearn=ham autolearn_force=no
Authentication-Results: ietfa.amsl.com (amavisd-new); dkim=pass (1024-bit key) header.d=ericsson.com
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 hNsmd1rpExa1 for <lake@ietfa.amsl.com>; Tue, 27 Apr 2021 07:37:34 -0700 (PDT)
Received: from EUR04-DB3-obe.outbound.protection.outlook.com (mail-eopbgr60084.outbound.protection.outlook.com [40.107.6.84]) (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 A922F3A0CE8 for <lake@ietf.org>; Tue, 27 Apr 2021 07:37:34 -0700 (PDT)
ARC-Seal: i=1; a=rsa-sha256; s=arcselector9901; d=microsoft.com; cv=none; b=K/9sB4u+38Fk+Zs+a3j8r2fVPSUWbRi+CrrbVJ4BukkyAnPzBai45Lkv11zNFjTW3FG+eakffPxq4eWwC9QNAmRDvhm5ytlRI+qfUayNvsp2j0A0CapKdHzYkqwm3xjm7SuKsgLOpt1b+M9PaUv4RzMDTKSoOSRarQNHVQ6Jomc2htMsp4FUbdapwLIcjfoVHHuBhiZGu/rjlMrllYaF8TB/6IbIfscx32qMMI/G/dOsonf7rwePlUP4hz4g4eWKL1e4qeQJ92jOFyu2O1pPtI9VHi/gGQvc+O93EBoGXCKovQFu3KB2xOUcpcBA1g5+84s54mz97yi3ieDHBSQITQ==
ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=microsoft.com; s=arcselector9901; h=From:Date:Subject:Message-ID:Content-Type:MIME-Version:X-MS-Exchange-SenderADCheck; bh=Iq/4hE6CfL+wgGti0CW4+zaMhyTTY6LQm8rkaT0U3PE=; b=fxfw4NyPXJuFZTn1BHv0p8AVRE3LP+NMRg83Uj9U1/IC87Fwly84v9jB06swIos5LYOGFh0p2r5uULytatsSn/FPiEuoITgUaWmQQa41zr2Wsz+V+pVpw1HjFiq6/CtYA9Zd2JUpRVlheCOKvzzQrjmXzdk4LDHb34OSEKL+LohWaPWGbsDFoqYE1qYy6lRtX+MolGhTqZmlxhfnuISs4gSq/SauEoG2uprPrHqGH4I/VICcnkkxvDAwuT/JjUtWENdk3pEvT/5/+lGtL7FEdx1cYKaOZAC302xlzcTkm+fWwbpdR2mujuJg1ze5m4DeaybpMfyxqJr7xz9J7/41+g==
ARC-Authentication-Results: i=1; mx.microsoft.com 1; spf=pass smtp.mailfrom=ericsson.com; dmarc=pass action=none header.from=ericsson.com; dkim=pass header.d=ericsson.com; arc=none
DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=ericsson.com; s=selector1; h=From:Date:Subject:Message-ID:Content-Type:MIME-Version:X-MS-Exchange-SenderADCheck; bh=Iq/4hE6CfL+wgGti0CW4+zaMhyTTY6LQm8rkaT0U3PE=; b=bsttT7LjB9VKZD8A/twhVm2ARjpUapHdTaeQm79igCVdFGxgTF6FaTadGg/vW/77cN/tBHz13rG8zl9AhKgZfJN3+NaINgSiWDnC3NeKKQTzd9Ic4r4VLcs/v1hOdq0nN6O89GQ7TqSZXaz51oYbd7FmsqFa3n4cg2x+E0+k8y0=
Received: from HE1PR0701MB3050.eurprd07.prod.outlook.com (2603:10a6:3:4b::8) by HE1PR0702MB3548.eurprd07.prod.outlook.com (2603:10a6:7:8b::31) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.20.4087.22; Tue, 27 Apr 2021 14:37:32 +0000
Received: from HE1PR0701MB3050.eurprd07.prod.outlook.com ([fe80::b071:a4a:817d:2d3]) by HE1PR0701MB3050.eurprd07.prod.outlook.com ([fe80::b071:a4a:817d:2d3%11]) with mapi id 15.20.4087.025; Tue, 27 Apr 2021 14:37:32 +0000
From: John Mattsson <john.mattsson@ericsson.com>
To: "lake@ietf.org" <lake@ietf.org>
Thread-Topic: [Lake] Error message "Success" (relates to #74)
Thread-Index: AQHXO3LbYVK6kbhJG0qLFR9E6GHxQg==
Date: Tue, 27 Apr 2021 14:37:32 +0000
Message-ID: <8150C27E-11C5-4877-89D1-AC3CB80C0CE4@ericsson.com>
Accept-Language: en-US
Content-Language: en-GB
X-MS-Has-Attach:
X-MS-TNEF-Correlator:
user-agent: Microsoft-MacOutlook/16.48.21041102
authentication-results: ietf.org; dkim=none (message not signed) header.d=none;ietf.org; dmarc=none action=none header.from=ericsson.com;
x-originating-ip: [81.225.97.222]
x-ms-publictraffictype: Email
x-ms-office365-filtering-correlation-id: a31017e7-9d1b-4697-1d26-08d90989fdd9
x-ms-traffictypediagnostic: HE1PR0702MB3548:
x-microsoft-antispam-prvs: <HE1PR0702MB35485FAA554C729E5A0081FB89419@HE1PR0702MB3548.eurprd07.prod.outlook.com>
x-ms-oob-tlc-oobclassifiers: OLM:9508;
x-ms-exchange-senderadcheck: 1
x-microsoft-antispam: BCL:0;
x-microsoft-antispam-message-info: L0rBOJNh6ZbZ2++wV/t8MVqH2sk5sURsGW5dN8FQBsTSB6pNXd3NZTfHb6TxnDXgWGHuMb53k5AjqndpBQJs9vroVHVQ2At2mznVdUTT9s6ExIqw4d/DDWlcO8QJWgz+ENKmBuhm4xI8HmCoxHF8DdN8s77Vb54tFgJIPowMVK1Pirse2mtdh8/E2iMyY/i99n08FoDvuJ4/WzeULEpvWCvcVII7ryCd++AK+AjdrwLM+t8/Jy3Fx8laBPdGzGaqD1CwC2G6Df4MSurGzdnzypkaNvnWZd1KvvxNWyQ33+Sh4UApdmgFZSL0v9x9IiBTnb8iVK3MVCGJRq91A1YBNM9VM+bb+g4TOtCkN2gV69Vy9XROGgUAan5/M7bau3FBr9/ui8sh4AhvWVP2Z52T5esOwGApdAzY2tEngtqY0mhrKZo8RcZDmvFE8BgVAr1+1DxEkugSx0aFsP9DT2bz3MID7LWn1+r/qnOnPieTELrjIDA6pDXNMyGwngJAvz8Br+TE6qJp09cvzFbyQv0RhuNrZU0xbZmJ7i1pNBIX1gdGsydO78GmPbGdRqJjwiTJ3RQ+/6vhbtxRcQWaVkZ0go2Vsw+uCIiLzs4jsaLANxdFki0q8xteO2jg5CLgwJt8ecdKU7o5lkqlxkvgNukOadGzt9RkOCZjRVlc1SJCt9lDF9mMN1AfKy515eGko6kmeTgni6HBnHOAU75BhTdH1qib6f3JBU6S1n1ddjWuSms=
x-forefront-antispam-report: CIP:255.255.255.255; CTRY:; LANG:en; SCL:1; SRV:; IPV:NLI; SFV:NSPM; H:HE1PR0701MB3050.eurprd07.prod.outlook.com; PTR:; CAT:NONE; SFS:(4636009)(376002)(366004)(346002)(396003)(136003)(39860400002)(66476007)(8936002)(66946007)(66446008)(66556008)(53546011)(6506007)(15650500001)(26005)(36756003)(122000001)(186003)(76116006)(86362001)(38100700002)(2906002)(71200400001)(83380400001)(2616005)(64756008)(6916009)(966005)(5660300002)(44832011)(6512007)(478600001)(6486002)(33656002)(316002)(8676002)(45980500001); DIR:OUT; SFP:1101;
x-ms-exchange-antispam-messagedata: =?utf-8?B?bzR5eGxmVEluSDZnL1RDSHREUlg0cGdtdF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aC91OGYwT1hybk5TZz09?=
x-ms-exchange-transport-forked: True
Content-Type: text/plain; charset="utf-8"
Content-ID: <2666C9432B5F424EBB669BD091301568@eurprd07.prod.outlook.com>
Content-Transfer-Encoding: base64
MIME-Version: 1.0
X-OriginatorOrg: ericsson.com
X-MS-Exchange-CrossTenant-AuthAs: Internal
X-MS-Exchange-CrossTenant-AuthSource: HE1PR0701MB3050.eurprd07.prod.outlook.com
X-MS-Exchange-CrossTenant-Network-Message-Id: a31017e7-9d1b-4697-1d26-08d90989fdd9
X-MS-Exchange-CrossTenant-originalarrivaltime: 27 Apr 2021 14:37:32.2310 (UTC)
X-MS-Exchange-CrossTenant-fromentityheader: Hosted
X-MS-Exchange-CrossTenant-id: 92e84ceb-fbfd-47ab-be52-080c6b87953f
X-MS-Exchange-CrossTenant-mailboxtype: HOSTED
X-MS-Exchange-CrossTenant-userprincipalname: bkBCWdV/Fklc9q+5pYjl6kp7sgx4+1PHSX9v5nlG9bTXQw22TCwWa5KPVgpvdcwOcp19/+h7IW2yJGF83p+2vAK6Tm8kvjFEPLxPfr8bmgk=
X-MS-Exchange-Transport-CrossTenantHeadersStamped: HE1PR0702MB3548
Archived-At: <https://mailarchive.ietf.org/arch/msg/lake/BPWLWNqFWoqf4rPUV8NibByAeb0>
Subject: Re: [Lake] Error message "Success" (relates to #74)
X-BeenThere: lake@ietf.org
X-Mailman-Version: 2.1.29
Precedence: list
List-Id: Lightweight Authenticated Key Exchange <lake.ietf.org>
List-Unsubscribe: <https://www.ietf.org/mailman/options/lake>, <mailto:lake-request@ietf.org?subject=unsubscribe>
List-Archive: <https://mailarchive.ietf.org/arch/browse/lake/>
List-Post: <mailto:lake@ietf.org>
List-Help: <mailto:lake-request@ietf.org?subject=help>
List-Subscribe: <https://www.ietf.org/mailman/listinfo/lake>, <mailto:lake-request@ietf.org?subject=subscribe>
X-List-Received-Date: Tue, 27 Apr 2021 14:37:40 -0000

Many OSs, shells, and programming languages (e.g. C) use 0 for success and everything non-zero (negative or positive) is considered an error. This seems like a good approach for EDHOC as well.

John

-----Original Message-----
From: Lake <lake-bounces@ietf.org> on behalf of Göran Selander <goran.selander=40ericsson.com@dmarc.ietf.org>
Date: Friday, 23 April 2021 at 15:34
To: "lake@ietf.org" <lake@ietf.org>
Subject: [Lake] Error message "Success" (relates to #74)

Another issue we didn't have time to discuss was regarding values of error codes, see
https://protect2.fireeye.com/v1/url?k=d144fa19-8edfc000-d144ba82-8682aaa22bc0-6c57ad5434ca2797&q=1&e=e991de8b-9403-4dc8-8173-4cc9ce577129&u=https%3A%2F%2Fgithub.com%2Flake-wg%2Fedhoc%2Fissues%2F74


Two questions with regards to Error code "Success"

* In -06 we have assigned error code -1 for Success. This does not align with values used for success codes in other settings, any view on that?

* What should be the type of the payload (if any) of a Success message? Text string? Containing what?

Any input is welcome.

Thanks
Göran




74 <— Align with two Sucess 0, success 2. TBD for success.

-- 
Lake mailing list
Lake@ietf.org
https://www.ietf.org/mailman/listinfo/lake