From cfdd06c73984c2a6d7ee0778d3c5453b2f4771e0 Mon Sep 17 00:00:00 2001 From: Chris Provenzano Date: Mon, 27 Mar 1995 14:21:38 +0000 Subject: [PATCH] * pop_init.c Use new calling conventions for krb5_recvauth() git-svn-id: svn://anonsvn.mit.edu/krb5/trunk@5253 dc483132-0cff-0310-8789-dd5450dbe970 --- src/appl/popper/ChangeLog | 5 +++++ src/appl/popper/pop_init.c | 17 +++++++---------- 2 files changed, 12 insertions(+), 10 deletions(-) diff --git a/src/appl/popper/ChangeLog b/src/appl/popper/ChangeLog index 58d3f2d56..d046f3c97 100644 --- a/src/appl/popper/ChangeLog +++ b/src/appl/popper/ChangeLog @@ -1,3 +1,8 @@ + +Mon Mar 27 07:56:26 1995 Chris Provenzano (proven@mit.edu) + + * pop_init.c Use new calling conventions for krb5_recvauth(). + Tue Mar 14 16:54:41 1995 * Makefile.in: Delete definitions defined in pre/config.in. diff --git a/src/appl/popper/pop_init.c b/src/appl/popper/pop_init.c index e84647b8e..81e1c7adb 100644 --- a/src/appl/popper/pop_init.c +++ b/src/appl/popper/pop_init.c @@ -287,6 +287,7 @@ authenticate(p, addr) #endif #ifdef KRB5 + krb5_auth_context * auth_context = NULL; krb5_error_code retval; krb5_principal server; int sock = 0; @@ -304,17 +305,12 @@ authenticate(p, addr) exit(-1); } - if (retval = krb5_recvauth(pop_context, (krb5_pointer)&sock, - "KPOPV1.0", - server, - 0, /* ignore peer address */ - 0, 0, 0, /* no fetchfrom, keyproc or arg */ - 0, /* default rc type */ + if (retval = krb5_recvauth(pop_context, &auth_context, (krb5_pointer)&sock, + "KPOPV1.0", server, + NULL, /* default rc type */ 0, /* no flags */ - 0, /* don't need seq number */ - &ext_client, - 0, 0 /* don't care about ticket or - authenticator */ + NULL, /* default keytab */ + NULL /* don't care about ticket */ )) { pop_msg(p, POP_FAILURE, "recvauth failed--%s", error_message(retval)); pop_log(p, POP_WARNING, "%s: recvauth failed--%s", @@ -322,6 +318,7 @@ authenticate(p, addr) exit(-1); } krb5_free_principal(pop_context, server); + krb5_auth_con_free(pop_context, auth_context); if (retval = krb5_unparse_name(pop_context, ext_client, &client_name)) { pop_msg(p, POP_FAILURE, "name not parsable--%s", error_message(retval)); -- 2.26.2