summaryrefslogtreecommitdiffstats
path: root/src/include
diff options
context:
space:
mode:
authorGreg Hudson <ghudson@mit.edu>2012-10-23 13:02:12 -0400
committerGreg Hudson <ghudson@mit.edu>2012-12-19 14:24:22 -0500
commit5c23bce0e8d3328bb36bc85ee10cfac486b8ae9b (patch)
treeae833e0dc6016ded58b0f89cfc30d26e5521afcf /src/include
parentf0794cba6a406fc834434eb6dc794bf29eda4a13 (diff)
downloadkrb5-5c23bce0e8d3328bb36bc85ee10cfac486b8ae9b.tar.gz
krb5-5c23bce0e8d3328bb36bc85ee10cfac486b8ae9b.tar.xz
krb5-5c23bce0e8d3328bb36bc85ee10cfac486b8ae9b.zip
Use a proper consumer interface for clpreauth
In preauth2.c, use wrapper functions for calls to clpreauth functions. Get rid of the expanded-out module table, instead using a helper function to find the handle for a preauth type. Replace use counts with a list of previously processed pa types. Check for pa type conflicts when loading clpreauth modules.
Diffstat (limited to 'src/include')
-rw-r--r--src/include/k5-trace.h9
1 files changed, 6 insertions, 3 deletions
diff --git a/src/include/k5-trace.h b/src/include/k5-trace.h
index df7159fe53..53dcba54c5 100644
--- a/src/include/k5-trace.h
+++ b/src/include/k5-trace.h
@@ -235,6 +235,9 @@ void krb5int_trace(krb5_context context, const char *fmt, ...);
#define TRACE_MSPAC_DISCARD_UNVERF(c) \
TRACE(c, "Filtering out unverified MS PAC")
+#define TRACE_PREAUTH_CONFLICT(c, name1, name2, patype) \
+ TRACE(c, "Preauth module {str} conflicts with module {str} for pa " \
+ "type {int}", name1, name2, (int) patype)
#define TRACE_PREAUTH_COOKIE(c, len, data) \
TRACE(c, "Received cookie: {lenstr}", (size_t) len, data)
#define TRACE_PREAUTH_ENC_TS_KEY_GAK(c, keyblock) \
@@ -252,9 +255,9 @@ void krb5int_trace(krb5_context context, const char *fmt, ...);
TRACE(c, "Processing preauth types: {patypes}", padata)
#define TRACE_PREAUTH_OUTPUT(c, padata) \
TRACE(c, "Produced preauth for next request: {patypes}", padata)
-#define TRACE_PREAUTH_PROCESS(c, name, patype, flags, code) \
- TRACE(c, "Preauth module {str} ({int}) (flags={int}) returned: " \
- "{kerr}", name, (int) patype, flags, code)
+#define TRACE_PREAUTH_PROCESS(c, name, patype, real, code) \
+ TRACE(c, "Preauth module {str} ({int}) ({str}) returned: " \
+ "{kerr}", name, (int) patype, real ? "real" : "info", code)
#define TRACE_PREAUTH_SAM_KEY_GAK(c, keyblock) \
TRACE(c, "AS key obtained for SAM: {keyblock}", keyblock)
#define TRACE_PREAUTH_SALT(c, salt, patype) \