* ser_cc.c (krb5_ccache_externalize): Use krb5_cc_get_name instead
authorEzra Peisach <epeisach@mit.edu>
Tue, 3 Oct 2000 16:03:35 +0000 (16:03 +0000)
committerEzra Peisach <epeisach@mit.edu>
Tue, 3 Oct 2000 16:03:35 +0000 (16:03 +0000)
        of krb5_rc_get_name on credential cache.

        * cc_file.c (krb5_fcc_get_name):
        * cc_stdio.c (krb5_scc_get_name):
        * cc_memory.c (krb5_mcc_get_name):
        * ccfns.c (krb5_cc_get_name): Declare as returning const char *.

git-svn-id: svn://anonsvn.mit.edu/krb5/trunk@12707 dc483132-0cff-0310-8789-dd5450dbe970

src/lib/krb5/ccache/ChangeLog
src/lib/krb5/ccache/cc_file.c
src/lib/krb5/ccache/cc_memory.c
src/lib/krb5/ccache/cc_stdio.c
src/lib/krb5/ccache/ccfns.c
src/lib/krb5/ccache/ser_cc.c

index e1eb808d88a46b8ddade606c4c210b6a7ff3b094..556eda1a502cd35d14e983eebe6752d0ec219128 100644 (file)
@@ -1,3 +1,13 @@
+2000-10-03  Ezra Peisach  <epeisach@mit.edu>
+
+       * ser_cc.c (krb5_ccache_externalize): Use krb5_cc_get_name instead
+       of krb5_rc_get_name on credential cache.
+
+       * cc_file.c (krb5_fcc_get_name): 
+       * cc_stdio.c (krb5_scc_get_name): 
+       * cc_memory.c (krb5_mcc_get_name): 
+       * ccfns.c (krb5_cc_get_name): Declare as returning const char *.
+
 2000-09-25  Ezra Peisach  <epeisach@mit.edu>
 
        * cc_file.c ccbase.c, cc_stdio.c, cc_retr.c, cc_memory.c: More
index fc092f0af20aeccc087bf83e6c2e93c5250992cb..c70c4ae3645744ce591dff22d09f1f569299e1ee 100644 (file)
@@ -104,7 +104,7 @@ KRB5_DLLIMP krb5_error_code KRB5_CALLCONV krb5_fcc_end_seq_get
 KRB5_DLLIMP krb5_error_code KRB5_CALLCONV krb5_fcc_generate_new 
         KRB5_PROTOTYPE((krb5_context, krb5_ccache *id ));
 
-KRB5_DLLIMP char * KRB5_CALLCONV krb5_fcc_get_name 
+KRB5_DLLIMP const char * KRB5_CALLCONV krb5_fcc_get_name 
         KRB5_PROTOTYPE((krb5_context, krb5_ccache id ));
 
 KRB5_DLLIMP krb5_error_code KRB5_CALLCONV krb5_fcc_get_principal 
@@ -1841,7 +1841,7 @@ err_out:
  * Returns:
  * The name of the file cred cache id.
  */
-char * KRB5_CALLCONV
+const char * KRB5_CALLCONV
 krb5_fcc_get_name (context, id)
    krb5_context context;
    krb5_ccache id;
index c7e0a43141789116695e931676c3cf1ff9ad5d5f..04b290aa95b4da20bdde32cfa257e9974777549a 100644 (file)
@@ -46,7 +46,7 @@ krb5_error_code KRB5_CALLCONV krb5_mcc_end_seq_get
 krb5_error_code KRB5_CALLCONV krb5_mcc_generate_new 
        PROTOTYPE((krb5_context, krb5_ccache *id ));
 
-char * KRB5_CALLCONV krb5_mcc_get_name 
+const char * KRB5_CALLCONV krb5_mcc_get_name 
        PROTOTYPE((krb5_context, krb5_ccache id ));
 
 krb5_error_code KRB5_CALLCONV krb5_mcc_get_principal 
@@ -474,7 +474,7 @@ krb5_mcc_generate_new (context, id)
  * Returns:
  * The name of the file cred cache id.
  */
-char * KRB5_CALLCONV
+const char * KRB5_CALLCONV
 krb5_mcc_get_name (context, id)
    krb5_context context;
    krb5_ccache id;
index d647ad12733f7bbf7005ea86d00adbc8a88a01d1..756b68a4cc51653c8eb66b76da44ff1959f552c9 100644 (file)
@@ -99,7 +99,7 @@ krb5_error_code KRB5_CALLCONV krb5_scc_generate_new
        PROTOTYPE((krb5_context, 
                   krb5_ccache *id ));
 
-char * KRB5_CALLCONV krb5_scc_get_name
+const char * KRB5_CALLCONV krb5_scc_get_name
        PROTOTYPE((krb5_context, 
                   krb5_ccache id ));
 
@@ -1916,7 +1916,7 @@ err_out:
  * Returns:
  * The name of the file cred cache id.
  */
-char *
+const char *
 KRB5_CALLCONV
 krb5_scc_get_name (context, id)
    krb5_context context;
index f5f48fd8fb03bb10e61c0d1de17bcb1c29adbf83..35a17367edfdfd43f8a55f3d49fd3928e1c26cf4 100644 (file)
@@ -30,7 +30,7 @@
 
 #include "k5-int.h"
 
-char FAR * KRB5_CALLCONV
+const char FAR * KRB5_CALLCONV
 krb5_cc_get_name (krb5_context context, krb5_ccache cache)
 {
     return cache->ops->get_name(context, cache);
index 8c1918a5af09f48ba94f318ecf2e88b8318c5da6..6bce4e34456e9367fbb0194ff08a745e5280cbf9 100644 (file)
@@ -83,7 +83,7 @@ krb5_ccache_size(kcontext, arg, sizep)
         * The ccache name is formed as follows:
         *      <prefix>:<name>
         */
-       required += strlen(krb5_rc_get_name(kcontext, ccache));
+       required += strlen(krb5_cc_get_name(kcontext, ccache));
 
        kret = 0;
        *sizep += required;
@@ -108,7 +108,7 @@ krb5_ccache_externalize(kcontext, arg, buffer, lenremain)
     size_t             remain;
     char               *ccname;
     size_t             namelen;
-    char               *fnamep;
+    const char         *fnamep;
 
     required = 0;
     bp = *buffer;
@@ -124,7 +124,7 @@ krb5_ccache_externalize(kcontext, arg, buffer, lenremain)
            /* Calculate the length of the name */
            namelen = (ccache->ops && ccache->ops->prefix) ?
                strlen(ccache->ops->prefix)+1 : 0;
-           fnamep = krb5_rc_get_name(kcontext, ccache);
+           fnamep = krb5_cc_get_name(kcontext, ccache);
            namelen += (strlen(fnamep)+1);
 
            if ((ccname = (char *) malloc(namelen))) {