]> andersk Git - moira.git/commitdiff
- Don't ifdef out auth_002; it breaks backward compatability.
authorzacheiss <zacheiss>
Tue, 28 Jul 2009 16:18:52 +0000 (16:18 +0000)
committerzacheiss <zacheiss>
Tue, 28 Jul 2009 16:18:52 +0000 (16:18 +0000)
- auth_002() needs to send_int MR_NO_KRB4, not return it.

- get_mr_krb5_update_ticket should take a krb5_data *, not a krb5_data.

update/auth_002.c
update/ticket.c
update/update_server.c

index 2500ead6990ac31fa228189348e4d0520b722b9c..5f1e6c5e0cac24c1384f021eba5433591ab58b15 100644 (file)
@@ -132,6 +132,6 @@ auth_failed:
          ad.pname, ad.pinst, ad.prealm);
   send_int(conn, code);
 #else
-  return MR_NO_KRB4;
+  send_int(conn, MR_NO_KRB4);
 #endif
 }
index 9eb47c7e5916a72e7792286a15c0f08cc4f7699f..438e248c4db4f5b327a5d6c411403b3821d4d47c 100644 (file)
@@ -35,7 +35,7 @@ krb5_context context = NULL;
 static int get_mr_tgt(void);
 #endif
 
-int get_mr_krb5_update_ticket(char *host, krb5_data auth)
+int get_mr_krb5_update_ticket(char *host, krb5_data *auth)
 {
   krb5_auth_context auth_con = NULL;
   krb5_ccache ccache = NULL;
@@ -54,7 +54,7 @@ int get_mr_krb5_update_ticket(char *host, krb5_data auth)
     goto out;
 
   code = krb5_mk_req(context, &auth_con, 0, "host", host, NULL, ccache,
-                    &auth);
+                    auth);
 
  out:
   if (ccache)
index 6c5dc9a316c8bbf189499feda7efe85a472a644f..63be9f773dfc74e568c4a78017a875cd25e43265 100644 (file)
@@ -48,9 +48,7 @@ struct _dt {
   char *str;
   void (*proc)(int, char *);
 } dispatch_table[] = {
-#ifdef HAVE_KRB4
   { "AUTH_002", auth_002 },
-#endif
   { "AUTH_003", auth_003 },
   { "XFER_002", xfer_002 },
   { "XFER_003", xfer_003 },
This page took 0.03875 seconds and 5 git commands to generate.