Debugging API for krb5

John Hascall john at
Thu Feb 5 22:54:45 EST 2004

> > So, have we decided that com_err is evil or have I missed something?
> com_err doesn't do debug-logging; it just provides error codes.
> -derek

Yea, I know. :)  I do however prefer the paradigm where you
supply the routine (like set_com_err_hook) because then you
can do whatever you want with the output.

krb5_set_debug_handler(context, myfunction, myarg);

void myfunction (
	krb5_sometype	facility,
	krb5_sometype	severity,
	void *		myarg,
	char *		fmt,
	va_list		ap
) {


More information about the krbdev mailing list