s3-waf: add UTIL_TEVENT subsystem (as in ../lib/util/wscript)
[Samba/vl.git] / source4 / kdc / mit_samba_interface.h
blobb92f7bf0cef8ef4a1955106f06e04ba56cc8e8e0
1 /* -*- mode: c; c-basic-offset: 4; indent-tabs-mode: nil -*- */
2 /*
3 * plugins/kdb/samba/kdb_samba_interface.h
5 * Copyright (c) 2009, Simo Sorce <idra@samba.org>
6 * All Rights Reserved.
8 * Export of this software from the United States of America may
9 * require a specific license from the United States Government.
10 * It is the responsibility of any person or organization contemplating
11 * export to obtain such a license before exporting.
13 * WITHIN THAT CONSTRAINT, permission to use, copy, modify, and
14 * distribute this software and its documentation for any purpose and
15 * without fee is hereby granted, provided that the above copyright
16 * notice appear in all copies and that both that copyright notice and
17 * this permission notice appear in supporting documentation, and that
18 * the name of M.I.T. not be used in advertising or publicity pertaining
19 * to distribution of the software without specific, written prior
20 * permission. Furthermore if you modify this software you must label
21 * your software as modified software and not distribute it in such a
22 * fashion that it might be confused with the original M.I.T. software.
23 * M.I.T. makes no representations about the suitability of
24 * this software for any purpose. It is provided "as is" without express
25 * or implied warranty.
29 #define MIT_SAMBA_INTERFACE_VERSION 1
31 #ifndef _SAMBA_BUILD_
32 typedef struct datablob {
33 uint8_t *data;
34 size_t length;
35 } DATA_BLOB;
36 #endif
38 struct mit_samba_context;
40 struct mit_samba_function_table {
41 int (*init)(struct mit_samba_context **ctx);
42 void (*fini)(struct mit_samba_context *ctx);
44 /* db */
45 int (*get_principal)(struct mit_samba_context *, char *,
46 unsigned int, hdb_entry_ex **);
47 int (*get_firstkey)(struct mit_samba_context *, hdb_entry_ex **);
48 int (*get_nextkey)(struct mit_samba_context *, hdb_entry_ex **);
50 /* windc */
51 int (*get_pac)(struct mit_samba_context *, hdb_entry_ex *, DATA_BLOB *);
52 int (*update_pac)(struct mit_samba_context *, hdb_entry_ex *,
53 DATA_BLOB *, DATA_BLOB *);
54 int (*client_access)(struct mit_samba_context *,
55 hdb_entry_ex *, const char *,
56 hdb_entry_ex *, const char *,
57 const char *, bool, DATA_BLOB *);
58 int (*check_s4u2proxy)(struct mit_samba_context *,
59 hdb_entry_ex *, const char *, bool);