Blame SOURCES/krb5-1.11-gss-methods1.patch

5af5b2
commit ee53a887bead08ec1354de3e74659da537f87515
5af5b2
Author: Simo Sorce <simo@redhat.com>
5af5b2
Date:   Sat Jul 20 13:19:19 2013 -0400
5af5b2
5af5b2
    Load cred store functions from GSS modules
5af5b2
    
5af5b2
    When the credential store feature was implement the related functions
5af5b2
    were added to struct gss_config, but the initialization function that
5af5b2
    dynamically loads modules was not changed to see if the plugin being
5af5b2
    loaded provided such functions.
5af5b2
    
5af5b2
    This will allow non-builtin mechanism and interposer mechanism to
5af5b2
    implement custom credential store extensions if they wish.
5af5b2
    
5af5b2
    ticket: 7682
5af5b2
5af5b2
diff --git a/src/lib/gssapi/mechglue/g_initialize.c b/src/lib/gssapi/mechglue/g_initialize.c
5af5b2
index f5b8b15..70cc4ee 100644
5af5b2
--- a/src/lib/gssapi/mechglue/g_initialize.c
5af5b2
+++ b/src/lib/gssapi/mechglue/g_initialize.c
5af5b2
@@ -680,6 +680,8 @@ build_dynamicMech(void *dl, const gss_OID mech_type)
5af5b2
         GSS_ADD_DYNAMIC_METHOD_NOLOOP(dl, mech, gss_inquire_mech_for_saslname);
5af5b2
         /* RFC 5587 */
5af5b2
         GSS_ADD_DYNAMIC_METHOD_NOLOOP(dl, mech, gss_inquire_attrs_for_mech);
5af5b2
+	GSS_ADD_DYNAMIC_METHOD(dl, mech, gss_acquire_cred_from);
5af5b2
+	GSS_ADD_DYNAMIC_METHOD(dl, mech, gss_store_cred_into);
5af5b2
 	GSS_ADD_DYNAMIC_METHOD(dl, mech, gssspi_acquire_cred_with_password);
5af5b2
 	GSS_ADD_DYNAMIC_METHOD(dl, mech, gssspi_import_sec_context_by_mech);
5af5b2
 	GSS_ADD_DYNAMIC_METHOD(dl, mech, gssspi_import_name_by_mech);
5af5b2
@@ -778,6 +780,8 @@ build_interMech(void *dl, const gss_OID mech_type)
5af5b2
 	RESOLVE_GSSI_SYMBOL(dl, mech, gss, _inquire_mech_for_saslname);
5af5b2
 	/* RFC 5587 */
5af5b2
 	RESOLVE_GSSI_SYMBOL(dl, mech, gss, _inquire_attrs_for_mech);
5af5b2
+	RESOLVE_GSSI_SYMBOL(dl, mech, gss, _acquire_cred_from);
5af5b2
+	RESOLVE_GSSI_SYMBOL(dl, mech, gss, _store_cred_into);
5af5b2
 	RESOLVE_GSSI_SYMBOL(dl, mech, gssspi, _acquire_cred_with_password);
5af5b2
 	RESOLVE_GSSI_SYMBOL(dl, mech, gssspi, _import_sec_context_by_mech);
5af5b2
 	RESOLVE_GSSI_SYMBOL(dl, mech, gssspi, _import_name_by_mech);