jpayne@69
|
1 /* -*- mode: c; c-basic-offset: 4; indent-tabs-mode: nil -*- */
|
jpayne@69
|
2 /*
|
jpayne@69
|
3 * Copyright (C) 2010 by the Massachusetts Institute of Technology.
|
jpayne@69
|
4 * All rights reserved.
|
jpayne@69
|
5 *
|
jpayne@69
|
6 * Export of this software from the United States of America may
|
jpayne@69
|
7 * require a specific license from the United States Government.
|
jpayne@69
|
8 * It is the responsibility of any person or organization contemplating
|
jpayne@69
|
9 * export to obtain such a license before exporting.
|
jpayne@69
|
10 *
|
jpayne@69
|
11 * WITHIN THAT CONSTRAINT, permission to use, copy, modify, and
|
jpayne@69
|
12 * distribute this software and its documentation for any purpose and
|
jpayne@69
|
13 * without fee is hereby granted, provided that the above copyright
|
jpayne@69
|
14 * notice appear in all copies and that both that copyright notice and
|
jpayne@69
|
15 * this permission notice appear in supporting documentation, and that
|
jpayne@69
|
16 * the name of M.I.T. not be used in advertising or publicity pertaining
|
jpayne@69
|
17 * to distribution of the software without specific, written prior
|
jpayne@69
|
18 * permission. Furthermore if you modify this software you must label
|
jpayne@69
|
19 * your software as modified software and not distribute it in such a
|
jpayne@69
|
20 * fashion that it might be confused with the original M.I.T. software.
|
jpayne@69
|
21 * M.I.T. makes no representations about the suitability of
|
jpayne@69
|
22 * this software for any purpose. It is provided "as is" without express
|
jpayne@69
|
23 * or implied warranty.
|
jpayne@69
|
24 */
|
jpayne@69
|
25
|
jpayne@69
|
26 /* Generic declarations for dynamic modules implementing krb5 plugin
|
jpayne@69
|
27 * modules. */
|
jpayne@69
|
28
|
jpayne@69
|
29 #ifndef KRB5_PLUGIN_H
|
jpayne@69
|
30 #define KRB5_PLUGIN_H
|
jpayne@69
|
31
|
jpayne@69
|
32 /* krb5_plugin_vtable is an abstract type. Module initvt functions will cast
|
jpayne@69
|
33 * it to the appropriate interface-specific vtable type. */
|
jpayne@69
|
34 typedef struct krb5_plugin_vtable_st *krb5_plugin_vtable;
|
jpayne@69
|
35
|
jpayne@69
|
36 /*
|
jpayne@69
|
37 * krb5_plugin_initvt_fn is the type of all module initvt functions. Based on
|
jpayne@69
|
38 * the maj_ver argument, the initvt function should cast vtable to the
|
jpayne@69
|
39 * appropriate type and then fill it in. If a vtable has been expanded,
|
jpayne@69
|
40 * min_ver indicates which version of the vtable is being filled in.
|
jpayne@69
|
41 */
|
jpayne@69
|
42 typedef krb5_error_code
|
jpayne@69
|
43 (*krb5_plugin_initvt_fn)(krb5_context context, int maj_ver, int min_ver,
|
jpayne@69
|
44 krb5_plugin_vtable vtable);
|
jpayne@69
|
45
|
jpayne@69
|
46 #endif /* KRB5_PLUGIN_H */
|