Deleted Added
full compact
kadmin_locl.h (57428) kadmin_locl.h (72448)
1/*
2 * Copyright (c) 1997-2000 Kungliga Tekniska H�gskolan
3 * (Royal Institute of Technology, Stockholm, Sweden).
4 * All rights reserved.
5 *
6 * Redistribution and use in source and binary forms, with or without
7 * modification, are permitted provided that the following conditions
8 * are met:

--- 19 unchanged lines hidden (view full) ---

28 * HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT
29 * LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY
30 * OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF
31 * SUCH DAMAGE.
32 */
33
34/*
35 * $Id: kadmin_locl.h,v 1.25 2000/02/06 05:16:35 assar Exp $
1/*
2 * Copyright (c) 1997-2000 Kungliga Tekniska H�gskolan
3 * (Royal Institute of Technology, Stockholm, Sweden).
4 * All rights reserved.
5 *
6 * Redistribution and use in source and binary forms, with or without
7 * modification, are permitted provided that the following conditions
8 * are met:

--- 19 unchanged lines hidden (view full) ---

28 * HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT
29 * LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY
30 * OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF
31 * SUCH DAMAGE.
32 */
33
34/*
35 * $Id: kadmin_locl.h,v 1.25 2000/02/06 05:16:35 assar Exp $
36 * $FreeBSD: head/crypto/heimdal/kadmin/kadmin_locl.h 57428 2000-02-24 13:37:41Z markm $
36 * $FreeBSD: head/crypto/heimdal/kadmin/kadmin_locl.h 72448 2001-02-13 16:52:56Z assar $
37 */
38
39#ifndef __ADMIN_LOCL_H__
40#define __ADMIN_LOCL_H__
41
42#ifdef HAVE_CONFIG_H
43#include <config.h>
44#endif
45#include <stdio.h>
46#include <stdlib.h>
47#include <string.h>
48#include <ctype.h>
49#include <errno.h>
37 */
38
39#ifndef __ADMIN_LOCL_H__
40#define __ADMIN_LOCL_H__
41
42#ifdef HAVE_CONFIG_H
43#include <config.h>
44#endif
45#include <stdio.h>
46#include <stdlib.h>
47#include <string.h>
48#include <ctype.h>
49#include <errno.h>
50#include <limits.h>
50#ifdef HAVE_SYS_TYPES_H
51#include <sys/types.h>
52#endif
51#ifdef HAVE_SYS_TYPES_H
52#include <sys/types.h>
53#endif
54#ifdef HAVE_SYS_SELECT_H
55#include <sys/select.h>
56#endif
53#ifdef HAVE_FCNTL_H
54#include <fcntl.h>
55#endif
56#ifdef HAVE_SYS_SOCKET_H
57#include <sys/socket.h>
58#endif
57#ifdef HAVE_FCNTL_H
58#include <fcntl.h>
59#endif
60#ifdef HAVE_SYS_SOCKET_H
61#include <sys/socket.h>
62#endif
63#ifdef HAVE_SYS_SELECT_H
64#include <sys/select.h>
65#endif
59#ifdef HAVE_NETINET_IN_H
60#include <netinet/in.h>
61#endif
62#ifdef HAVE_NETINET_IN6_H
63#include <netinet/in6.h>
64#endif
65#ifdef HAVE_NETINET6_IN6_H
66#include <netinet6/in6.h>
67#endif
68
66#ifdef HAVE_NETINET_IN_H
67#include <netinet/in.h>
68#endif
69#ifdef HAVE_NETINET_IN6_H
70#include <netinet/in6.h>
71#endif
72#ifdef HAVE_NETINET6_IN6_H
73#include <netinet6/in6.h>
74#endif
75
76#ifdef HAVE_UTIL_H
77#include <util.h>
78#endif
69#ifdef HAVE_NETDB_H
70#include <netdb.h>
71#endif
72#ifdef HAVE_SYS_UN_H
73#include <sys/un.h>
74#endif
75#include <err.h>
76#include <roken.h>
77#include <openssl/des.h>
78#include <krb5.h>
79#ifdef HAVE_NETDB_H
80#include <netdb.h>
81#endif
82#ifdef HAVE_SYS_UN_H
83#include <sys/un.h>
84#endif
85#include <err.h>
86#include <roken.h>
87#include <openssl/des.h>
88#include <krb5.h>
89#include <krb5_locl.h>
79#include <hdb.h>
80#include <hdb_err.h>
81#include <kadm5/admin.h>
82#include <kadm5/private.h>
83#include <kadm5/kadm5_err.h>
84#include <parse_time.h>
85#include <getarg.h>
86

