s3-krb5 Remove unused get_kvno_from_ap_req()
authorAndrew Bartlett <abartlet@samba.org>
Mon, 12 Mar 2012 07:44:52 +0000 (18:44 +1100)
committerStefan Metzmacher <metze@samba.org>
Tue, 3 Apr 2012 15:47:32 +0000 (17:47 +0200)
Signed-off-by: Stefan Metzmacher <metze@samba.org>
source3/libsmb/clikrb5.c

index 12121b3d78d575846d69d0b8f935111234a39b59..9e03b30c35cff090b87d062764bd4447f9841e10 100644 (file)
@@ -686,19 +686,6 @@ done:
 }
 #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 */
-       if (ap_req->ticket->enc_part.kvno)
-               return ap_req->ticket->enc_part.kvno;
-#else /* Heimdal */
-       if (ap_req->ticket.enc_part.kvno) 
-               return *ap_req->ticket.enc_part.kvno;
-#endif
-       return 0;
-}
-
 /* Prototypes */
 
  krb5_error_code smb_krb5_renew_ticket(const char *ccache_string,      /* FILE:/tmp/krb5cc_0 */