diff options
Diffstat (limited to 'source/auth/auth_compat.c')
-rw-r--r-- | source/auth/auth_compat.c | 5 |
1 files changed, 2 insertions, 3 deletions
diff --git a/source/auth/auth_compat.c b/source/auth/auth_compat.c index 2ac70d73546..a70f1e98b72 100644 --- a/source/auth/auth_compat.c +++ b/source/auth/auth_compat.c @@ -20,9 +20,6 @@ #include "includes.h" -extern struct auth_context *negprot_global_auth_context; -extern BOOL global_encrypted_passwords_negotiated; - #undef DBGC_CLASS #define DBGC_CLASS DBGC_AUTH @@ -71,6 +68,7 @@ static NTSTATUS pass_check_smb(const char *smb_name, { NTSTATUS nt_status; + extern struct auth_context *negprot_global_auth_context; auth_serversupplied_info *server_info = NULL; if (encrypted) { auth_usersupplied_info *user_info = NULL; @@ -96,6 +94,7 @@ BOOL password_ok(char *smb_name, DATA_BLOB password_blob) { DATA_BLOB null_password = data_blob(NULL, 0); + extern BOOL global_encrypted_passwords_negotiated; BOOL encrypted = (global_encrypted_passwords_negotiated && password_blob.length == 24); if (encrypted) { |