krb5 commit: Remove krb5int_cc_os_default_name
Greg Hudson
ghudson at MIT.EDU
Mon Jun 11 09:31:12 EDT 2012
https://github.com/krb5/krb5/commit/01a4a2016009b7142e87da601eeae4d5086b576b
commit 01a4a2016009b7142e87da601eeae4d5086b576b
Author: Greg Hudson <ghudson at mit.edu>
Date: Mon Jun 11 09:30:20 2012 -0400
Remove krb5int_cc_os_default_name
krb5int_cc_os_default_name has been unused since #6955 removed the
call to it in cccursor.c. Get rid of it.
src/include/k5-int.h | 3 ---
src/lib/krb5/os/ccdefname.c | 19 -------------------
2 files changed, 0 insertions(+), 22 deletions(-)
diff --git a/src/include/k5-int.h b/src/include/k5-int.h
index 643af18..28c86f8 100644
--- a/src/include/k5-int.h
+++ b/src/include/k5-int.h
@@ -2176,9 +2176,6 @@ struct _krb5_cc_ops {
extern const krb5_cc_ops *krb5_cc_dfl_ops;
-krb5_error_code
-krb5int_cc_os_default_name(krb5_context context, char **name);
-
typedef struct _krb5_donot_replay {
krb5_magic magic;
krb5_ui_4 hash;
diff --git a/src/lib/krb5/os/ccdefname.c b/src/lib/krb5/os/ccdefname.c
index c460133..fd3abf4 100644
--- a/src/lib/krb5/os/ccdefname.c
+++ b/src/lib/krb5/os/ccdefname.c
@@ -298,22 +298,3 @@ krb5_cc_default_name(krb5_context context)
return err ? NULL : os_ctx->default_ccname;
}
-
-/*
- * caller must free name
- */
-krb5_error_code
-krb5int_cc_os_default_name(krb5_context context, char **name)
-{
- krb5_error_code retval = 0;
- char *tmpname = NULL;
-
- *name = NULL;
- tmpname = malloc(BUFSIZ);
- if (tmpname == NULL)
- return ENOMEM;
-
- retval = get_from_os(tmpname, BUFSIZ);
- *name = tmpname;
- return retval;
-}
More information about the cvs-krb5
mailing list