diff options
author | Ken Raeburn <raeburn@mit.edu> | 2007-12-22 03:12:50 +0000 |
---|---|---|
committer | Ken Raeburn <raeburn@mit.edu> | 2007-12-22 03:12:50 +0000 |
commit | 8787ba66c68dd2388b712ada600f2689c13c401c (patch) | |
tree | 58d398cd2e196b4e893ab1ecc608adfaee81c94e /src/kdc/kdc_util.h | |
parent | 4bb06dac53226ad0a0791ca4a8a26c575e23e20f (diff) | |
download | krb5-8787ba66c68dd2388b712ada600f2689c13c401c.tar.gz krb5-8787ba66c68dd2388b712ada600f2689c13c401c.tar.xz krb5-8787ba66c68dd2388b712ada600f2689c13c401c.zip |
Wrap krb5_db_get_principal function with get_principal (which will
eventually release the global lock and reacquire it) and
get_principal_locked (which will retain the global lock), and change
callers to use the wrappers, so we can simplify some ugliness at the call
sites.
git-svn-id: svn://anonsvn.mit.edu/krb5/trunk@20195 dc483132-0cff-0310-8789-dd5450dbe970
Diffstat (limited to 'src/kdc/kdc_util.h')
-rw-r--r-- | src/kdc/kdc_util.h | 13 |
1 files changed, 12 insertions, 1 deletions
diff --git a/src/kdc/kdc_util.h b/src/kdc/kdc_util.h index 61dc5672bd..e3982254cf 100644 --- a/src/kdc/kdc_util.h +++ b/src/kdc/kdc_util.h @@ -1,7 +1,7 @@ /* * kdc/kdc_util.h * - * Copyright 1990 by the Massachusetts Institute of Technology. + * Copyright 1990, 2007 by the Massachusetts Institute of Technology. * * Export of this software from the United States of America may * require a specific license from the United States Government. @@ -168,6 +168,17 @@ krb5_boolean kdc_check_lookaside (krb5_data *, krb5_data **); void kdc_insert_lookaside (krb5_data *, krb5_data *); void kdc_free_lookaside(krb5_context); +/* kdc_util.c */ +krb5_error_code +get_principal_locked (krb5_context kcontext, + krb5_const_principal search_for, + krb5_db_entry *entries, int *nentries, + krb5_boolean *more); +krb5_error_code +get_principal (krb5_context kcontext, + krb5_const_principal search_for, + krb5_db_entry *entries, int *nentries, krb5_boolean *more); + #define isflagset(flagfield, flag) (flagfield & (flag)) #define setflag(flagfield, flag) (flagfield |= (flag)) #define clear(flagfield, flag) (flagfield &= ~(flag)) |