Profile include support

Russ Allbery rra at stanford.edu
Mon Aug 23 18:35:33 EDT 2010


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 at stanford.edu)             <http://www.eyrie.org/~eagle/>



More information about the krbdev mailing list