k_gethostname -> gethostname
git-svn-id: svn://svn.h5l.se/heimdal/trunk/heimdal@4108 ec53bebd-3082-4978-b11e-865c3cabbd6b
This commit is contained in:
@@ -70,7 +70,7 @@ ruserpass(char *host, char **aname, char **apass, char **aacct)
|
||||
int t, i, c, usedefault = 0;
|
||||
struct stat stb;
|
||||
|
||||
if(k_gethostname(myhostname, MaxHostNameLen) < 0)
|
||||
if(gethostname(myhostname, MaxHostNameLen) < 0)
|
||||
strcpy(myhostname, "");
|
||||
if((mydomain = strchr(myhostname, '.')) == NULL)
|
||||
mydomain = myhostname;
|
||||
|
@@ -489,7 +489,7 @@ main(int argc, char **argv)
|
||||
fclose(fd);
|
||||
/* reply(220,) must follow */
|
||||
}
|
||||
k_gethostname(hostname, sizeof(hostname));
|
||||
gethostname(hostname, sizeof(hostname));
|
||||
reply(220, "%s FTP server (%s+%s) ready.", hostname,
|
||||
version, krb4_version);
|
||||
setjmp(errcatch);
|
||||
|
@@ -158,7 +158,7 @@ krb4encpwd_init(ap, server)
|
||||
str_data[3] = TELQUAL_REPLY;
|
||||
} else {
|
||||
str_data[3] = TELQUAL_IS;
|
||||
k_gethostname(hostname, sizeof(hostname));
|
||||
gethostname(hostname, sizeof(hostname));
|
||||
realm = krb_realmofhost(hostname);
|
||||
cp = strchr(hostname, '.');
|
||||
if (*cp != NULL) *cp = NULL;
|
||||
@@ -209,7 +209,7 @@ krb4encpwd_is(ap, data, cnt)
|
||||
case KRB4_ENCPWD_AUTH:
|
||||
memmove(auth.dat, data, auth.length = cnt);
|
||||
|
||||
k_gethostname(lhostname, sizeof(lhostname));
|
||||
gethostname(lhostname, sizeof(lhostname));
|
||||
if ((cp = strchr(lhostname, '.')) != 0) *cp = '\0';
|
||||
|
||||
if (r = krb_rd_encpwd_req(&auth, KRB_SERVICE_NAME, lhostname, 0, &adat, NULL, challenge, r_user, r_passwd)) {
|
||||
@@ -301,7 +301,7 @@ krb4encpwd_reply(ap, data, cnt)
|
||||
* Verify that the response to the challenge is correct.
|
||||
*/
|
||||
|
||||
k_gethostname(hostname, sizeof(hostname));
|
||||
gethostname(hostname, sizeof(hostname));
|
||||
realm = krb_realmofhost(hostname);
|
||||
memmove(challenge, data, cnt);
|
||||
memset(user_passwd, 0, sizeof(user_passwd));
|
||||
|
@@ -157,7 +157,7 @@ rsaencpwd_init(ap, server)
|
||||
if (server) {
|
||||
str_data[3] = TELQUAL_REPLY;
|
||||
memset(key_file, 0, sizeof(key_file));
|
||||
k_gethostname(lhostname, sizeof(lhostname));
|
||||
gethostname(lhostname, sizeof(lhostname));
|
||||
if ((cp = strchr(lhostname, '.')) != 0) *cp = '\0';
|
||||
strcpy(key_file, "/etc/.");
|
||||
strcat(key_file, lhostname);
|
||||
|
@@ -172,7 +172,7 @@ spx_init(ap, server)
|
||||
|
||||
if (server) {
|
||||
str_data[3] = TELQUAL_REPLY;
|
||||
k_gethostname(lhostname, sizeof(lhostname));
|
||||
gethostname(lhostname, sizeof(lhostname));
|
||||
strcpy(targ_printable, "SERVICE:rcmd@");
|
||||
strcat(targ_printable, lhostname);
|
||||
input_name_buffer.length = strlen(targ_printable);
|
||||
@@ -322,7 +322,7 @@ spx_is(ap, data, cnt)
|
||||
input_token.length = cnt;
|
||||
input_token.value = (char *) data;
|
||||
|
||||
k_gethostname(lhostname, sizeof(lhostname));
|
||||
gethostname(lhostname, sizeof(lhostname));
|
||||
|
||||
strcpy(targ_printable, "SERVICE:rcmd@");
|
||||
strcat(targ_printable, lhostname);
|
||||
|
Reference in New Issue
Block a user