Re: [kitten] New Version Notification for draft-kaduk-kitten-gss-loop-02.txt (fwd)
Greg Hudson <ghudson@MIT.EDU> Fri, 17 January 2014 21:07 UTC
Return-Path: <ghudson@mit.edu>
X-Original-To: kitten@ietfa.amsl.com
Delivered-To: kitten@ietfa.amsl.com
Received: from localhost (ietfa.amsl.com [127.0.0.1]) by ietfa.amsl.com (Postfix) with ESMTP id 0D1781ACCDF for <kitten@ietfa.amsl.com>; Fri, 17 Jan 2014 13:07:07 -0800 (PST)
X-Virus-Scanned: amavisd-new at amsl.com
X-Spam-Flag: NO
X-Spam-Score: -3.139
X-Spam-Level:
X-Spam-Status: No, score=-3.139 tagged_above=-999 required=5 tests=[BAYES_00=-1.9, RCVD_IN_DNSWL_LOW=-0.7, RP_MATCHES_RCVD=-0.538, SPF_PASS=-0.001] autolearn=ham
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 Ll0vg-cnDxfX for <kitten@ietfa.amsl.com>; Fri, 17 Jan 2014 13:07:05 -0800 (PST)
Received: from dmz-mailsec-scanner-2.mit.edu (dmz-mailsec-scanner-2.mit.edu [18.9.25.13]) by ietfa.amsl.com (Postfix) with ESMTP id 779101AC863 for <kitten@ietf.org>; Fri, 17 Jan 2014 13:07:04 -0800 (PST)
X-AuditID: 1209190d-f79776d000000ce9-1b-52d99b6cac41
Received: from mailhub-auth-4.mit.edu ( [18.7.62.39]) (using TLS with cipher AES256-SHA (256/256 bits)) (Client did not present a certificate) by dmz-mailsec-scanner-2.mit.edu (Symantec Messaging Gateway) with SMTP id D2.99.03305.C6B99D25; Fri, 17 Jan 2014 16:06:52 -0500 (EST)
Received: from outgoing.mit.edu (outgoing-auth-1.mit.edu [18.9.28.11]) by mailhub-auth-4.mit.edu (8.13.8/8.9.2) with ESMTP id s0HL6ku1031712; Fri, 17 Jan 2014 16:06:46 -0500
Received: from [18.101.8.203] (vpn-18-101-8-203.mit.edu [18.101.8.203]) (authenticated bits=0) (User authenticated as ghudson@ATHENA.MIT.EDU) by outgoing.mit.edu (8.13.8/8.12.4) with ESMTP id s0HL6iUd016881 (version=TLSv1/SSLv3 cipher=DHE-RSA-AES256-SHA bits=256 verify=NOT); Fri, 17 Jan 2014 16:06:45 -0500
Message-ID: <52D99B63.3040005@mit.edu>
Date: Fri, 17 Jan 2014 16:06:43 -0500
From: Greg Hudson <ghudson@MIT.EDU>
User-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:24.0) Gecko/20100101 Thunderbird/24.2.0
MIME-Version: 1.0
To: Benjamin Kaduk <kaduk@mit.edu>, kitten@ietf.org
References: <alpine.GSO.1.10.1401141648420.27579@multics.mit.edu>
In-Reply-To: <alpine.GSO.1.10.1401141648420.27579@multics.mit.edu>
X-Enigmail-Version: 1.5.2
Content-Type: text/plain; charset="ISO-8859-1"
Content-Transfer-Encoding: 7bit
X-Brightmail-Tracker: H4sIAAAAAAAAA+NgFnrHIsWRmVeSWpSXmKPExsUixG6nrpsz+2aQwa7vohZHN69icWD0WLLk J1MAYxSXTUpqTmZZapG+XQJXxqsVO9gLHglVvDrQx9TA2M3fxcjJISFgIvGsZTY7hC0mceHe ejYQW0hgNpPEtJP5XYxcQPZGRomrz5oZIZwjTBK7XjwH6+AVUJOYOX8rmM0ioCoxdd1rsG42 AWWJg2e/sYDYogJhEnf/r2WEqBeUODnzCVhcRMBY4u7PG2C2sECsxP2+HqjNjhITX31nArE5 BZwkOj83MEJcJymxbdExsF3MAjoS7/oeMEPY8hLb385hnsAoOAvJillIymYhKVvAyLyKUTYl t0o3NzEzpzg1Wbc4OTEvL7VI10gvN7NELzWldBMjKFg5JXl3ML47qHSIUYCDUYmHV0L8RpAQ a2JZcWXuIUZJDiYlUV7lyTeDhPiS8lMqMxKLM+KLSnNSiw8xSnAwK4nwvm4HyvGmJFZWpRbl w6SkOViUxHlvctgHCQmkJ5akZqemFqQWwWRlODiUJHjXzQJqFCxKTU+tSMvMKUFIM3Fwggzn ARreCVLDW1yQmFucmQ6RP8WoKCXOKwKSEABJZJTmwfXCkskrRnGgV4R554NU8QATEVz3K6DB TECDRWLBBpckIqSkGhitNTruqPdmrOTbwNb+u5afaQuzkj7D9tW/KrZzVB/a2TT3Zqp7XPAb 7rw5dwL2HnDsbXL+Vn74/17T9x/XX+6ftz+i5WvQZ78G1fUaZZ17y19d37nZ6+LBaUKllV1v 8y+K6ycxZzy7trStNnWBinzGhnQ27xCxKb92Ln8x4VdkWH+Irsixm4+VWIozEg21mIuKEwF8 JELNAQMAAA==
Subject: Re: [kitten] New Version Notification for draft-kaduk-kitten-gss-loop-02.txt (fwd)
X-BeenThere: kitten@ietf.org
X-Mailman-Version: 2.1.15
Precedence: list
List-Id: Common Authentication Technologies - Next Generation <kitten.ietf.org>
List-Unsubscribe: <https://www.ietf.org/mailman/options/kitten>, <mailto:kitten-request@ietf.org?subject=unsubscribe>
List-Archive: <http://www.ietf.org/mail-archive/web/kitten/>
List-Post: <mailto:kitten@ietf.org>
List-Help: <mailto:kitten-request@ietf.org?subject=help>
List-Subscribe: <https://www.ietf.org/mailman/listinfo/kitten>, <mailto:kitten-request@ietf.org?subject=subscribe>
X-List-Received-Date: Fri, 17 Jan 2014 21:07:07 -0000
On 01/14/2014 04:55 PM, Benjamin Kaduk wrote:
> I made some minor edits to the body text and trimmed down the sample
> code to be more consistent with Greg's suggestions. I think Greg wants
> the sample code trimmed even further (i.e., to not have anything in the
> bodies of the {send,receive}_token functions, and possibly not have them
> at all, but I prefer to be more concrete.
My reasoning is that we cannot be concrete in a way which will be useful
to very many applications. Currently your stub send_token() and
receive_token() functions accept fd arguments, for instance, while a
typical caller would have some more complicated connection state object.
On a similar note, typical callers probably won't want to use warnx().
> Is it reasonable to adopt this document as a working-group draft at this
> time?
I think it is reasonable. To recap, the goal here is to reduce the
amount of verbiage that protocol standards (AFS, LDAP, etc.) must use to
describe how implementors should use GSSAPI, by giving them something
they can refer to.
> I am becoming more convinced that we should have Java sample code as
> well as C
I think that would be a fine thing, but shouldn't block the draft from
progressing.
> Finally, the C sample code has a comment (in two places, actually):
> /* It is safe to call gss_release_buffer twice on the same buffer. */
> This could potentially be misleading, as I believe our conclusion was
> that 2743/2744 do not explicitly require this to be safe. However, we
> believe that it is safe in all known implementations, and that an
> implementation where it was not safe would be very difficult to use
> correctly. Is it reasonable to leave this comment in place under the
> reasoning that it is describing the assumptions made by the sample code
> (as opposed to describing the behavior mandated by the specification)?
I think it's reasonable to retroactively standardize this behavior of
gss_release_buffer, if it's a property of every implementation we're
aware of.
But if we're not going to do so (because gss-loop isn't a normative
document and we're not prepared to issue a 2744 update), then I don't
think it's appropriate for the sample code in gss-loop to be making that
assumption. Unfortunately, I don't know of a nice elegant way to
restructure the code so that the assumption isn't necessary.
- [kitten] New Version Notification for draft-kaduk… Benjamin Kaduk
- Re: [kitten] New Version Notification for draft-k… Greg Hudson
- Re: [kitten] New Version Notification for draft-k… Martin Rex
- Re: [kitten] New Version Notification for draft-k… Nico Williams
- Re: [kitten] New Version Notification for draft-k… Russ Allbery
- Re: [kitten] New Version Notification for draft-k… Greg Hudson
- Re: [kitten] New Version Notification for draft-k… Nico Williams
- Re: [kitten] New Version Notification for draft-k… Nico Williams
- Re: [kitten] New Version Notification for draft-k… Jeffrey Hutzelman
- Re: [kitten] New Version Notification for draft-k… Nico Williams
- Re: [kitten] New Version Notification for draft-k… Martin Rex
- Re: [kitten] New Version Notification for draft-k… Jeffrey Hutzelman
- Re: [kitten] New Version Notification for draft-k… Martin Rex
- Re: [kitten] New Version Notification for draft-k… Jeffrey Hutzelman
- Re: [kitten] New Version Notification for draft-k… Martin Rex
- Re: [kitten] New Version Notification for draft-k… Benjamin Kaduk