+2001-06-21 Ezra Peisach <epeisach@mit.edu>
+
+ * ovsec_kadmd.c: Change prototype for process_chpw_request
+ prototype argument from sin to sockin. Get rid of global params
+ variable.
+
+ * schpw.c: Change function declaration as well.
+
2001-06-21 Ezra Peisach <epeisach@mit.edu>
* ovsec_kadmd.c: Add prototype for daemon if needed.
void request_hup(int);
void reset_db(void);
void sig_pipe(int);
-void kadm_svc_run(void);
+void kadm_svc_run(kadm5_config_params *params);
#ifdef POSIX_SIGNALS
static struct sigaction s_action;
int schpw;
void do_schpw(int s, kadm5_config_params *params);
-kadm5_config_params params;
krb5_error_code process_chpw_request(krb5_context context, void *server_handle,
char *realm, int s, krb5_keytab keytab,
- struct sockaddr_in *sin,
+ struct sockaddr_in *sockin,
krb5_data *req, krb5_data *rep);
/*
auth_gssapi_name names[4];
gss_buffer_desc gssbuf;
gss_OID nt_krb5_name_oid;
+ kadm5_config_params params;
/* This is OID value the Krb5_Name NameType */
gssbuf.value = "{1 2 840 113554 1 2 2 1}";
setup_signal_handlers();
krb5_klog_syslog(LOG_INFO, "starting");
- kadm_svc_run();
+ kadm_svc_run(¶ms);
krb5_klog_syslog(LOG_INFO, "finished, exiting");
/* Clean up memory, etc */
* Modifies:
*/
-void kadm_svc_run(void)
+void kadm_svc_run(params)
+kadm5_config_params *params;
{
fd_set rfd;
int sz = _gssrpc_rpc_dtablesize();
break;
default:
if (FD_ISSET(schpw, &rfd))
- do_schpw(schpw, ¶ms);
+ do_schpw(schpw, params);
else
svc_getreqset(&rfd);
}
#include <errno.h>
krb5_error_code
-process_chpw_request(context, server_handle, realm, s, keytab, sin, req, rep)
+process_chpw_request(context, server_handle, realm, s, keytab, sockin,
+ req, rep)
krb5_context context;
void *server_handle;
char *realm;
int s;
krb5_keytab keytab;
- struct sockaddr_in *sin;
+ struct sockaddr_in *sockin;
krb5_data *req;
krb5_data *rep;
{
(krb5_octet *) &(((struct sockaddr_in *) &remote_addr)->sin_addr);
remote_kaddr.addrtype = ADDRTYPE_INET;
- remote_kaddr.length = sizeof(sin->sin_addr);
- remote_kaddr.contents = (krb5_octet *) &sin->sin_addr;
+ remote_kaddr.length = sizeof(sockin->sin_addr);
+ remote_kaddr.contents = (krb5_octet *) &sockin->sin_addr;
/* mk_priv requires that the local address be set.
getsockname is used for this. rd_priv requires that the