change first arg of krb5_get_server_rcache to a krb5_data *
authorJohn Kohl <jtkohl@mit.edu>
Fri, 19 Jul 1991 16:55:44 +0000 (16:55 +0000)
committerJohn Kohl <jtkohl@mit.edu>
Fri, 19 Jul 1991 16:55:44 +0000 (16:55 +0000)
git-svn-id: svn://anonsvn.mit.edu/krb5/trunk@2189 dc483132-0cff-0310-8789-dd5450dbe970

src/appl/simple/server/sim_server.c
src/include/krb5/func-proto.h
src/lib/gssapi/acc_sec.c
src/lib/krb425/mk_priv.c
src/lib/krb425/mk_safe.c
src/lib/krb425/rd_priv.c
src/lib/krb425/rd_safe.c
src/lib/krb5/krb/rd_req_sim.c

index fa0ca5ef0a217001fc173803256b196c6466f4f1..7d6525ed6cf2e2e14cd1cef2acbd649465095119 100644 (file)
@@ -192,7 +192,7 @@ char *argv[];
        exit(1);
     }
 
-    if (retval = krb5_get_server_rcache(sprinc[1]->data, &rcache)) {
+    if (retval = krb5_get_server_rcache(sprinc[1], &rcache)) {
        com_err(PROGNAME, retval, "while opening replay cache");
        exit(1);
     }
index 622b10ecc7e77b3015f031cbd39808e16443646d..d5bf4afe29a3edb45372607e44ac48ec38128b15 100644 (file)
@@ -171,7 +171,7 @@ krb5_error_code krb5_generate_subkey
 krb5_error_code krb5_generate_seq_number
     PROTOTYPE((const krb5_keyblock *, krb5_int32 *));
 krb5_error_code krb5_get_server_rcache
-    PROTOTYPE((const char *, krb5_rcache *));
+    PROTOTYPE((const krb5_data *, krb5_rcache *));
 krb5_error_code krb5_build_principal_ext
     STDARG_P((krb5_principal *, int, const char *, ...));
 krb5_error_code krb5_build_principal
index 222c093279866e45c3bd52692f5065dddafd63f6..17a21e8e0e1fc248edd0d986756efd543f630e97 100644 (file)
@@ -116,7 +116,7 @@ OM_uint32 gss_accept_sec_context(minor_status, context_handle,
                /*
                 * Setup the replay cache.
                 */
-               if (*minor_status = krb5_get_server_rcache(server[1]->data,
+               if (*minor_status = krb5_get_server_rcache(server[1],
                                                           &rcache))
                        return(GSS_S_FAILURE);
                /*
index f3442c7794986092b4c97136403042e30f32d83f..96b8c3689bf68458d3f062440a042797f4a218f6 100644 (file)
@@ -79,7 +79,9 @@ struct sockaddr_in *receiver;
        }
 
 
-       if (r = krb5_get_server_rcache(inet_ntoa(sender->sin_addr),
+       out5.data = inet_ntoa(sender->sin_addr);
+       out5.length = strlen(out5.data);
+       if (r = krb5_get_server_rcache(&out5,
                                       &rcache)) {
            krb5_free_address(saddr2);
 #ifdef EBUG
index 8d132e1ae205d2f8458279984b1351f20da158dc..45748f05549fab4a5d478b8a3c41847cb9acc318 100644 (file)
@@ -77,7 +77,9 @@ struct sockaddr_in *receiver;
            return(-1);
        }
 
-       if (r = krb5_get_server_rcache(inet_ntoa(sender->sin_addr),
+       out5.data = inet_ntoa(sender->sin_addr);
+       out5.length = strlen(out5.data);
+       if (r = krb5_get_server_rcache(&out5,
                                       &rcache)) {
            krb5_free_address(saddr2);
 #ifdef EBUG
index 20cc6359e20c1afa03d246b1169bb81a5ff6464a..f402b6f2bd221958b3f095b9a1deb7749408f8fb 100644 (file)
@@ -90,7 +90,9 @@ MSG_DAT *msg;
            return(krb425error(ENOMEM));
        }
            
-       if (r = krb5_get_server_rcache(cachename,
+       out.data = cachename;
+       out.length = strlen(cachename);
+       if (r = krb5_get_server_rcache(&out,
                                       &rcache)) {
            krb5_free_address(saddr2);
 #ifdef EBUG
index 0002db9f8f398a1c0e6992106544ee336cd0e337..9ee0221bc56a6ff278886bd4910f6db9b2a482cd 100644 (file)
@@ -89,7 +89,9 @@ MSG_DAT *msg;
            return(krb425error(ENOMEM));
        }
            
-       if (r = krb5_get_server_rcache(cachename,
+       out.data = cachename;
+       out.length = strlen(cachename);
+       if (r = krb5_get_server_rcache(&out,
                                       &rcache)) {
            krb5_free_address(saddr2);
 #ifdef EBUG
index 95157adedde0f29c6fdcd6faacaec39f6a2008ca..ef379c783371a557dc3a06000501e589a00865d5 100644 (file)
@@ -74,7 +74,7 @@ krb5_tkt_authent **authdat;
            return(retval);
        }
     }
-    if (!(retval = krb5_get_server_rcache(server[1]->data, &rcache))) {
+    if (!(retval = krb5_get_server_rcache(server[1], &rcache))) {
        retval = krb5_rd_req_decoded(request, server,
                                     sender_addr, 0,
                                     0, 0, rcache, authdat);