[2276] in Kerberos_V5_Development

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

Macros in krb5.hin

daemon@ATHENA.MIT.EDU (Richard Basch)
Mon Feb 24 23:55:39 1997

Date: Mon, 24 Feb 1997 23:54:14 -0500
To: krbcore@MIT.EDU, krbdev@MIT.EDU
From: "Richard Basch" <basch@lehman.com>

After my work on functionalizing the cryptosystem macros, the only
remaining macros that are probably in need of functionalizing are those
dealing with ccache, keytab, and rcache.

However, I am not sure what the best approach to making these macros
into functions will be.  For each one of these, there is a "register"
procedure so that applications can register new systems.  Given that
this currently takes a XX_ops structure pointer, we are already exposing
the innards of these various systems, and functionalizing the macros
gains us little.  The macros simply dereference this exposed structure
that must remain exposed if we are to maintain the current "register"
semantics.

Comments?  Is this worth changing anytime in the Kerberos 1.x timeframe?
Personally, I think the only reason we may even want to consider
functionalizing these routines is not to hide the data but to make it
easier to dlopen a dynamic library and reference these routines at
runtime.  If this is the general consensus, functionalizing the macros
can be done at anytime without breaking existing applications, but we
must make sure we are happy with the XX_ops structures.

-- 
Richard Basch                   
Sr. Developer/Analyst, DSO      URL: http://web.mit.edu/basch/www/home.html
Lehman Brothers, Inc.           Email: basch@lehman.com, basch@mit.edu
101 Hudson St., 38th Floor      Fax:   +1-201-524-5828
Jersey City, NJ 07302-3988      Voice: +1-201-524-5049


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