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.
#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);
--- /dev/null
+/* 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);
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',
)
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',