diff options
author | Zhanna Tsitkov <tsitkova@mit.edu> | 2008-08-20 21:09:14 +0000 |
---|---|---|
committer | Zhanna Tsitkov <tsitkova@mit.edu> | 2008-08-20 21:09:14 +0000 |
commit | dac88c2b08c7c4cab30b842008dc6fd0f2b4f1ff (patch) | |
tree | 4065cf84935a72c2a79016c3083b04a3693a1102 /src/lib/krb5/keytab | |
parent | 4c8485b11bb27a3763a8f0058547ee7ac84556fe (diff) | |
download | krb5-dac88c2b08c7c4cab30b842008dc6fd0f2b4f1ff.tar.gz krb5-dac88c2b08c7c4cab30b842008dc6fd0f2b4f1ff.tar.xz krb5-dac88c2b08c7c4cab30b842008dc6fd0f2b4f1ff.zip |
lean client changes
All changes are under LEAN_CLIENT macro. Application server functionality is disabled.
Ticket:new
git-svn-id: svn://anonsvn.mit.edu/krb5/trunk@20680 dc483132-0cff-0310-8789-dd5450dbe970
Diffstat (limited to 'src/lib/krb5/keytab')
-rw-r--r-- | src/lib/krb5/keytab/kt_file.c | 6 | ||||
-rw-r--r-- | src/lib/krb5/keytab/kt_memory.c | 4 | ||||
-rw-r--r-- | src/lib/krb5/keytab/kt_srvtab.c | 6 | ||||
-rw-r--r-- | src/lib/krb5/keytab/ktadd.c | 6 | ||||
-rw-r--r-- | src/lib/krb5/keytab/ktbase.c | 6 | ||||
-rw-r--r-- | src/lib/krb5/keytab/ktdefault.c | 5 | ||||
-rw-r--r-- | src/lib/krb5/keytab/ktfns.c | 6 | ||||
-rw-r--r-- | src/lib/krb5/keytab/ktfr_entry.c | 5 | ||||
-rw-r--r-- | src/lib/krb5/keytab/ktremove.c | 5 | ||||
-rw-r--r-- | src/lib/krb5/keytab/read_servi.c | 5 |
10 files changed, 44 insertions, 10 deletions
diff --git a/src/lib/krb5/keytab/kt_file.c b/src/lib/krb5/keytab/kt_file.c index 357bb12465..cd2298ba54 100644 --- a/src/lib/krb5/keytab/kt_file.c +++ b/src/lib/krb5/keytab/kt_file.c @@ -1,7 +1,7 @@ /* * lib/krb5/keytab/kt_file.c * - * Copyright 1990,1991,1995,2007 by the Massachusetts Institute of Technology. + * Copyright 1990,1991,1995,2007,2008 by the Massachusetts Institute of Technology. * All Rights Reserved. * * Export of this software from the United States of America may @@ -25,6 +25,8 @@ * */ +#ifndef LEAN_CLIENT + #include "k5-int.h" #include <stdio.h> @@ -1768,3 +1770,5 @@ krb5_ktfileint_find_slot(krb5_context context, krb5_keytab id, krb5_int32 *size_ return 0; } +#endif /* LEAN_CLIENT */ + diff --git a/src/lib/krb5/keytab/kt_memory.c b/src/lib/krb5/keytab/kt_memory.c index bf9634e53a..eb1dd77e03 100644 --- a/src/lib/krb5/keytab/kt_memory.c +++ b/src/lib/krb5/keytab/kt_memory.c @@ -28,6 +28,8 @@ #include "kt-int.h" #include <stdio.h> +#ifndef LEAN_CLIENT + #define HEIMDAL_COMPATIBLE /* @@ -674,3 +676,5 @@ const struct _krb5_kt_ops krb5_mkt_ops = { NULL }; +#endif /* LEAN_CLIENT */ + diff --git a/src/lib/krb5/keytab/kt_srvtab.c b/src/lib/krb5/keytab/kt_srvtab.c index 77546446e0..2bc4603454 100644 --- a/src/lib/krb5/keytab/kt_srvtab.c +++ b/src/lib/krb5/keytab/kt_srvtab.c @@ -1,7 +1,7 @@ /* * lib/krb5/keytab/srvtab/kts_resolv.c * - * Copyright 1990,1991,2002,2007 by the Massachusetts Institute of Technology. + * Copyright 1990,1991,2002,2007,2008 by the Massachusetts Institute of Technology. * All Rights Reserved. * * Export of this software from the United States of America may @@ -27,6 +27,8 @@ #include "k5-int.h" #include <stdio.h> +#ifndef LEAN_CLIENT + /* * Constants */ @@ -472,3 +474,5 @@ krb5_ktsrvint_read_entry(krb5_context context, krb5_keytab id, krb5_keytab_entry return 0; } +#endif /* LEAN_CLIENT */ + diff --git a/src/lib/krb5/keytab/ktadd.c b/src/lib/krb5/keytab/ktadd.c index b7c1b92164..360dd64cd7 100644 --- a/src/lib/krb5/keytab/ktadd.c +++ b/src/lib/krb5/keytab/ktadd.c @@ -1,7 +1,7 @@ /* * lib/krb5/keytab/ktadd.c * - * Copyright 1990 by the Massachusetts Institute of Technology. + * Copyright 1990,2008 by the Massachusetts Institute of Technology. * All Rights Reserved. * * Export of this software from the United States of America may @@ -29,6 +29,8 @@ #include "k5-int.h" +#ifndef LEAN_CLIENT + krb5_error_code KRB5_CALLCONV krb5_kt_add_entry (krb5_context context, krb5_keytab id, krb5_keytab_entry *entry) { @@ -37,3 +39,5 @@ krb5_kt_add_entry (krb5_context context, krb5_keytab id, krb5_keytab_entry *entr else return KRB5_KT_NOWRITE; } +#endif /* LEAN_CLIENT */ + diff --git a/src/lib/krb5/keytab/ktbase.c b/src/lib/krb5/keytab/ktbase.c index 3e4f6a6be6..b68b351c6a 100644 --- a/src/lib/krb5/keytab/ktbase.c +++ b/src/lib/krb5/keytab/ktbase.c @@ -1,7 +1,7 @@ /* * lib/krb5/keytab/ktbase.c * - * Copyright 1990 by the Massachusetts Institute of Technology. + * Copyright 1990,2008 by the Massachusetts Institute of Technology. * All Rights Reserved. * * Export of this software from the United States of America may @@ -53,6 +53,8 @@ #include "k5-thread.h" #include "kt-int.h" +#ifndef LEAN_CLIENT + extern const krb5_kt_ops krb5_ktf_ops; extern const krb5_kt_ops krb5_ktf_writable_ops; extern const krb5_kt_ops krb5_kts_ops; @@ -283,3 +285,5 @@ krb5_ser_keytab_init(krb5_context kcontext) { return(krb5_register_serializer(kcontext, &krb5_keytab_ser_entry)); } +#endif /* LEAN_CLIENT */ + diff --git a/src/lib/krb5/keytab/ktdefault.c b/src/lib/krb5/keytab/ktdefault.c index 971f29f599..3d7ee0946c 100644 --- a/src/lib/krb5/keytab/ktdefault.c +++ b/src/lib/krb5/keytab/ktdefault.c @@ -1,7 +1,7 @@ /* * lib/krb5/keytab/ktdefault.c * - * Copyright 1990 by the Massachusetts Institute of Technology. + * Copyright 1990,2008 by the Massachusetts Institute of Technology. * All Rights Reserved. * * Export of this software from the United States of America may @@ -30,6 +30,7 @@ #include "k5-int.h" #include <stdio.h> +#ifndef LEAN_CLIENT krb5_error_code KRB5_CALLCONV krb5_kt_default(krb5_context context, krb5_keytab *id) { @@ -41,5 +42,5 @@ krb5_kt_default(krb5_context context, krb5_keytab *id) return krb5_kt_resolve(context, defname, id); } - +#endif /* LEAN_CLIENT */ diff --git a/src/lib/krb5/keytab/ktfns.c b/src/lib/krb5/keytab/ktfns.c index 24d8eb267b..9239f3d167 100644 --- a/src/lib/krb5/keytab/ktfns.c +++ b/src/lib/krb5/keytab/ktfns.c @@ -1,7 +1,7 @@ /* * lib/krb5/keytab/ktfns.c * - * Copyright 2001 by the Massachusetts Institute of Technology. + * Copyright 2001,2008 by the Massachusetts Institute of Technology. * All Rights Reserved. * * Export of this software from the United States of America may @@ -28,6 +28,8 @@ * Dispatch methods for keytab code. */ +#ifndef LEAN_CLIENT + #include "k5-int.h" const char * KRB5_CALLCONV @@ -94,3 +96,5 @@ krb5_kt_end_seq_get(krb5_context context, krb5_keytab keytab, { return krb5_x((keytab)->ops->end_get,(context, keytab, cursor)); } +#endif /* LEAN_CLIENT */ + diff --git a/src/lib/krb5/keytab/ktfr_entry.c b/src/lib/krb5/keytab/ktfr_entry.c index b4305e21af..e046232546 100644 --- a/src/lib/krb5/keytab/ktfr_entry.c +++ b/src/lib/krb5/keytab/ktfr_entry.c @@ -1,7 +1,7 @@ /* * lib/krb5/keytab/ktfr_entry.c * - * Copyright 1990 by the Massachusetts Institute of Technology. + * Copyright 1990, 2008 by the Massachusetts Institute of Technology. * All Rights Reserved. * * Export of this software from the United States of America may @@ -26,6 +26,7 @@ * * krb5_kt_free_entry() */ +#ifndef LEAN_CLIENT #include "k5-int.h" @@ -48,3 +49,5 @@ krb5_kt_free_entry (krb5_context context, krb5_keytab_entry *entry) { return krb5_free_keytab_entry_contents (context, entry); } +#endif /* LEAN_CLIENT */ + diff --git a/src/lib/krb5/keytab/ktremove.c b/src/lib/krb5/keytab/ktremove.c index d101a70651..4ba6063f72 100644 --- a/src/lib/krb5/keytab/ktremove.c +++ b/src/lib/krb5/keytab/ktremove.c @@ -1,7 +1,7 @@ /* * lib/krb5/keytab/ktremove.c * - * Copyright 1990 by the Massachusetts Institute of Technology. + * Copyright 1990,2008 by the Massachusetts Institute of Technology. * All Rights Reserved. * * Export of this software from the United States of America may @@ -26,6 +26,7 @@ * * krb5_kt_remove_entry() */ +#ifndef LEAN_CLIENT #include "k5-int.h" @@ -37,3 +38,5 @@ krb5_kt_remove_entry (krb5_context context, krb5_keytab id, krb5_keytab_entry *e else return KRB5_KT_NOWRITE; } +#endif /* LEAN_CLIENT */ + diff --git a/src/lib/krb5/keytab/read_servi.c b/src/lib/krb5/keytab/read_servi.c index 3455300ab0..6638a5a927 100644 --- a/src/lib/krb5/keytab/read_servi.c +++ b/src/lib/krb5/keytab/read_servi.c @@ -1,7 +1,7 @@ /* * lib/krb5/keytab/read_servi.c * - * Copyright 1990 by the Massachusetts Institute of Technology. + * Copyright 1990,2008 by the Massachusetts Institute of Technology. * All Rights Reserved. * * Export of this software from the United States of America may @@ -29,6 +29,7 @@ * It handles all of the opening and closing of the keytab * internally. */ +#ifndef LEAN_CLIENT #include "k5-int.h" @@ -79,3 +80,5 @@ krb5_kt_read_service_key(krb5_context context, krb5_pointer keyprocarg, krb5_pri return (KSUCCESS); } +#endif /* LEAN_CLIENT */ + |