[16129] in Kerberos_V5_Development

home help back first fref pref prev next nref lref last post

Re: Profile include support

daemon@ATHENA.MIT.EDU (Russ Allbery)
Mon Aug 23 18:35:37 2010

From: Russ Allbery <rra@stanford.edu>
To: krbdev@mit.edu
In-Reply-To: <11594_1282602724_4C72F6E4_11594_1710_1_87y6bx9d3u.fsf@windlord.stanford.edu>
	(Russ Allbery's message of "Mon, 23 Aug 2010 15:29:57 -0700")
Date: Mon, 23 Aug 2010 15:35:33 -0700
Message-ID: <87tyml9cui.fsf@windlord.stanford.edu>
MIME-Version: 1.0
Content-Type: text/plain; charset="us-ascii"
Content-Transfer-Encoding: 7bit
Errors-To: krbdev-bounces@mit.edu

Incidentally, this underscores an important design consideration whenever
creating an object-oriented C API, although it's sadly too late for
Kerberos to benefit: never do anything in the constructor that can fail
for any reason other than memory allocation failure or some similar system
error that can be fully reported via errno.  Always make people create the
object (in this case, the Kerberos context) and then make a separate
initialization call for anything that might be able to fail, so that you
have an object from which to report extended errors.

-- 
Russ Allbery (rra@stanford.edu)             <http://www.eyrie.org/~eagle/>
_______________________________________________
krbdev mailing list             krbdev@mit.edu
https://mailman.mit.edu/mailman/listinfo/krbdev

home help back first fref pref prev next nref lref last post