/*
- * Copyright (C) 1996-2014 The Squid Software Foundation and contributors
+ * Copyright (C) 1996-2021 The Squid Software Foundation and contributors
*
* Squid software is distributed under GPLv2+ license and includes
* contributions from numerous individuals and organizations.
/* or anything else ... */
SMB_Handle_Type SMB_Connect_Server(SMB_Handle_Type Con_Handle,
- char *server, const char *NTdomain)
+ const char *server, const char *NTdomain)
{
SMB_Handle_Type con;
/* Now connect to the remote end, but first upper case the name of the
service we are going to call, sine some servers want it in uppercase */
- for (i=0; i < strlen(server); i++)
- called[i] = toupper(server[i]);
+ for (i=0; i < strlen(con -> desthost); i++)
+ called[i] = xtoupper(con -> desthost[i]);
- called[strlen(server)] = 0; /* Make it a string */
+ called[strlen(con -> desthost)] = 0; /* Make it a string */
for (i=0; i < strlen(con -> myname); i++)
- calling[i] = toupper(con -> myname[i]);
+ calling[i] = xtoupper(con -> myname[i]);
calling[strlen(con -> myname)] = 0; /* Make it a string */
/* Now connect to the remote end, but first upper case the name of the
service we are going to call, sine some servers want it in uppercase */
- for (i=0; i < strlen(host); i++)
- called[i] = toupper(host[i]);
+ for (i=0; i < strlen(con -> desthost); i++)
+ called[i] = xtoupper(con -> desthost[i]);
- called[strlen(host)] = 0; /* Make it a string */
+ called[strlen(con -> desthost)] = 0; /* Make it a string */
for (i=0; i < strlen(con -> myname); i++)
- calling[i] = toupper(con -> myname[i]);
+ calling[i] = xtoupper(con -> myname[i]);
calling[strlen(con -> myname)] = 0; /* Make it a string */
return(0);
}
+