Change to reflect new calling interface for krb5_sname_to_principal
authorTheodore Tso <tytso@mit.edu>
Thu, 3 Jun 1993 12:21:57 +0000 (12:21 +0000)
committerTheodore Tso <tytso@mit.edu>
Thu, 3 Jun 1993 12:21:57 +0000 (12:21 +0000)
git-svn-id: svn://anonsvn.mit.edu/krb5/trunk@2605 dc483132-0cff-0310-8789-dd5450dbe970

src/appl/movemail/movemail.c
src/appl/popper/pop_init.c

index 995f3b353833049585dc3b9bb2b56d60857054f8..38647f006ef6726cb7517851c0fc6e132c694029 100644 (file)
@@ -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;
     }
 
index b9e0ecfc930f69b3a4bd8447a47819cc5f03119b..7e7d66c7546e173f8787a28e8ed1c029086d5378 100644 (file)
@@ -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));