From 64d5d138a925b6e852c5dd231ff49033555e5ea2 Mon Sep 17 00:00:00 2001 From: Luke Howard Date: Sun, 29 Dec 2019 00:17:26 +1100 Subject: [PATCH] gss: mechanism optional interfaces Make mechanism interfaces that are optional in usage, optional in implementation, i.e. do not require them to be present when dynamically loading a mechanism. In order to aid minimal mechanism implementation, more of these should likely be made optional (this will require an additional check in the mechglue to return GSS_S_UNAVAILABLE if the function pointer is NULL). This is left as a future exercise. --- lib/gssapi/mech/gss_mech_switch.c | 14 +++++++------- 1 file changed, 7 insertions(+), 7 deletions(-) diff --git a/lib/gssapi/mech/gss_mech_switch.c b/lib/gssapi/mech/gss_mech_switch.c index ba1cfa1b0..b86697150 100644 --- a/lib/gssapi/mech/gss_mech_switch.c +++ b/lib/gssapi/mech/gss_mech_switch.c @@ -349,22 +349,22 @@ _gss_load_mech(void) SYM(verify_mic); SYM(wrap); SYM(unwrap); - SYM(display_status); - SYM(indicate_mechs); + OPTSYM(display_status); + OPTSYM(indicate_mechs); SYM(compare_name); SYM(display_name); SYM(import_name); SYM(export_name); SYM(release_name); - SYM(inquire_cred); + OPTSYM(inquire_cred); SYM(inquire_context); SYM(wrap_size_limit); - SYM(add_cred); - SYM(inquire_cred_by_mech); + OPTSYM(add_cred); + OPTSYM(inquire_cred_by_mech); SYM(export_sec_context); SYM(import_sec_context); - SYM(inquire_names_for_mech); - SYM(inquire_mechs_for_name); + OPTSYM(inquire_names_for_mech); + OPTSYM(inquire_mechs_for_name); SYM(canonicalize_name); SYM(duplicate_name); OPTSYM(inquire_cred_by_oid);