#include <stdio.h>
#include <string.h>
+#ifdef HAVE_KRB4
#include <krb.h>
+#else
+#define KTEXT void*
+#endif
#include <krb5.h>
#include <update.h>
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)
{
int get_mr_update_ticket(char *host, KTEXT ticket)
{
+#ifdef HAVE_KRB4
int code, pass;
char phost[BUFSIZ];
CREDENTIALS cr;
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;
else
return code + ERROR_TABLE_BASE_krb;
}
+#endif