|
Nalin Dahyabhai |
66d9928 |
commit 744d6f873393b6bbd12e1c1884738676a089fa65
|
|
Nalin Dahyabhai |
66d9928 |
Author: Simo Sorce <simo@redhat.com>
|
|
Nalin Dahyabhai |
66d9928 |
Date: Sat Jul 20 13:20:43 2013 -0400
|
|
Nalin Dahyabhai |
66d9928 |
|
|
Nalin Dahyabhai |
66d9928 |
Load import/export cred functions from GSS modules
|
|
Nalin Dahyabhai |
66d9928 |
|
|
Nalin Dahyabhai |
66d9928 |
When the import/export credential feature was implement the related
|
|
Nalin Dahyabhai |
66d9928 |
functions were added to struct gss_config, but the initialization
|
|
Nalin Dahyabhai |
66d9928 |
function that dynamically loads modules was not changed to see if
|
|
Nalin Dahyabhai |
66d9928 |
the plugin being loaded provided such functions.
|
|
Nalin Dahyabhai |
66d9928 |
|
|
Nalin Dahyabhai |
66d9928 |
This will allow non-builtin mechanism and interposer mechanism to
|
|
Nalin Dahyabhai |
66d9928 |
implement custom import/export credential extensions if they wish.
|
|
Nalin Dahyabhai |
66d9928 |
|
|
Nalin Dahyabhai |
66d9928 |
ticket: 7682
|
|
Nalin Dahyabhai |
66d9928 |
|
|
Nalin Dahyabhai |
66d9928 |
diff --git a/src/lib/gssapi/mechglue/g_initialize.c b/src/lib/gssapi/mechglue/g_initialize.c
|
|
Nalin Dahyabhai |
66d9928 |
index 70cc4ee..48a825e 100644
|
|
Nalin Dahyabhai |
66d9928 |
--- a/src/lib/gssapi/mechglue/g_initialize.c
|
|
Nalin Dahyabhai |
66d9928 |
+++ b/src/lib/gssapi/mechglue/g_initialize.c
|
|
Nalin Dahyabhai |
66d9928 |
@@ -683,6 +683,8 @@ build_dynamicMech(void *dl, const gss_OID mech_type)
|
|
Nalin Dahyabhai |
66d9928 |
GSS_ADD_DYNAMIC_METHOD(dl, mech, gss_acquire_cred_from);
|
|
Nalin Dahyabhai |
66d9928 |
GSS_ADD_DYNAMIC_METHOD(dl, mech, gss_store_cred_into);
|
|
Nalin Dahyabhai |
66d9928 |
GSS_ADD_DYNAMIC_METHOD(dl, mech, gssspi_acquire_cred_with_password);
|
|
Nalin Dahyabhai |
66d9928 |
+ GSS_ADD_DYNAMIC_METHOD(dl, mech, gss_export_cred);
|
|
Nalin Dahyabhai |
66d9928 |
+ GSS_ADD_DYNAMIC_METHOD(dl, mech, gss_import_cred);
|
|
Nalin Dahyabhai |
66d9928 |
GSS_ADD_DYNAMIC_METHOD(dl, mech, gssspi_import_sec_context_by_mech);
|
|
Nalin Dahyabhai |
66d9928 |
GSS_ADD_DYNAMIC_METHOD(dl, mech, gssspi_import_name_by_mech);
|
|
Nalin Dahyabhai |
66d9928 |
GSS_ADD_DYNAMIC_METHOD(dl, mech, gssspi_import_cred_by_mech);
|
|
Nalin Dahyabhai |
66d9928 |
@@ -783,6 +785,8 @@ build_interMech(void *dl, const gss_OID mech_type)
|
|
Nalin Dahyabhai |
66d9928 |
RESOLVE_GSSI_SYMBOL(dl, mech, gss, _acquire_cred_from);
|
|
Nalin Dahyabhai |
66d9928 |
RESOLVE_GSSI_SYMBOL(dl, mech, gss, _store_cred_into);
|
|
Nalin Dahyabhai |
66d9928 |
RESOLVE_GSSI_SYMBOL(dl, mech, gssspi, _acquire_cred_with_password);
|
|
Nalin Dahyabhai |
66d9928 |
+ RESOLVE_GSSI_SYMBOL(dl, mech, gss, _export_cred);
|
|
Nalin Dahyabhai |
66d9928 |
+ RESOLVE_GSSI_SYMBOL(dl, mech, gss, _import_cred);
|
|
Nalin Dahyabhai |
66d9928 |
RESOLVE_GSSI_SYMBOL(dl, mech, gssspi, _import_sec_context_by_mech);
|
|
Nalin Dahyabhai |
66d9928 |
RESOLVE_GSSI_SYMBOL(dl, mech, gssspi, _import_name_by_mech);
|
|
Nalin Dahyabhai |
66d9928 |
RESOLVE_GSSI_SYMBOL(dl, mech, gssspi, _import_cred_by_mech);
|