Allow _gss_string_to_oid() without HAVE_DLOPEN

This function became used outside the protection of
HAVE_DLOPEN (which Samba sets) with:

commit 5966c00701
Author: Luke Howard <lukeh@padl.com>
Date:   Sun Aug 8 10:34:28 2021 +1000

    gss: add gss_mg_name_to_oid internal API

    Add a new function for future internal use, gss_mg_name_to_oid(), which takes
    either a dot-separated OID or a "short" mechanism name (such as
    "sanon-x25519"), and returns a mechanism OID.

Signed-off-by: Andrew Bartlett <abartlet@samba.org>
This commit is contained in:
Andrew Bartlett
2021-08-09 11:45:53 +12:00
committed by Luke Howard
parent ab8d4f508e
commit 3587b8c08c

View File

@@ -37,7 +37,6 @@ struct _gss_mech_switch_list _gss_mechs = { NULL, NULL } ;
gss_OID_set _gss_mech_oids;
static HEIMDAL_MUTEX _gss_mech_mutex = HEIMDAL_MUTEX_INITIALIZER;
#ifdef HAVE_DLOPEN
/*
* Convert a string containing an OID in 'dot' form
* (e.g. 1.2.840.113554.1.2.2) to a gss_OID.
@@ -160,7 +159,6 @@ _gss_string_to_oid(const char* s, gss_OID *oidp)
return (0);
}
#endif
#define SYM(name) \
do { \