[15964] in Kerberos_V5_Development
Re: DAL cleanup project proposal
daemon@ATHENA.MIT.EDU (Simo Sorce)
Sun Jul 4 13:58:52 2010
Date: Sun, 4 Jul 2010 13:58:43 -0400
From: Simo Sorce <ssorce@redhat.com>
To: ghudson@mit.edu
Message-ID: <20100704135843.4bf109f2@willson.li.ssimo.org>
In-Reply-To: <201007031844.o63Iikxg022704@outgoing.mit.edu>
Mime-Version: 1.0
Cc: krbdev@mit.edu
Content-Type: text/plain; charset="us-ascii"
Content-Transfer-Encoding: 7bit
Errors-To: krbdev-bounces@mit.edu
On Sat, 3 Jul 2010 14:44:46 -0400 (EDT)
ghudson@MIT.EDU wrote:
> I've made a few minor changes to the project proposal as I've started
> working more with the code. As a result, I've split out the principal
> and policy API changes (mostly principal API changes) into a separate
> section from "Simple Cleanups".
>
> The most notable new change is that I want to make get_principal
> responsible for allocating the DB entry structure. In my experience,
> it's easier to perform robust error handling when APIs allocate the
> container than when the caller does.
Does this means we can potentially have more allocations when
enumerating principals ?
Passing down a buffer allows you to reuse the same one over and over
with out any allocation if you want to.
Of course if the code was already allocating a buffer before each
get_principal call the point is moot.
Simo.
--
Simo Sorce * Red Hat, Inc * New York
_______________________________________________
krbdev mailing list krbdev@mit.edu
https://mailman.mit.edu/mailman/listinfo/krbdev