s4-auth-krb: smb_rd_req_return_stuff is used only in gensec_krb5
authorSimo Sorce <idra@samba.org>
Thu, 26 Apr 2012 16:27:05 +0000 (12:27 -0400)
committerSimo Sorce <idra@samba.org>
Fri, 4 May 2012 14:51:28 +0000 (16:51 +0200)
Make it clearly a gensec_krb5 accessory file.
This function should never be used anywhere else.
This function was copied out from the Heimdal tree and is kept in a separate
file for clarity and to keep the original license boilerplate.

source4/auth/gensec/gensec_krb5.c
source4/auth/gensec/gensec_krb5_util.c [moved from source4/auth/kerberos/kerberos_heimdal.c with 100% similarity]
source4/auth/gensec/gensec_krb5_util.h [new file with mode: 0644]
source4/auth/gensec/wscript_build [changed mode: 0644->0755]
source4/auth/kerberos/wscript_build

index 8dde8373a8e45cbc850b1da78f74cd501aa0a04c..6209c2ec4efc1d01eb500c90c5e7c2fa499a7c12 100644 (file)
@@ -41,6 +41,7 @@
 #include "lib/util/util_net.h"
 #include "../lib/util/asn1.h"
 #include "auth/kerberos/pac_utils.h"
+#include "gensec_krb5_util.h"
 
 _PUBLIC_ NTSTATUS gensec_krb5_init(void);
 
diff --git a/source4/auth/gensec/gensec_krb5_util.h b/source4/auth/gensec/gensec_krb5_util.h
new file mode 100644 (file)
index 0000000..09be3ff
--- /dev/null
@@ -0,0 +1,10 @@
+/* See gensec_krb5_util.c for the license */
+
+krb5_error_code smb_rd_req_return_stuff(krb5_context context, 
+                                       krb5_auth_context *auth_context,
+                                       const krb5_data *inbuf,
+                                       krb5_keytab keytab, 
+                                       krb5_principal acceptor_principal,
+                                       krb5_data *outbuf, 
+                                       krb5_ticket **ticket, 
+                                       krb5_keyblock **keyblock);
old mode 100644 (file)
new mode 100755 (executable)
index dd25b23..e7bc021
@@ -6,7 +6,7 @@ bld.SAMBA_SUBSYSTEM('gensec_util',
                     autoproto='gensec_proto.h')
 
 bld.SAMBA_MODULE('gensec_krb5',
-       source='gensec_krb5.c',
+       source='gensec_krb5.c gensec_krb5_util.c',
        subsystem='gensec',
        init_function='gensec_krb5_init',
        deps='samba-credentials authkrb5 com_err gensec_util',
index 8f2900be5c0b01d60e48cb9b44c3da371d63b6b5..aef7fc660599a43ea04fcf81766bfad4ac48e3a3 100755 (executable)
@@ -6,7 +6,7 @@ bld.SAMBA_SUBSYSTEM('KRB_INIT_CTX',
                   )
 
 bld.SAMBA_LIBRARY('authkrb5',
-                  source='kerberos_heimdal.c kerberos_pac.c keytab_copy.c',
+                  source='kerberos_pac.c keytab_copy.c',
                   autoproto='proto.h',
                   public_deps='ndr-krb5pac krb5samba samba_socket LIBCLI_RESOLVE asn1',
                   deps='auth_sam_reply tevent LIBPACKET ndr ldb krb5samba KRB_INIT_CTX KRB5_PAC errors',