X-Git-Url: http://andersk.mit.edu/gitweb/moira.git/blobdiff_plain/0ea7f4a0e18af1fe2b08865d8472f7b0aab220b5..cb974713c2dde56749592d21c0da2a5ad3092400:/update/ticket.c diff --git a/update/ticket.c b/update/ticket.c index 77e2b1c1..9eb47c7e 100644 --- a/update/ticket.c +++ b/update/ticket.c @@ -13,19 +13,27 @@ #include #include +#ifdef HAVE_KRB4 #include +#else +#define KTEXT void* +#endif #include #include RCSID("$Header$"); +#ifdef HAVE_KRB4 static char realm[REALM_SZ]; static char master[INST_SZ] = "sms"; static char service[ANAME_SZ] = "rcmd"; des_cblock session; +#endif krb5_context context = NULL; +#ifdef HAVE_KRB4 static int get_mr_tgt(void); +#endif int get_mr_krb5_update_ticket(char *host, krb5_data auth) { @@ -58,6 +66,7 @@ int get_mr_krb5_update_ticket(char *host, krb5_data auth) int get_mr_update_ticket(char *host, KTEXT ticket) { +#ifdef HAVE_KRB4 int code, pass; char phost[BUFSIZ]; CREDENTIALS cr; @@ -93,8 +102,12 @@ try_it: memcpy(session, cr.session, sizeof(session)); } return code; +#else + return MR_NO_KRB4; +#endif } +#ifdef HAVE_KRB4 static int get_mr_tgt(void) { int code; @@ -109,3 +122,4 @@ static int get_mr_tgt(void) else return code + ERROR_TABLE_BASE_krb; } +#endif