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
+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
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
* 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;
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
* 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;
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 ));
* Returns:
* The name of the file cred cache id.
*/
-char *
+const char *
KRB5_CALLCONV
krb5_scc_get_name (context, id)
krb5_context context;
#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);
* 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;
size_t remain;
char *ccname;
size_t namelen;
- char *fnamep;
+ const char *fnamep;
required = 0;
bp = *buffer;
/* 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))) {