[1911] in Kerberos-V5-bugs
krb5_dbe_lookup_tl_data interface is poor
daemon@ATHENA.MIT.EDU (Barry Jaspan)
Tue May 7 18:18:48 1996
Date: Tue, 7 May 96 18:18:20 -0400
From: "Barry Jaspan" <bjaspan@MIT.EDU>
To: krb5-bugs@MIT.EDU
krb5_dbe_lookup_tl_data has a poor interface. It always returns zero.
If no tl_data with the requested type exists, the length field of
returned structure is zero, so a caller can tell what happened, but I
think it should return a "not found" error code. We can either return
ENOENT, create a generic "record not found" error code, or create a
tl_data-specific error code.
When the function behavior is changed, all callers or the function
will have to be updated. This includes, at least, kdb_get_entry in
libkadmsrv.a's server_kdb.c.
Barry