* poplib.c (pop_init()): Use new calling convention for krb5_sendauth()
authorChris Provenzano <proven@mit.edu>
Mon, 27 Mar 1995 14:11:54 +0000 (14:11 +0000)
committerChris Provenzano <proven@mit.edu>
Mon, 27 Mar 1995 14:11:54 +0000 (14:11 +0000)
git-svn-id: svn://anonsvn.mit.edu/krb5/trunk@5251 dc483132-0cff-0310-8789-dd5450dbe970

src/appl/mailquery/ChangeLog
src/appl/mailquery/poplib.c

index 1f7e3a255426cfbfe3bf02a6d1e13953de734bc5..8eb24f1625c6de071b5f34d9e64948e5bb957610 100644 (file)
@@ -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  <tytso@dcl>
 
        * Makefile.in (ISODELIB): Remove reference to $(ISODELIB).
index ea3f5bcb9c96d68f11aadfb229b84d50ff153049..e8f640d135dad8d2cb0d0fd563e2a7b40be42168 100644 (file)
@@ -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;