Lite Client - the following calls are server-side functions:
authorZhanna Tsitkov <tsitkova@mit.edu>
Mon, 17 Nov 2008 21:04:06 +0000 (21:04 +0000)
committerZhanna Tsitkov <tsitkova@mit.edu>
Mon, 17 Nov 2008 21:04:06 +0000 (21:04 +0000)
decode_krb5_authenticator,
krb5_auth_con_getauthenticator,
krb5_copy_authenticator,
krb5_ser_authenticator_init
Take them out for the Lite CLient.

git-svn-id: svn://anonsvn.mit.edu/krb5/trunk@21129 dc483132-0cff-0310-8789-dd5450dbe970

src/lib/krb5/asn.1/krb5_decode.c
src/lib/krb5/krb/auth_con.c
src/lib/krb5/krb/copy_athctr.c
src/lib/krb5/krb/rd_req_dec.c
src/lib/krb5/krb/ser_actx.c
src/lib/krb5/krb/ser_auth.c

index ca0eb9e3734ba12a87aab83b7696fc7818350c67..f21ecfc01a265951374163c3ee0d189d551c03cb 100644 (file)
@@ -215,6 +215,7 @@ error_out: \
 #define free_field(rep,f) free((rep)->f)
 #define clear_field(rep,f) (*(rep))->f = 0
 
+#ifndef LEAN_CLIENT
 krb5_error_code decode_krb5_authenticator(const krb5_data *code, krb5_authenticator **rep)
 {
     setup();
@@ -254,6 +255,7 @@ error_out:
     }
     return retval;
 }
+#endif
 
 krb5_error_code
 KRB5_CALLCONV
index ba62d687e7b2c5180a14270e8d7bf4f10d104795..8ac121a6e93ae416e9e2665d60d78634b0f4c0e3 100644 (file)
@@ -243,13 +243,14 @@ krb5_auth_con_getlocalseqnumber(krb5_context context, krb5_auth_context auth_con
     *seqnumber = auth_context->local_seq_number;
     return 0;
 }
-
+#ifndef LEAN_CLIENT
 krb5_error_code KRB5_CALLCONV
 krb5_auth_con_getauthenticator(krb5_context context, krb5_auth_context auth_context, krb5_authenticator **authenticator)
 {
     return (krb5_copy_authenticator(context, auth_context->authentp,
                                    authenticator));
 }
+#endif
 
 krb5_error_code KRB5_CALLCONV
 krb5_auth_con_getremoteseqnumber(krb5_context context, krb5_auth_context auth_context, krb5_int32 *seqnumber)
index 2694776c2e335b67d6caf1f89102326c525091f6..4d23c847010c339a9ef099653e60b170a3f61ce7 100644 (file)
@@ -28,7 +28,7 @@
  */
 
 #include "k5-int.h"
-
+#ifndef LEAN_CLIENT
 krb5_error_code KRB5_CALLCONV
 krb5_copy_authenticator(krb5_context context, const krb5_authenticator *authfrom, krb5_authenticator **authto)
 {
@@ -79,3 +79,5 @@ krb5_copy_authenticator(krb5_context context, const krb5_authenticator *authfrom
     *authto = tempto;
     return 0;
 }
+#endif
+
index 3a92107a7f5309e0c7e685081fa0e1566cfc40f0..653afa0dba4015530abec61e93dd100336c13d88 100644 (file)
@@ -178,10 +178,12 @@ krb5_rd_req_decoded_opt(krb5_context context, krb5_auth_context *auth_context,
     /* XXX this is an evil hack.  check_valid_flag is set iff the call
        is not from inside the kdc.  we can use this to determine which
        key usage to use */
+#ifndef LEAN_CLIENT
     if ((retval = decrypt_authenticator(context, req, 
                                        &((*auth_context)->authentp),
                                        check_valid_flag)))
        goto cleanup;
+#endif
     if (!krb5_principal_compare(context, (*auth_context)->authentp->client,
                                req->ticket->enc_part2->client)) {
        retval = KRB5KRB_AP_ERR_BADMATCH;
@@ -491,6 +493,8 @@ krb5_rd_req_decoded_anyflag(krb5_context context,
                                   0); /* don't check_valid_flag */
   return retval;
 }
+
+#ifndef LEAN_CLIENT
 static krb5_error_code
 decrypt_authenticator(krb5_context context, const krb5_ap_req *request,
                      krb5_authenticator **authpp, int is_ap_req)
@@ -525,5 +529,5 @@ free(scratch.data);}
     clean_scratch();
     return retval;
 }
-
+#endif
 
index 5e4be29c2dc15e53f9bdd28913cc47697c9dd9f5..347b300f55f5aa7044facd001e81a89b3d46eb7e 100644 (file)
@@ -550,8 +550,10 @@ krb5_ser_auth_context_init(krb5_context kcontext)
        kret = krb5_ser_authdata_init(kcontext);
     if (!kret)
        kret = krb5_ser_address_init(kcontext);
+#ifndef LEAN_CLIENT
     if (!kret)
        kret = krb5_ser_authenticator_init(kcontext);
+#endif
     if (!kret)
        kret = krb5_ser_checksum_init(kcontext);
     if (!kret)
index d76ec500ab5b8f27b23e7a65bc7f72dc57b2dc82..6951f92fa420705919aab9e311109a12c894a9d2 100644 (file)
@@ -28,6 +28,9 @@
 /*
  * ser_auth.c - Serialize krb5_authenticator structure.
  */
+
+#ifndef LEAN_CLIENT
+
 #include "k5-int.h"
 #include "int-proto.h"
 
@@ -335,7 +338,6 @@ krb5_authenticator_internalize(krb5_context kcontext, krb5_pointer *argp, krb5_o
     }
     return(kret);
 }
-\f
 /*
  * Register the authenticator serializer.
  */
@@ -344,3 +346,4 @@ krb5_ser_authenticator_init(krb5_context kcontext)
 {
     return(krb5_register_serializer(kcontext, &krb5_authenticator_ser_entry));
 }
+#endif