From: Chris Provenzano Date: Mon, 27 Mar 1995 14:11:54 +0000 (+0000) Subject: * poplib.c (pop_init()): Use new calling convention for krb5_sendauth() X-Git-Tag: krb5-1.0-beta5~459 X-Git-Url: http://git.tremily.us/?a=commitdiff_plain;h=d01b2daf17e57ffc40fb8092eb799234a88a712b;p=krb5.git * poplib.c (pop_init()): Use new calling convention for krb5_sendauth() git-svn-id: svn://anonsvn.mit.edu/krb5/trunk@5251 dc483132-0cff-0310-8789-dd5450dbe970 --- diff --git a/src/appl/mailquery/ChangeLog b/src/appl/mailquery/ChangeLog index 1f7e3a255..8eb24f162 100644 --- a/src/appl/mailquery/ChangeLog +++ b/src/appl/mailquery/ChangeLog @@ -1,3 +1,7 @@ +Mon Mar 27 07:56:26 1995 Chris Provenzano (proven@mit.edu) + + * poplib.c (pop_init()): Use new calling convention for krb5_sendauth(). + Thu Mar 2 12:28:20 1995 Theodore Y. Ts'o * Makefile.in (ISODELIB): Remove reference to $(ISODELIB). diff --git a/src/appl/mailquery/poplib.c b/src/appl/mailquery/poplib.c index ea3f5bcb9..e8f640d13 100644 --- a/src/appl/mailquery/poplib.c +++ b/src/appl/mailquery/poplib.c @@ -78,6 +78,7 @@ int reserved; krb5_principal client = NULL, server = NULL; krb5_error *err_ret = NULL; register char *cp; + krb5_auth_context * auth_context; #endif #endif @@ -185,16 +186,14 @@ int reserved; goto krb5error; } - retval = krb5_sendauth(context, (krb5_pointer) &s, "KPOPV1.0", - client, server, + retval = krb5_sendauth(context, &auth_context, (krb5_pointer) &s, + "KPOPV1.0", client, server, AP_OPTS_MUTUAL_REQUIRED, - 0, /* no checksum */ + NULL, /* no data to checksum */ 0, /* no creds, use ccache instead */ ccdef, - 0, /* don't need seq # */ - 0, /* don't need a subsession key */ - &err_ret, - 0, NULL); /* don't need reply */ + &err_ret, 0, + NULL); /* don't need reply */ krb5_free_principal(context, server); if (retval) { if (err_ret && err_ret->text.length) { @@ -487,7 +486,7 @@ void * xmalloc (size) int size; { - void *result = malloc (size); + void *result = (void *)malloc (size); if (!result) fatal ("virtual memory exhausted", 0); return result;