--- 15 unchanged lines hidden (view full) ---

102DECL(list_princs);
103DECL(mod_entry);
104DECL(rename_entry);
105DECL(init);
106DECL(dump);
107DECL(load);
108DECL(merge);
109
90#include <hdb.h>
91#include <hdb_err.h>
92#include <kadm5/admin.h>
93#include <kadm5/private.h>
94#include <kadm5/kadm5_err.h>
95#include <parse_time.h>
96#include <getarg.h>
97

--- 15 unchanged lines hidden (view full) ---

113DECL(list_princs);
114DECL(mod_entry);
115DECL(rename_entry);
116DECL(init);
117DECL(dump);
118DECL(load);
119DECL(merge);
120
121#undef ALLOC
110#define ALLOC(X) ((X) = malloc(sizeof(*(X))))
111
112/* util.c */
113
114void attributes2str(krb5_flags attributes, char *str, size_t len);
115int str2attributes(const char *str, krb5_flags *flags);
116int parse_attributes (const char *resp, krb5_flags *attr, int *mask, int bit);
117int edit_attributes (const char *prompt, krb5_flags *attr, int *mask,

--- 22 unchanged lines hidden (view full) ---

140 const char *attributes);
141int
142foreach_principal(const char *exp,
143 int (*func)(krb5_principal, void*),
144 void *data);
145
146void get_response(const char *prompt, const char *def, char *buf, size_t len);
147
122#define ALLOC(X) ((X) = malloc(sizeof(*(X))))
123
124/* util.c */
125
126void attributes2str(krb5_flags attributes, char *str, size_t len);
127int str2attributes(const char *str, krb5_flags *flags);
128int parse_attributes (const char *resp, krb5_flags *attr, int *mask, int bit);
129int edit_attributes (const char *prompt, krb5_flags *attr, int *mask,

--- 22 unchanged lines hidden (view full) ---

152 const char *attributes);
153int
154foreach_principal(const char *exp,
155 int (*func)(krb5_principal, void*),
156 void *data);
157
158void get_response(const char *prompt, const char *def, char *buf, size_t len);
159
160int parse_des_key (const char *key_string,
161 krb5_key_data *key_data, const char **err);
162
148/* server.c */
149
150krb5_error_code
151kadmind_loop (krb5_context, krb5_auth_context, krb5_keytab, int);
152
153/* version4.c */
154
155void
163/* server.c */
164
165krb5_error_code
166kadmind_loop (krb5_context, krb5_auth_context, krb5_keytab, int);
167
168/* version4.c */
169
170void
156handle_v4(krb5_context context, int len, int fd);
171handle_v4(krb5_context context, krb5_keytab keytab, int len, int fd);
157
158/* random_password.c */
159
160void
161random_password(char *pw, size_t len);
162
172
173/* random_password.c */
174
175void
176random_password(char *pw, size_t len);
177
178/* kadm_conn.c */
179
180sig_atomic_t term_flag, doing_useful_work;
181
182void parse_ports(krb5_context, const char*);
183int start_server(krb5_context);
184
185/* server.c */
186
187krb5_error_code
188kadmind_loop (krb5_context, krb5_auth_context, krb5_keytab, int);
189
163#endif /* __ADMIN_LOCL_H__ */
190#endif /* __ADMIN_LOCL_H__ */