From 8df7b929c3ee272e8255d57720c3e299ebccd198 Mon Sep 17 00:00:00 2001 From: Greg Hudson Date: Wed, 27 Feb 2013 17:29:16 -0500 Subject: Add krb5_free_enctypes API Rename krb5_free_ktypes to krb5_free_enctypes and add it to the public API. ticket: 7584 --- src/include/k5-int.h | 2 -- src/include/krb5/krb5.hin | 13 +++++++++++++ 2 files changed, 13 insertions(+), 2 deletions(-) (limited to 'src/include') diff --git a/src/include/k5-int.h b/src/include/k5-int.h index 9136bfc0e2..74b12af0ef 100644 --- a/src/include/k5-int.h +++ b/src/include/k5-int.h @@ -2344,8 +2344,6 @@ krb5_error_code krb5_set_default_tgs_ktypes(krb5_context, krb5_error_code KRB5_CALLCONV krb5_get_tgs_ktypes(krb5_context, krb5_const_principal, krb5_enctype **); -void KRB5_CALLCONV krb5_free_ktypes(krb5_context, krb5_enctype *); - krb5_boolean krb5_is_permitted_enctype(krb5_context, krb5_enctype); krb5_boolean KRB5_CALLCONV krb5int_c_weak_enctype(krb5_enctype); diff --git a/src/include/krb5/krb5.hin b/src/include/krb5/krb5.hin index 687f2b9a32..e95d02989a 100644 --- a/src/include/krb5/krb5.hin +++ b/src/include/krb5/krb5.hin @@ -3038,6 +3038,8 @@ krb5_set_default_tgs_enctypes(krb5_context context, const krb5_enctype *etypes); * keys within @a context, as determined by configuration or by a previous call * to krb5_set_default_tgs_enctypes(). * + * Use krb5_free_enctypes() to free @a ktypes when it is no longer needed. + * * @retval 0 Success; otherwise - Kerberos error codes */ krb5_error_code KRB5_CALLCONV @@ -4756,6 +4758,17 @@ krb5_free_unparsed_name(krb5_context context, char *val); void KRB5_CALLCONV krb5_free_string(krb5_context context, char *val); +/** + * Free an array of encryption types. + * + * @param [in] context Library context + * @param [in] val Array of enctypes to be freed + * + * @version First introduced in 1.12 + */ +void KRB5_CALLCONV +krb5_free_enctypes(krb5_context context, krb5_enctype *val); + /** * Free an array of checksum types. * -- cgit