From 9bbb07fc1804093d166f27293609a22ff8436cc8 Mon Sep 17 00:00:00 2001 From: Miro Jurisic Date: Mon, 20 Mar 2000 19:53:36 +0000 Subject: Added krb5_free_default_realm git-svn-id: svn://anonsvn.mit.edu/krb5/trunk@12133 dc483132-0cff-0310-8789-dd5450dbe970 --- src/include/ChangeLog | 4 ++++ src/include/krb5.hin | 3 +++ src/lib/krb5/os/ChangeLog | 5 +++++ src/lib/krb5/os/def_realm.c | 11 ++++++++++- 4 files changed, 22 insertions(+), 1 deletion(-) (limited to 'src') diff --git a/src/include/ChangeLog b/src/include/ChangeLog index 928ecb1fc8..2826d7a417 100644 --- a/src/include/ChangeLog +++ b/src/include/ChangeLog @@ -1,3 +1,7 @@ +2000-03-20 Miro Jurisic + + * krb5.hin: Add krb5_free_default_realm + 2000-03-15 Danilo Almeida * krb5.hin: Add krb5_get_prompt_types() and related defs.. diff --git a/src/include/krb5.hin b/src/include/krb5.hin index ea8f93e879..40f1dd3906 100644 --- a/src/include/krb5.hin +++ b/src/include/krb5.hin @@ -1799,6 +1799,9 @@ KRB5_DLLIMP krb5_error_code KRB5_CALLCONV krb5_get_default_realm KRB5_DLLIMP krb5_error_code KRB5_CALLCONV krb5_set_default_realm KRB5_PROTOTYPE((krb5_context, krb5_const char FAR * )); +KRB5_DLLIMP void KRB5_CALLCONV krb5_free_default_realm + KRB5_PROTOTYPE((krb5_context, + char FAR * )); KRB5_DLLIMP krb5_error_code KRB5_CALLCONV krb5_sname_to_principal KRB5_PROTOTYPE((krb5_context, krb5_const char FAR *, diff --git a/src/lib/krb5/os/ChangeLog b/src/lib/krb5/os/ChangeLog index 8f8c018214..768f1e3a91 100644 --- a/src/lib/krb5/os/ChangeLog +++ b/src/lib/krb5/os/ChangeLog @@ -1,3 +1,8 @@ +2000-03-20 Miro Jurisic + + * def_realm.c (krb5_free_default_realm): Added, use to free + result of krb5_get_default_realm + 2000-03-15 Danilo Almeida * prompter.c: Add krb5int_set_prompt_types() and diff --git a/src/lib/krb5/os/def_realm.c b/src/lib/krb5/os/def_realm.c index 8647f89846..d3c031f5b6 100644 --- a/src/lib/krb5/os/def_realm.c +++ b/src/lib/krb5/os/def_realm.c @@ -24,7 +24,8 @@ * or implied warranty. * * - * krb5_get_default_realm() function. + * krb5_get_default_realm(), krb5_set_default_realm(), + * krb5_free_default_realm() functions. */ #include "k5-int.h" @@ -202,3 +203,11 @@ krb5_set_default_realm(context, lrealm) return(0); } + +KRB5_DLLIMP void KRB5_CALLCONV +krb5_free_default_realm(context, lrealm) + krb5_context context; + char FAR* lrealm; +{ + free (lrealm); +} \ No newline at end of file -- cgit