From: Theodore Tso Date: Thu, 3 Jun 1993 12:21:57 +0000 (+0000) Subject: Change to reflect new calling interface for krb5_sname_to_principal X-Git-Tag: krb5-1.0-beta3~233 X-Git-Url: http://git.tremily.us/?a=commitdiff_plain;h=b23e8106240a0a90d91120f1767683ac88e7c53b;p=krb5.git Change to reflect new calling interface for krb5_sname_to_principal git-svn-id: svn://anonsvn.mit.edu/krb5/trunk@2605 dc483132-0cff-0310-8789-dd5450dbe970 --- diff --git a/src/appl/movemail/movemail.c b/src/appl/movemail/movemail.c index 995f3b353..38647f006 100644 --- a/src/appl/movemail/movemail.c +++ b/src/appl/movemail/movemail.c @@ -588,10 +588,7 @@ char *host; *cp = tolower(*cp); if (retval = krb5_sname_to_principal(hp->h_name, POP_SERVICE, - FALSE, /* FALSE means don't - canonicalize hostname - (we already have...) */ - &server)) { + KRB5_NT_SRV_HST, &server)) { goto krb5error; } diff --git a/src/appl/popper/pop_init.c b/src/appl/popper/pop_init.c index b9e0ecfc9..7e7d66c75 100644 --- a/src/appl/popper/pop_init.c +++ b/src/appl/popper/pop_init.c @@ -304,7 +304,8 @@ authenticate(p, addr) krb5_init_ets(); - if (retval = krb5_sname_to_principal(p->myhost, "pop", TRUE, &server)) { + if (retval = krb5_sname_to_principal(p->myhost, "pop", KRB5_NT_SRV_HOST, + &server)) { pop_msg(p, POP_FAILURE, "server mis-configured, can't get principal--%s", error_message(retval));