1 /*
2 * Copyright 1999-2002 Sun Microsystems, Inc. All rights reserved.
3 * Use is subject to license terms.
4 */
5
6 #ifndef _KDB_HDR_H
7 #define _KDB_HDR_H
8
9 #pragma ident "@(#)kdb_hdr.h 1.4 04/09/08 SMI"
10
11 #include <krb5.h>
12
13 #ifdef __cplusplus
14 extern "C" {
15 #endif
16
17 /*
18 * This header is required to solve a conflict with
19 * usr/src/lib/gss_mechs/mech_krb5/include/krb5/kdb_dbm.h
20 * which creates numerous defines like ....
21 * #define krb5_dbm_db_fini krb5_db_fini
22 * that break the spec file creation and resolution process.
23 *
24 * lib/kdb/kdb_hdr.h
25 */
26
27 #if defined(KRB5_NO_CONST) || (defined(__ultrix) && !defined(__GNUC__))
28 #define krb5_const
29 #else
30 #define krb5_const const
31 #endif
32
33 typedef struct _krb5_keysalt {
34 krb5_int16 type;
35 krb5_data data; /* Length, data */
36 } krb5_keysalt;
37
38 typedef struct _krb5_tl_data {
39 struct _krb5_tl_data* tl_data_next; /* NOT saved */
40 krb5_int16 tl_data_type;
41 krb5_int16 tl_data_length;
42 krb5_octet * tl_data_contents;
43 } krb5_tl_data;
44
45 typedef struct _krb5_key_data {
46 krb5_int16 key_data_ver; /* Version */
|
1 /*
2 * Copyright 2004 Sun Microsystems, Inc. All rights reserved.
3 * Use is subject to license terms.
4 */
5
6 #ifndef _KDB_HDR_H
7 #define _KDB_HDR_H
8
9 #pragma ident "@(#)kdb_hdr.h 1.3 04/02/20 SMI"
10
11 #include <krb5.h>
12
13 #ifdef __cplusplus
14 extern "C" {
15 #endif
16
17 /*
18 * This header is required to solve a conflict with
19 * usr/src/lib/gss_mechs/mech_krb5/include/krb5/kdb_dbm.h
20 * which creates numerous defines like ....
21 * #define krb5_dbm_db_fini krb5_db_fini
22 * that break the spec file creation and resolution process.
23 *
24 * lib/kdb/kdb_hdr.h
25 */
26
27 #ifndef __KADM5_ADMIN_H__
28 struct _kadm5_config_params;
29 typedef struct _kadm5_config_params kadm5_config_params;
30 #endif
31
32 #if defined(KRB5_NO_CONST) || (defined(__ultrix) && !defined(__GNUC__))
33 #define krb5_const
34 #else
35 #define krb5_const const
36 #endif
37
38 typedef struct _krb5_keysalt {
39 krb5_int16 type;
40 krb5_data data; /* Length, data */
41 } krb5_keysalt;
42
43 typedef struct _krb5_tl_data {
44 struct _krb5_tl_data* tl_data_next; /* NOT saved */
45 krb5_int16 tl_data_type;
46 krb5_int16 tl_data_length;
47 krb5_octet * tl_data_contents;
48 } krb5_tl_data;
49
50 typedef struct _krb5_key_data {
51 krb5_int16 key_data_ver; /* Version */
|