mirror of
https://github.com/samba-team/samba.git
synced 2025-01-22 22:04:08 +03:00
lib/replace: make sure krb5_cc_default[_name]() is no longer used directly
Signed-off-by: Stefan Metzmacher <metze@samba.org> Reviewed-by: Andreas Schneider <asn@samba.org> Autobuild-User(master): Stefan Metzmacher <metze@samba.org> Autobuild-Date(master): Tue May 14 11:22:28 UTC 2024 on atb-devel-224
This commit is contained in:
parent
afcd53b8d0
commit
1ca6fb563b
@ -4125,7 +4125,9 @@ krb5_error_code smb_krb5_init_context_common(krb5_context *_krb5_context)
|
||||
*/
|
||||
krb5_error_code smb_force_krb5_cc_default(krb5_context ctx, krb5_ccache *id)
|
||||
{
|
||||
#undef krb5_cc_default
|
||||
return krb5_cc_default(ctx, id);
|
||||
#define krb5_cc_default __ERROR__XX__NEVER_USE_krb5_cc_default__;
|
||||
}
|
||||
|
||||
/*
|
||||
@ -4134,7 +4136,9 @@ krb5_error_code smb_force_krb5_cc_default(krb5_context ctx, krb5_ccache *id)
|
||||
*/
|
||||
const char *smb_force_krb5_cc_default_name(krb5_context ctx)
|
||||
{
|
||||
#undef krb5_cc_default_name
|
||||
return krb5_cc_default_name(ctx);
|
||||
#define krb5_cc_default_name __ERROR__XX__NEVER_USE_krb5_cc_default_name__;
|
||||
}
|
||||
|
||||
#else /* HAVE_KRB5 */
|
||||
|
@ -37,5 +37,8 @@
|
||||
#include <com_err.h>
|
||||
#endif
|
||||
|
||||
#define krb5_cc_default __ERROR__XX__NEVER_USE_krb5_cc_default__;
|
||||
#define krb5_cc_default_name __ERROR__XX__NEVER_USE_krb5_cc_default_name__;
|
||||
|
||||
#endif
|
||||
#endif
|
||||
|
Loading…
x
Reference in New Issue
Block a user