Move prototypes needed in multiple files to misc.h instead of
authorEzra Peisach <epeisach@mit.edu>
Wed, 17 Dec 2008 03:42:12 +0000 (03:42 +0000)
committerEzra Peisach <epeisach@mit.edu>
Wed, 17 Dec 2008 03:42:12 +0000 (03:42 +0000)
declaring extern in each .c file.  This will ensure that definitions
are consistent.  Moved prototypes include: load_badauth,
setup_gss_names, krb5_iprop_prog_1, kiprop_get_adm_host_srv_name.

git-svn-id: svn://anonsvn.mit.edu/krb5/trunk@21493 dc483132-0cff-0310-8789-dd5450dbe970

src/kadmin/server/ipropd_svc.c
src/kadmin/server/kadm_rpc_svc.c
src/kadmin/server/misc.h
src/kadmin/server/ovsec_kadmd.c

index 50f7b8c52ae896092999c1f3249dd15257cc6419..e00701b0ca3e48d684c9857179f3350253c2dfa9 100644 (file)
@@ -31,8 +31,6 @@
 
 extern gss_name_t rqst2name(struct svc_req *rqstp);
 
-extern int setup_gss_names(struct svc_req *, gss_buffer_desc *,
-                          gss_buffer_desc *);
 extern void *global_server_handle;
 extern int nofork;
 extern short l_port;
index c56eedd0b80bef54ddda4d838da60344dd355943..cba42a48cdc3aac6890e54ac3a4f4587f31be0af 100644 (file)
@@ -25,8 +25,6 @@ extern void *global_server_handle;
 
 static int check_rpcsec_auth(struct svc_req *);
 
-void log_badauth(OM_uint32 major, OM_uint32 minor,
-                struct sockaddr_in *addr, char *data);
 /*
  * Function: kadm_1
  * 
index 74d703c4adf050980fc621aeb953a325e1d051a1..f93cdaacef9e534cc68fb5e859af9fccdc9c5c8f 100644 (file)
@@ -3,6 +3,14 @@
  *
  */
 
+void
+log_badauth(OM_uint32 major, OM_uint32 minor,
+           struct sockaddr_in *addr, char *data);
+
+int
+setup_gss_names(struct svc_req *, gss_buffer_desc *,
+               gss_buffer_desc *);
+
 kadm5_ret_t
 chpass_principal_wrapper_3(void *server_handle,
                           krb5_principal principal,
@@ -51,3 +59,12 @@ void trunc_name(size_t *len, char **dots);
 int
 gss_to_krb5_name_1(struct svc_req *rqstp, krb5_context ctx, gss_name_t gss_name,
                   krb5_principal *princ, gss_buffer_t gss_str);
+
+void 
+krb5_iprop_prog_1(struct svc_req *rqstp, SVCXPRT *transp);
+
+kadm5_ret_t 
+kiprop_get_adm_host_srv_name(krb5_context,
+                            const char *,
+                            char **);
+
index f4e1ce7f10f11b8b6ef5859cea96baa7b6163b41..8b001727f5086d9a590209c0e53a6cff4efc2f4e 100644 (file)
@@ -123,12 +123,6 @@ int ipropfd;
 void kadm5_set_use_password_server (void);
 #endif
 
-extern void krb5_iprop_prog_1();
-extern kadm5_ret_t kiprop_get_adm_host_srv_name(
-       krb5_context,
-       const char *,
-       char **);
-
 /*
  * Function: usage
  *