Change version number.
git-svn-id: svn://svn.h5l.se/heimdal/trunk/heimdal@881 ec53bebd-3082-4978-b11e-865c3cabbd6b
This commit is contained in:
@@ -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));
|
||||
|
@@ -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"
|
||||
|
@@ -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);
|
||||
|
Reference in New Issue
Block a user