mirror of
https://github.com/nextcloud/desktop.git
synced 2024-10-24 21:35:47 +03:00
Use a static variable for krb5.
This commit is contained in:
parent
4c345d5a80
commit
b73684cc80
1 changed files with 6 additions and 1 deletions
|
@ -36,7 +36,6 @@
|
||||||
|
|
||||||
SMBCCTX *smb_context = NULL;
|
SMBCCTX *smb_context = NULL;
|
||||||
csync_module_auth_callback auth_cb = NULL;
|
csync_module_auth_callback auth_cb = NULL;
|
||||||
int try_krb5 = 1;
|
|
||||||
|
|
||||||
#ifdef DEPRECATED_SMBC_INTERFACE
|
#ifdef DEPRECATED_SMBC_INTERFACE
|
||||||
|
|
||||||
|
@ -49,6 +48,9 @@ static void get_auth_data_with_context_fn(SMBCCTX *c,
|
||||||
char *wg, int wglen,
|
char *wg, int wglen,
|
||||||
char *un, int unlen,
|
char *un, int unlen,
|
||||||
char *pw, int pwlen) {
|
char *pw, int pwlen) {
|
||||||
|
|
||||||
|
static int try_krb5 = 1;
|
||||||
|
|
||||||
(void) c;
|
(void) c;
|
||||||
(void) shr;
|
(void) shr;
|
||||||
(void) wg;
|
(void) wg;
|
||||||
|
@ -91,6 +93,9 @@ static void get_auth_data_fn(const char *pServer,
|
||||||
char *pWorkgroup, int maxLenWorkgroup,
|
char *pWorkgroup, int maxLenWorkgroup,
|
||||||
char *pUsername, int maxLenUsername,
|
char *pUsername, int maxLenUsername,
|
||||||
char *pPassword, int maxLenPassword) {
|
char *pPassword, int maxLenPassword) {
|
||||||
|
|
||||||
|
static int try_krb5 = 1;
|
||||||
|
|
||||||
(void) pShare;
|
(void) pShare;
|
||||||
(void) pWorkgroup;
|
(void) pWorkgroup;
|
||||||
(void) maxLenWorkgroup;
|
(void) maxLenWorkgroup;
|
||||||
|
|
Loading…
Reference in a new issue