diff --git a/appl/kx/kx.c b/appl/kx/kx.c index 070de9d39..d6ba01b0b 100644 --- a/appl/kx/kx.c +++ b/appl/kx/kx.c @@ -126,7 +126,7 @@ connect_host (char *host, des_cblock *key, des_key_schedule schedule, status = krb_sendauth (KOPT_DO_MUTUAL, s, &text, "rcmd", host, krb_realmofhost (host), getpid(), &msg, &cred, schedule, - &thisaddr, &thataddr, "KXSERV.0"); + &thisaddr, &thataddr, KXVERSION); if (status != KSUCCESS) { fprintf (stderr, "%s: %s: %s\n", prog, host, krb_get_err_text(status)); diff --git a/appl/kx/kx.h b/appl/kx/kx.h index 251778f25..0cd82e152 100644 --- a/appl/kx/kx.h +++ b/appl/kx/kx.h @@ -83,4 +83,6 @@ int connect_local_xsocket (unsigned dnr); #define KX_PORT 2111 +#define KXVERSION "KXSERV.1" + #define COOKIE_TYPE "MIT-MAGIC-COOKIE-1" diff --git a/appl/kx/kxd.c b/appl/kx/kxd.c index 605f7811d..c110215e0 100644 --- a/appl/kx/kxd.c +++ b/appl/kx/kxd.c @@ -72,7 +72,7 @@ recv_conn (int sock, des_cblock *key, des_key_schedule schedule, &thataddr, &thisaddr, &auth, "", schedule, version); if (status != KSUCCESS || - strncmp(version, "KXSERV.0", KRB_SENDAUTH_VLEN) != 0) { + strncmp(version, KXVERSION, KRB_SENDAUTH_VLEN) != 0) { return 1; } passwd = k_getpwnam (auth.pname);