From 126ad3e2d030651876308ff9a0ec0a0f3686d421 Mon Sep 17 00:00:00 2001 From: Jeffrey Altman Date: Wed, 23 Jul 2008 14:44:50 +0000 Subject: [PATCH] The /src/windows/identity/plugins/common/dynimport.{c,h} files are used by the NIM Kerberos v5 plug-ins for run-time dynamic linking. They currently do not declare or import the following functions: krb5_get_error_message() krb5_free_error_message() krb5_clear_error_message() This patch adds declarations and definitions required for locating these functions. Relies on the addition of these functions to the prototype list in the Pismere loadfuncs-krb5.h. See ticket 6045. ticket: 6046 tags: pullup git-svn-id: svn://anonsvn.mit.edu/krb5/trunk@20571 dc483132-0cff-0310-8789-dd5450dbe970 --- src/windows/identity/plugins/common/dynimport.c | 6 ++++++ src/windows/identity/plugins/common/dynimport.h | 3 +++ 2 files changed, 9 insertions(+) diff --git a/src/windows/identity/plugins/common/dynimport.c b/src/windows/identity/plugins/common/dynimport.c index ea8bbf905..99a93dd25 100644 --- a/src/windows/identity/plugins/common/dynimport.c +++ b/src/windows/identity/plugins/common/dynimport.c @@ -145,6 +145,9 @@ DECL_FUNC_PTR(krb5_c_random_make_octets); DECL_FUNC_PTR(krb5_free_addresses); DECL_FUNC_PTR(krb5_free_default_realm); DECL_FUNC_PTR(krb5_string_to_deltat); +DECL_FUNC_PTR(krb5_get_error_message); +DECL_FUNC_PTR(krb5_free_error_message); +DECL_FUNC_PTR(krb5_clear_error_message); // Krb524 functions DECL_FUNC_PTR(krb524_init_ets); @@ -293,6 +296,9 @@ FUNC_INFO k5_fi[] = { MAKE_FUNC_INFO(krb5_c_random_make_octets), MAKE_FUNC_INFO(krb5_free_default_realm), MAKE_FUNC_INFO(krb5_string_to_deltat), + MAKE_FUNC_INFO(krb5_get_error_message), + MAKE_FUNC_INFO(krb5_free_error_message), + MAKE_FUNC_INFO(krb5_clear_error_message), END_FUNC_INFO }; diff --git a/src/windows/identity/plugins/common/dynimport.h b/src/windows/identity/plugins/common/dynimport.h index 2c0995cba..8660d6c0d 100644 --- a/src/windows/identity/plugins/common/dynimport.h +++ b/src/windows/identity/plugins/common/dynimport.h @@ -272,6 +272,9 @@ extern DECL_FUNC_PTR(krb5_free_host_realm); extern DECL_FUNC_PTR(krb5_c_random_make_octets); extern DECL_FUNC_PTR(krb5_free_default_realm); extern DECL_FUNC_PTR(krb5_string_to_deltat); +extern DECL_FUNC_PTR(krb5_get_error_message); +extern DECL_FUNC_PTR(krb5_free_error_message); +extern DECL_FUNC_PTR(krb5_clear_error_message); // Krb524 functions extern DECL_FUNC_PTR(krb524_init_ets); -- 2.26.2