rd_req.c (krb_rd_req): Add appropriate #ifdef so that this code
authorTheodore Tso <tytso@mit.edu>
Tue, 9 Feb 1999 02:57:14 +0000 (02:57 +0000)
committerTheodore Tso <tytso@mit.edu>
Tue, 9 Feb 1999 02:57:14 +0000 (02:57 +0000)
compiles cleanly when KRB4_USE_KEYTAB is not defined.

git-svn-id: svn://anonsvn.mit.edu/krb5/trunk@11158 dc483132-0cff-0310-8789-dd5450dbe970

src/lib/krb4/rd_req.c

index 8da0b625b4f3f88c1354b3ea2651a8e9f2912ffa..c9b6ac73445e67c73018a7ee66cac7aa67cc3eb8 100644 (file)
@@ -239,10 +239,12 @@ krb_rd_req(authent,service,instance,from_addr,ad,fn)
                             fn,(char *)skey) == 0) {
                if ((status = krb_set_key((char *)skey,0)))
                        return(status);
+#ifdef KRB4_USE_KEYTAB
        } else if (krb54_get_service_keyblock(service,instance,
                       realm, (int) s_kvno,fn, &keyblock) == 0) {
                krb_set_key_krb5(krb5__krb4_context, &keyblock);
                krb5_free_keyblock_contents(krb5__krb4_context, &keyblock);
+#endif
        } else
                return(RD_AP_UNDEC);