1 /*
2 * Copyright 2004 Sun Microsystems, Inc. All rights reserved.
3 * Use is subject to license terms.
4 */
5
6 #ifndef _KDB5_UTIL_H
7 #define _KDB5_UTIL_H
8
9 #pragma ident "@(#)kdb5_util.h 1.4 04/09/08 SMI"
10
11 /*
12 * WARNING WARNING WARNING WARNING WARNING WARNING WARNING WARNING WARNING
13 *
14 * Openvision retains the copyright to derivative works of
15 * this source code. Do *NOT* create a derivative of this
16 * source code before consulting with your legal department.
17 * Do *NOT* integrate *ANY* of this source code into another
18 * product before consulting with your legal department.
19 *
20 * For further information, read the top-level Openvision
21 * copyright which is contained in the top-level MIT Kerberos
22 * copyright.
23 *
24 * WARNING WARNING WARNING WARNING WARNING WARNING WARNING WARNING WARNING
25 *
26 */
27
28 #ifdef __cplusplus
29 extern "C" {
36 * All Rights Reserved.
37 *
38 * Export of this software from the United States of America may
39 * require a specific license from the United States Government.
40 * It is the responsibility of any person or organization contemplating
41 * export to obtain such a license before exporting.
42 *
43 * WITHIN THAT CONSTRAINT, permission to use, copy, modify, and
44 * distribute this software and its documentation for any purpose and
45 * without fee is hereby granted, provided that the above copyright
46 * notice appear in all copies and that both that copyright notice and
47 * this permission notice appear in supporting documentation, and that
48 * the name of M.I.T. not be used in advertising or publicity pertaining
49 * to distribution of the software without specific, written prior
50 * permission. M.I.T. makes no representations about the suitability of
51 * this software for any purpose. It is provided "as is" without express
52 * or implied warranty.
53 *
54 */
55
56 #define REALM_SEP '@'
57 #define REALM_SEP_STR "@"
58
59 extern char *progname;
60 extern char *Err_no_database;
61
62 void add_key
63 PROTOTYPE((char const *, char const *,
64 krb5_const_principal, const krb5_keyblock *,
65 krb5_kvno, krb5_keysalt *));
66 int set_dbname_help
67 PROTOTYPE((char *, char *));
68
69 char *kdb5_util_Init PROTOTYPE((int, char **));
70
71 int quit();
72
73 int check_for_match
74 PROTOTYPE((char *, int, krb5_db_entry *, int, int));
75
|
1 /*
2 * Copyright 2004 Sun Microsystems, Inc. All rights reserved.
3 * Use is subject to license terms.
4 */
5
6 #ifndef _KDB5_UTIL_H
7 #define _KDB5_UTIL_H
8
9 #pragma ident "@(#)kdb5_util.h 1.3 04/02/20 SMI"
10
11 /*
12 * WARNING WARNING WARNING WARNING WARNING WARNING WARNING WARNING WARNING
13 *
14 * Openvision retains the copyright to derivative works of
15 * this source code. Do *NOT* create a derivative of this
16 * source code before consulting with your legal department.
17 * Do *NOT* integrate *ANY* of this source code into another
18 * product before consulting with your legal department.
19 *
20 * For further information, read the top-level Openvision
21 * copyright which is contained in the top-level MIT Kerberos
22 * copyright.
23 *
24 * WARNING WARNING WARNING WARNING WARNING WARNING WARNING WARNING WARNING
25 *
26 */
27
28 #ifdef __cplusplus
29 extern "C" {
36 * All Rights Reserved.
37 *
38 * Export of this software from the United States of America may
39 * require a specific license from the United States Government.
40 * It is the responsibility of any person or organization contemplating
41 * export to obtain such a license before exporting.
42 *
43 * WITHIN THAT CONSTRAINT, permission to use, copy, modify, and
44 * distribute this software and its documentation for any purpose and
45 * without fee is hereby granted, provided that the above copyright
46 * notice appear in all copies and that both that copyright notice and
47 * this permission notice appear in supporting documentation, and that
48 * the name of M.I.T. not be used in advertising or publicity pertaining
49 * to distribution of the software without specific, written prior
50 * permission. M.I.T. makes no representations about the suitability of
51 * this software for any purpose. It is provided "as is" without express
52 * or implied warranty.
53 *
54 */
55
56 #include <kdb/kdb_log.h>
57
58 #define MAX_HEADER 1024
59 #define REALM_SEP '@'
60 #define REALM_SEP_STR "@"
61
62 extern char *progname;
63 extern char *Err_no_database;
64
65 void add_key
66 PROTOTYPE((char const *, char const *,
67 krb5_const_principal, const krb5_keyblock *,
68 krb5_kvno, krb5_keysalt *));
69 int set_dbname_help
70 PROTOTYPE((char *, char *));
71
72 char *kdb5_util_Init PROTOTYPE((int, char **));
73
74 int quit();
75
76 int check_for_match
77 PROTOTYPE((char *, int, krb5_db_entry *, int, int));
78
|