diff options
author | Stefan Metzmacher <metze@samba.org> | 2021-07-01 12:08:16 +0200 |
---|---|---|
committer | Stefan Metzmacher <metze@samba.org> | 2021-11-30 15:53:34 +0000 |
commit | a663c9648f14294d7e02f30ee1a9a53b1a404279 (patch) | |
tree | 7cfbb81ecb3d2158fcc37749ef279697aa20654f /nsswitch | |
parent | 9615395b1fdaa4509a9739bada93c3bb72903b2c (diff) | |
download | samba-a663c9648f14294d7e02f30ee1a9a53b1a404279.tar.gz |
nsswitch: explicitly mark magic krb5 plugin symbols as _PUBLIC_
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>
Diffstat (limited to 'nsswitch')
-rw-r--r-- | nsswitch/krb5_plugin/async_dns_krb5_locator.c | 2 | ||||
-rw-r--r-- | nsswitch/krb5_plugin/winbind_krb5_localauth.c | 4 | ||||
-rw-r--r-- | nsswitch/krb5_plugin/winbind_krb5_locator.c | 2 |
3 files changed, 4 insertions, 4 deletions
diff --git a/nsswitch/krb5_plugin/async_dns_krb5_locator.c b/nsswitch/krb5_plugin/async_dns_krb5_locator.c index 959d730a954..7383b739a83 100644 --- a/nsswitch/krb5_plugin/async_dns_krb5_locator.c +++ b/nsswitch/krb5_plugin/async_dns_krb5_locator.c @@ -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, diff --git a/nsswitch/krb5_plugin/winbind_krb5_localauth.c b/nsswitch/krb5_plugin/winbind_krb5_localauth.c index 293f5297ca8..751dfd1674b 100644 --- a/nsswitch/krb5_plugin/winbind_krb5_localauth.c +++ b/nsswitch/krb5_plugin/winbind_krb5_localauth.c @@ -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, diff --git a/nsswitch/krb5_plugin/winbind_krb5_locator.c b/nsswitch/krb5_plugin/winbind_krb5_locator.c index d08cdf72a59..d65b50eea32 100644 --- a/nsswitch/krb5_plugin/winbind_krb5_locator.c +++ b/nsswitch/krb5_plugin/winbind_krb5_locator.c @@ -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, |