From 96d82630107fdd3acf2cf5e0904cab3ea141540e Mon Sep 17 00:00:00 2001 From: Theodore Tso Date: Tue, 9 Feb 1999 02:57:14 +0000 Subject: [PATCH] rd_req.c (krb_rd_req): Add appropriate #ifdef so that this code 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 | 2 ++ 1 file changed, 2 insertions(+) diff --git a/src/lib/krb4/rd_req.c b/src/lib/krb4/rd_req.c index 8da0b625b..c9b6ac734 100644 --- a/src/lib/krb4/rd_req.c +++ b/src/lib/krb4/rd_req.c @@ -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); -- 2.26.2