From b23e8106240a0a90d91120f1767683ac88e7c53b Mon Sep 17 00:00:00 2001 From: Theodore Tso Date: Thu, 3 Jun 1993 12:21:57 +0000 Subject: [PATCH] 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 --- src/appl/movemail/movemail.c | 5 +---- src/appl/popper/pop_init.c | 3 ++- 2 files changed, 3 insertions(+), 5 deletions(-) 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)); -- 2.26.2