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/gssapi/spnego | |
| parent | 4c8485b11bb27a3763a8f0058547ee7ac84556fe (diff) | |
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/gssapi/spnego')
| -rw-r--r-- | src/lib/gssapi/spnego/gssapiP_spnego.h | 5 | ||||
| -rw-r--r-- | src/lib/gssapi/spnego/spnego_mech.c | 24 |
2 files changed, 23 insertions, 6 deletions
diff --git a/src/lib/gssapi/spnego/gssapiP_spnego.h b/src/lib/gssapi/spnego/gssapiP_spnego.h index 1c8fd7a7b..717181c6b 100644 --- a/src/lib/gssapi/spnego/gssapiP_spnego.h +++ b/src/lib/gssapi/spnego/gssapiP_spnego.h @@ -167,6 +167,7 @@ OM_uint32 spnego_gss_init_sec_context OM_uint32 * /* time_rec */ ); +#ifndef LEAN_CLIENT OM_uint32 spnego_gss_accept_sec_context ( void *, /* spnego context */ @@ -183,6 +184,7 @@ OM_uint32 spnego_gss_accept_sec_context /* CSTYLED */ gss_cred_id_t * /* delegated_cred_handle */ ); +#endif /* LEAN_CLIENT */ OM_uint32 spnego_gss_display_name ( @@ -276,7 +278,7 @@ OM_uint32 spnego_gss_context_time const gss_ctx_id_t context_handle, OM_uint32 *time_rec ); - +#ifndef LEAN_CLIENT OM_uint32 spnego_gss_export_sec_context ( void *context, @@ -292,6 +294,7 @@ OM_uint32 spnego_gss_import_sec_context const gss_buffer_t interprocess_token, gss_ctx_id_t *context_handle ); +#endif /* LEAN_CLIENT */ OM_uint32 spnego_gss_inquire_context ( diff --git a/src/lib/gssapi/spnego/spnego_mech.c b/src/lib/gssapi/spnego/spnego_mech.c index 9f68a6ccd..775306f0b 100644 --- a/src/lib/gssapi/spnego/spnego_mech.c +++ b/src/lib/gssapi/spnego/spnego_mech.c @@ -1,5 +1,5 @@ /* - * Copyright (C) 2006,2007 by the Massachusetts Institute of Technology. + * Copyright (C) 2006,2008 by the Massachusetts Institute of Technology. * All rights reserved. * * Export of this software from the United States of America may @@ -45,6 +45,7 @@ #include "gssapiP_spnego.h" #include <gssapi_err_generic.h> + #undef g_token_size #undef g_verify_token_header #undef g_make_token_header @@ -164,7 +165,11 @@ static struct gss_config spnego_mechanism = spnego_gss_acquire_cred, spnego_gss_release_cred, spnego_gss_init_sec_context, +#ifndef LEAN_CLIENT spnego_gss_accept_sec_context, +#else + NULL, +#endif /* LEAN_CLIENT */ NULL, /* gss_process_context_token */ spnego_gss_delete_sec_context, /* gss_delete_sec_context */ spnego_gss_context_time, /* gss_context_time */ @@ -180,8 +185,13 @@ static struct gss_config spnego_mechanism = spnego_gss_release_name, NULL, /* gss_inquire_cred */ NULL, /* gss_add_cred */ - spnego_gss_export_sec_context, /* gss_export_sec_context */ - spnego_gss_import_sec_context, /* gss_import_sec_context */ +#ifndef LEAN_CLIENT + spnego_gss_export_sec_context, /* gss_export_sec_context */ + spnego_gss_import_sec_context, /* gss_import_sec_context */ +#else + NULL, /* gss_export_sec_context */ + NULL, /* gss_import_sec_context */ +#endif /* LEAN_CLIENT */ NULL, /* gss_inquire_cred_by_mech */ spnego_gss_inquire_names_for_mech, spnego_gss_inquire_context, /* gss_inquire_context */ @@ -1091,7 +1101,7 @@ cleanup: gss_release_oid_set(&tmpmin, &mech_set); return ret; } - +#ifndef LEAN_CLIENT /* * Wrap call to gss_accept_sec_context() and update state * accordingly. @@ -1290,6 +1300,7 @@ cleanup: } return ret; } +#endif /* LEAN_CLIENT */ /*ARGSUSED*/ @@ -1336,6 +1347,7 @@ spnego_gss_display_status(void *ctx, return (GSS_S_COMPLETE); } + /*ARGSUSED*/ OM_uint32 spnego_gss_import_name(void *ctx, @@ -1389,6 +1401,7 @@ spnego_gss_display_name(void *ctx, return (status); } + /*ARGSUSED*/ OM_uint32 spnego_gss_inquire_names_for_mech(void *ctx, @@ -1529,7 +1542,7 @@ spnego_gss_context_time(void *context, time_rec); return (ret); } - +#ifndef LEAN_CLIENT OM_uint32 spnego_gss_export_sec_context(void *context, OM_uint32 *minor_status, @@ -1555,6 +1568,7 @@ spnego_gss_import_sec_context(void *context, context_handle); return (ret); } +#endif /* LEAN_CLIENT */ OM_uint32 spnego_gss_inquire_context(void *context, |
