summaryrefslogtreecommitdiff
path: root/libcli/auth/krb5_wrap.h
diff options
context:
space:
mode:
authorAndrew Bartlett <abartlet@samba.org>2011-04-14 15:40:28 +1000
committerAndrew Bartlett <abartlet@samba.org>2011-04-14 16:38:26 +1000
commit4ba1375526e6582d6c095592f0e82d1ba501ee3e (patch)
treead4ebe6a5e142733dc01c933c081adcaa542e2d0 /libcli/auth/krb5_wrap.h
parent3d7998bce1f3366e99f5b4f42d3eae934c1539b7 (diff)
downloadsamba-4ba1375526e6582d6c095592f0e82d1ba501ee3e.tar.gz
samba-4ba1375526e6582d6c095592f0e82d1ba501ee3e.tar.bz2
samba-4ba1375526e6582d6c095592f0e82d1ba501ee3e.zip
libcli/auth Move krb5 wrapper functions from s3 into common
This requires a small rework of the build system to ensure that the correct #define statements are made in both the s3 and top level builds. We now define the various HAVE_ macros in config.h at all times, using heimdal_build/wscript_configure when that is in use. Andrew Bartlett
Diffstat (limited to 'libcli/auth/krb5_wrap.h')
-rw-r--r--libcli/auth/krb5_wrap.h32
1 files changed, 32 insertions, 0 deletions
diff --git a/libcli/auth/krb5_wrap.h b/libcli/auth/krb5_wrap.h
new file mode 100644
index 0000000000..e608efe58c
--- /dev/null
+++ b/libcli/auth/krb5_wrap.h
@@ -0,0 +1,32 @@
+/*
+ Unix SMB/CIFS implementation.
+ simple kerberos5 routines for active directory
+ Copyright (C) Andrew Tridgell 2001
+ Copyright (C) Luke Howard 2002-2003
+ Copyright (C) Andrew Bartlett <abartlet@samba.org> 2005
+ Copyright (C) Guenther Deschner 2005-2009
+
+ This program is free software; you can redistribute it and/or modify
+ it under the terms of the GNU General Public License as published by
+ the Free Software Foundation; either version 3 of the License, or
+ (at your option) any later version.
+
+ This program is distributed in the hope that it will be useful,
+ but WITHOUT ANY WARRANTY; without even the implied warranty of
+ MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
+ GNU General Public License for more details.
+
+ You should have received a copy of the GNU General Public License
+ along with this program. If not, see <http://www.gnu.org/licenses/>.
+*/
+
+#include "system/kerberos.h"
+
+int create_kerberos_key_from_string_direct(krb5_context context,
+ krb5_principal host_princ,
+ krb5_data *password,
+ krb5_keyblock *key,
+ krb5_enctype enctype);
+void kerberos_free_data_contents(krb5_context context, krb5_data *pdata);
+krb5_error_code smb_krb5_kt_free_entry(krb5_context context, krb5_keytab_entry *kt_entry);
+char *smb_get_krb5_error_message(krb5_context context, krb5_error_code code, TALLOC_CTX *mem_ctx);