summaryrefslogtreecommitdiffstats
path: root/src/slave/kprop.c
diff options
context:
space:
mode:
authorTheodore Tso <tytso@mit.edu>1991-03-29 15:49:29 +0000
committerTheodore Tso <tytso@mit.edu>1991-03-29 15:49:29 +0000
commit4baee4d8daf23a3902dc8fa507534b7413e373b5 (patch)
tree461881b89c92229ec61e5e0d213ba066b3fe6317 /src/slave/kprop.c
parentd54f7c390304abba83886234e2ee03d35b2f07b0 (diff)
downloadkrb5-4baee4d8daf23a3902dc8fa507534b7413e373b5.tar.gz
krb5-4baee4d8daf23a3902dc8fa507534b7413e373b5.tar.xz
krb5-4baee4d8daf23a3902dc8fa507534b7413e373b5.zip
krb5_sendauth() and company moved to the Kerberos library
git-svn-id: svn://anonsvn.mit.edu/krb5/trunk@1973 dc483132-0cff-0310-8789-dd5450dbe970
Diffstat (limited to 'src/slave/kprop.c')
-rw-r--r--src/slave/kprop.c19
1 files changed, 9 insertions, 10 deletions
diff --git a/src/slave/kprop.c b/src/slave/kprop.c
index cf9a18c1cc..bd795250e4 100644
--- a/src/slave/kprop.c
+++ b/src/slave/kprop.c
@@ -21,7 +21,7 @@ static char rcsid_kprop_c[] =
#include <krb5/kdb.h>
#include <krb5/kdb_dbm.h>
#include <krb5/ext-proto.h>
-#include <krb5/libos-proto.h>
+#include <krb5/los-proto.h>
#include <com_err.h>
#include <errno.h>
@@ -348,12 +348,11 @@ void kerberos_authenticate(fd, me)
krb5_error_code retval;
krb5_error *error = NULL;
krb5_ap_rep_enc_part *rep_result;
- struct timeval mytime;
- if (retval = krb5_sendauth(fd, kprop_version, me, my_creds.server,
- AP_OPTS_MUTUAL_REQUIRED, &my_seq_num, NULL,
- NULL, &my_creds, NULL, &error,
- &rep_result)) {
+ if (retval = krb5_sendauth((void *)&fd, kprop_version, me,
+ my_creds.server, AP_OPTS_MUTUAL_REQUIRED,
+ NULL, &my_creds, NULL, &my_seq_num, NULL,
+ &error, &rep_result)) {
com_err(progname, retval, "while authenticating to server");
if (error) {
if (error->error == KRB_ERR_GENERIC) {
@@ -472,7 +471,7 @@ xmit_database(fd, database_fd, database_size)
send_error(fd, "while encoding database size", retval);
exit(1);
}
- if (retval = krb5_write_message(fd, &outbuf)) {
+ if (retval = krb5_write_message((void *) &fd, &outbuf)) {
xfree(outbuf.data);
com_err(progname, retval, "while sending database size");
exit(1);
@@ -513,7 +512,7 @@ xmit_database(fd, database_fd, database_size)
send_error(fd, buf, retval);
exit(1);
}
- if (retval = krb5_write_message(fd, &outbuf)) {
+ if (retval = krb5_write_message((void *) &fd, &outbuf)) {
xfree(outbuf.data);
com_err(progname, retval,
"while sending database block starting at %d",
@@ -535,7 +534,7 @@ xmit_database(fd, database_fd, database_size)
* OK, we've sent the database; now let's wait for a success
* indication from the remote end.
*/
- if (retval = krb5_read_message(fd, &inbuf)) {
+ if (retval = krb5_read_message((void *) &fd, &inbuf)) {
com_err(progname, retval,
"while reading response from server");
exit(1);
@@ -611,7 +610,7 @@ send_error(fd, err_text, err_code)
if (error.text.data = malloc(error.text.length)) {
strcpy(error.text.data, text);
if (!krb5_mk_error(&error, &outbuf)) {
- (void) krb5_write_message(fd, &outbuf);
+ (void) krb5_write_message((void *) &fd, &outbuf);
xfree(outbuf.data);
}
free(error.text.data);