Re: [kitten] GSS-API and timeouts

Simon Josefsson <simon@josefsson.org> Wed, 04 April 2012 17:47 UTC

Return-Path: <simon@josefsson.org>
X-Original-To: kitten@ietfa.amsl.com
Delivered-To: kitten@ietfa.amsl.com
Received: from localhost (localhost [127.0.0.1]) by ietfa.amsl.com (Postfix) with ESMTP id CCA9621F87D4 for <kitten@ietfa.amsl.com>; Wed, 4 Apr 2012 10:47:52 -0700 (PDT)
X-Virus-Scanned: amavisd-new at amsl.com
X-Spam-Flag: NO
X-Spam-Score: -99.797
X-Spam-Level:
X-Spam-Status: No, score=-99.797 tagged_above=-999 required=5 tests=[AWL=0.112, BAYES_00=-2.599, FH_HOST_EQ_D_D_D_D=0.765, HELO_MISMATCH_COM=0.553, HOST_EQ_STATICB=1.372, USER_IN_WHITELIST=-100]
Received: from mail.ietf.org ([12.22.58.30]) by localhost (ietfa.amsl.com [127.0.0.1]) (amavisd-new, port 10024) with ESMTP id ktiA-0v2+kIz for <kitten@ietfa.amsl.com>; Wed, 4 Apr 2012 10:47:52 -0700 (PDT)
Received: from yxa-v.extundo.com (static-213-115-179-173.sme.bredbandsbolaget.se [213.115.179.173]) by ietfa.amsl.com (Postfix) with ESMTP id 104E921F8772 for <kitten@ietf.org>; Wed, 4 Apr 2012 10:47:51 -0700 (PDT)
Received: from latte.josefsson.org (static-213-115-179-130.sme.bredbandsbolaget.se [213.115.179.130]) (authenticated bits=0) by yxa-v.extundo.com (8.14.3/8.14.3/Debian-5+lenny1) with ESMTP id q34Hle33004206 (version=TLSv1/SSLv3 cipher=DHE-RSA-AES128-SHA bits=128 verify=NOT); Wed, 4 Apr 2012 19:47:41 +0200
From: Simon Josefsson <simon@josefsson.org>
To: Nico Williams <nico@cryptonector.com>
References: <87obr7lfqc.fsf@latte.josefsson.org> <CAK3OfOgOKr1=rA2GyKQTaxuRgc14+KnyWrLuBbTdkX3U_zaYyw__38079.8448961743$1333557096$gmane$org@mail.gmail.com> <87d37njtvv.fsf@latte.josefsson.org> <CAK3OfOh3CfYEdEXgOUfoLaEtUXZ8t-L3h6po3V+fmWjP-jREBQ__49827.1523429596$1333560672$gmane$org@mail.gmail.com>
OpenPGP: id=B565716F; url=http://josefsson.org/key.txt
X-Hashcash: 1:22:120404:kitten@ietf.org::uQ1QKikRmEZ7RE5B:DXjx
X-Hashcash: 1:22:120404:nico@cryptonector.com::eb+0S+ta+R3XQowF:A1YE
Date: Wed, 04 Apr 2012 19:47:40 +0200
In-Reply-To: <CAK3OfOh3CfYEdEXgOUfoLaEtUXZ8t-L3h6po3V+fmWjP-jREBQ__49827.1523429596$1333560672$gmane$org@mail.gmail.com> (Nico Williams's message of "Wed, 4 Apr 2012 12:30:57 -0500")
Message-ID: <87sjgjie2r.fsf@latte.josefsson.org>
User-Agent: Gnus/5.130004 (Ma Gnus v0.4) Emacs/24.0.94 (gnu/linux)
MIME-Version: 1.0
Content-Type: text/plain
X-Virus-Scanned: clamav-milter 0.97.3 at yxa-v
X-Virus-Status: Clean
Cc: kitten@ietf.org
Subject: Re: [kitten] GSS-API and timeouts
X-BeenThere: kitten@ietf.org
X-Mailman-Version: 2.1.12
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: Wed, 04 Apr 2012 17:47:52 -0000

Nico Williams <nico@cryptonector.com> writes:

> On Wed, Apr 4, 2012 at 12:20 PM, Simon Josefsson <simon@josefsson.org> wrote:
>> Nico Williams <nico@cryptonector.com> writes:
>>
>>> If you don't want to tackle async init/accept_sec_context now then I
>>> suggest that you use threads and thread cancellation.
>>
>> And not have any timeout in the implementation of the mechanism itself?
>
> Right.  Why not?  You'd have to have cancellation handlers and so on,
> but then, proper pthread use requires it anyways.  Not that anyone
> bores making libraries cancel-safe -- it's a lot of work, and
> pthread_cacnel() is rarely ever used.
>
> On the other hand, both MIT and Heimdal have added the sorts of
> interfaces you proposed without any standardization effort, so nothing
> should stop you from doing the same.
>
> My problem with global settings is that they are global, but we know
> we have apps that load libraries that load libraries that load
> libraries that use GSS such that we end up having multiple GSS apps in
> one process.  This is why I dislike global settings.  My solution,
> when I get around to finishing it, will be a variant of the "pgss"
> proposal... (if you'd like to review the design you can, it's in my
> 'pgss' branch of my github Heimdal fork).

Ok.  Having no timeout is simpler to implement.  I'll try that and see
how it works.

Thanks,
/Simon