nsswitch: explicitly mark magic krb5 plugin symbols as _PUBLIC_
authorStefan Metzmacher <metze@samba.org>
Thu, 1 Jul 2021 10:08:16 +0000 (12:08 +0200)
committerStefan Metzmacher <metze@samba.org>
Tue, 30 Nov 2021 15:53:34 +0000 (15:53 +0000)
The symbols which are used via dlopen()/dlsym() need to be exported,
in future we'll do hide all other symbols.

BUG: https://bugzilla.samba.org/show_bug.cgi?id=14780

Signed-off-by: Stefan Metzmacher <metze@samba.org>
Reviewed-by: Andrew Bartlett <abartlet@samba.org>
Reviewed-by: Andreas Schneider <asn@samba.org>
nsswitch/krb5_plugin/async_dns_krb5_locator.c
nsswitch/krb5_plugin/winbind_krb5_localauth.c
nsswitch/krb5_plugin/winbind_krb5_locator.c

index 959d730a954cade3bedb56219f4d71a24c27260b..7383b739a83e350b49b8a2136b0f461f12c03d40 100644 (file)
@@ -431,7 +431,7 @@ static krb5_error_code smb_krb5_adns_locator_lookup(void *private_data,
 #define SMB_KRB5_LOCATOR_SYMBOL_NAME service_locator /* MIT */
 #endif
 
-const krb5plugin_service_locate_ftable SMB_KRB5_LOCATOR_SYMBOL_NAME = {
+_PUBLIC_ const krb5plugin_service_locate_ftable SMB_KRB5_LOCATOR_SYMBOL_NAME = {
        .minor_version  = 0,
        .init           = smb_krb5_adns_locator_init,
        .fini           = smb_krb5_adns_locator_close,
index 293f5297ca8c03025c7f72cdfd6e66f670d6d3cb..751dfd1674b4f11a0ef845b1038d3a4d8b6e365a 100644 (file)
@@ -248,13 +248,13 @@ static void winbind_free_string(krb5_context context,
        free(str);
 }
 
-krb5_error_code
+_PUBLIC_ krb5_error_code
 localauth_winbind_initvt(krb5_context context,
                         int maj_ver,
                         int min_ver,
                         krb5_plugin_vtable vtable);
 
-krb5_error_code
+_PUBLIC_ krb5_error_code
 localauth_winbind_initvt(krb5_context context,
                         int maj_ver,
                         int min_ver,
index d08cdf72a5993ec57ef5c38ceeddcd05841b24f6..d65b50eea329d952a5c718c75febea0823ec1f2a 100644 (file)
@@ -408,7 +408,7 @@ static krb5_error_code smb_krb5_locator_lookup(void *private_data,
 #define SMB_KRB5_LOCATOR_SYMBOL_NAME service_locator /* MIT */
 #endif
 
-const krb5plugin_service_locate_ftable SMB_KRB5_LOCATOR_SYMBOL_NAME = {
+_PUBLIC_ const krb5plugin_service_locate_ftable SMB_KRB5_LOCATOR_SYMBOL_NAME = {
        .minor_version  = 0,
        .init           = smb_krb5_locator_init,
        .fini           = smb_krb5_locator_close,