r19939: ,fix compile warning about unused functions when not using heimdal
authorGerald Carter <jerry@samba.org>
Tue, 28 Nov 2006 21:11:20 +0000 (21:11 +0000)
committerGerald (Jerry) Carter <jerry@samba.org>
Wed, 10 Oct 2007 17:16:11 +0000 (12:16 -0500)
(This used to be commit f53983079bc285ad8ced8fc4dd40df66fad13718)

source3/libsmb/clikrb5.c

index 14b5285e45abaaaecc788b5c17073c6487dfab7c..4092b4b2b90698daf81c4e5ddae57053e2be1146 100644 (file)
@@ -852,6 +852,7 @@ failed:
 #endif
 }
 
+#ifdef HAVE_KRB5_DECODE_AP_REQ /* Heimdal */
 static int get_kvno_from_ap_req(krb5_ap_req *ap_req)
 {
 #ifdef HAVE_TICKET_POINTER_IN_KRB5_AP_REQ /* MIT */
@@ -872,6 +873,7 @@ static krb5_enctype get_enctype_from_ap_req(krb5_ap_req *ap_req)
        return ap_req->ticket->enc_part.enctype;
 #endif
 }
+#endif /* HAVE_KRB5_DECODE_AP_REQ */
 
 static krb5_error_code
 get_key_from_keytab(krb5_context context,