#include "squid.h"
#include "rfcnb/rfcnb.h"
#include "smblib/smblib-priv.h"
#include "smblib/smblib.h"
#include <signal.h>
Go to the source code of this file.
Macros | |
#define | SMBLIB_ERRNO |
Functions | |
int | SMB_Init () |
SMB_Handle_Type | SMB_Create_Con_Handle () |
SMB_Handle_Type | SMB_Connect_Server (SMB_Handle_Type Con_Handle, const char *server, const char *NTdomain) |
SMB_Handle_Type | SMB_Connect (SMB_Handle_Type Con_Handle, SMB_Tree_Handle *tree, char *service, char *username, char *password) |
int | SMB_Logon_Server (SMB_Handle_Type Con_Handle, char *UserName, char *PassWord, const char *NtDomain, int PreCrypted) |
int | SMB_Discon (SMB_Handle_Type Con_Handle, BOOL KeepHandle) |
Variables | |
int | SMBlib_errno |
int | SMBlib_SMB_Error |
SMB_State_Types | SMBlib_State |
const char * | SMB_Prots [] |
const char * | SMB_Prots_Restrict [] |
Macro Definition Documentation
◆ SMBLIB_ERRNO
Function Documentation
◆ SMB_Connect()
SMB_Handle_Type SMB_Connect | ( | SMB_Handle_Type | Con_Handle, |
SMB_Tree_Handle * | tree, | ||
char * | service, | ||
char * | username, | ||
char * | password | ||
) |
Definition at line 197 of file smblib.c.
References SMB_Connect_Def::desthost, NULL, pid, port, RFCNB_Call(), SMB_Get_My_Name(), SMB_Negotiate(), SMB_Prots_Restrict, SMB_TreeConnect(), SMBLIB_DEFAULT_DOMAIN, SMBLIB_DEFAULT_LMTYPE, SMBLIB_DEFAULT_OSNAME, SMBlib_errno, SMBlibE_BAD, SMBlibE_CallFailed, SMBlibE_NegNoProt, SMBlibE_NoSpace, and xtoupper.
◆ SMB_Connect_Server()
SMB_Handle_Type SMB_Connect_Server | ( | SMB_Handle_Type | Con_Handle, |
const char * | server, | ||
const char * | NTdomain | ||
) |
Definition at line 101 of file smblib.c.
References SMB_Connect_Def::desthost, NULL, SMB_Connect_Def::PDomain, pid, port, RFCNB_Call(), server, SMB_Get_My_Name(), SMBLIB_DEFAULT_LMTYPE, SMBLIB_DEFAULT_OSNAME, SMBlib_errno, SMBlibE_CallFailed, SMBlibE_NoSpace, and xtoupper.
Referenced by init_challenge(), is_dc_ok(), main(), and Valid_User().
◆ SMB_Create_Con_Handle()
SMB_Handle_Type SMB_Create_Con_Handle | ( | void | ) |
Definition at line 89 of file smblib.c.
References NULL, SMBlib_errno, and SMBlibE_NotImpl.
◆ SMB_Discon()
int SMB_Discon | ( | SMB_Handle_Type | Con_Handle, |
BOOL | KeepHandle | ||
) |
Definition at line 577 of file smblib.c.
References RFCNB_Hangup().
Referenced by dc_disconnect(), init_challenge(), is_dc_ok(), and Valid_User().
◆ SMB_Init()
int SMB_Init | ( | void | ) |
Definition at line 67 of file smblib.c.
References SMB_State_Started, and SMBlib_State.
Referenced by main(), and Valid_User().
◆ SMB_Logon_Server()
int SMB_Logon_Server | ( | SMB_Handle_Type | Con_Handle, |
char * | UserName, | ||
char * | PassWord, | ||
const char * | NtDomain, | ||
int | PreCrypted | ||
) |
@@ mdz: check for guest login {
@@ mdz: }
Definition at line 332 of file smblib.c.
References CVAL, SMB_Connect_Def::Encrypt_Key, SMB_Connect_Def::encrypt_passwords, IVAL, NULL, SMB_Connect_Def::PDomain, pid, RFCNB_Alloc_Pkt(), RFCNB_Free_Pkt(), RFCNB_Recv(), RFCNB_Send(), SIVAL, SMB_DEF_IDF, SMB_Hdr, SMB_hdr_axc_offset, SMB_hdr_axo_offset, SMB_hdr_com_offset, SMB_hdr_err_offset, SMB_hdr_idf_offset, SMB_hdr_mid_offset, SMB_hdr_pid_offset, SMB_hdr_rcls_offset, SMB_hdr_tid_offset, SMB_hdr_uid_offset, SMB_hdr_wct_offset, SMB_P_LanMan1, SMB_P_NT1, SMB_ssetpLM_bcc_offset, SMB_ssetpLM_buf_offset, SMB_ssetpLM_len, SMB_ssetpLM_mbs_offset, SMB_ssetpLM_mmc_offset, SMB_ssetpLM_pwl_offset, SMB_ssetpLM_res_offset, SMB_ssetpLM_snk_offset, SMB_ssetpLM_vcn_offset, SMB_ssetpNTLM_bcc_offset, SMB_ssetpNTLM_buf_offset, SMB_ssetpNTLM_cap_offset, SMB_ssetpNTLM_cipl_offset, SMB_ssetpNTLM_cspl_offset, SMB_ssetpNTLM_len, SMB_ssetpNTLM_mbs_offset, SMB_ssetpNTLM_mmc_offset, SMB_ssetpNTLM_res_offset, SMB_ssetpNTLM_snk_offset, SMB_ssetpNTLM_vcn_offset, SMB_ssetpr_act_offset, SMBC_SUCCESS, SMBencrypt(), SMBlib_errno, SMBLIB_MAX_XMIT, SMBlib_SMB_Error, SMBlibE_BAD, SMBlibE_NoSpace, SMBlibE_ProtLow, SMBlibE_RecvFailed, SMBlibE_Remote, SMBlibE_SendFailed, SMBsesssetupX, SSVAL, SVAL, and uchar.
Referenced by ntlm_check_auth(), and Valid_User().
Variable Documentation
◆ SMB_Prots
const char* SMB_Prots[] |
◆ SMB_Prots_Restrict
const char* SMB_Prots_Restrict[] |
Definition at line 193 of file smblib.c.
Referenced by SMB_Connect().
◆ SMBlib_errno
int SMBlib_errno |
Definition at line 35 of file smblib.c.
Referenced by SMB_Check_Dir(), SMB_Close(), SMB_Connect(), SMB_Connect_Server(), SMB_Create(), SMB_Create_Con_Handle(), SMB_Create_Dir(), SMB_Delete(), SMB_Delete_Dir(), SMB_Get_Last_Error(), SMB_Logon_And_TCon(), SMB_Logon_Server(), SMB_Logon_TCon_Open(), SMB_Negotiate(), SMB_Open(), SMB_Read(), SMB_Search(), SMB_TreeConnect(), SMB_TreeDisconnect(), SMB_Write(), SMBapi_NetSetUserInfo(), and SMBapi_NetUserPasswordSet().
◆ SMBlib_SMB_Error
int SMBlib_SMB_Error |
Definition at line 36 of file smblib.c.
Referenced by SMB_Check_Dir(), SMB_Close(), SMB_Create(), SMB_Create_Dir(), SMB_Delete(), SMB_Delete_Dir(), SMB_Get_Last_SMB_Err(), SMB_Logon_And_TCon(), SMB_Logon_Server(), SMB_Logon_TCon_Open(), SMB_Negotiate(), SMB_Open(), SMB_Read(), SMB_Search(), SMB_TreeConnect(), SMB_TreeDisconnect(), SMB_Write(), SMBapi_NetSetUserInfo(), and SMBapi_NetUserPasswordSet().
◆ SMBlib_State
SMB_State_Types SMBlib_State |
Definition at line 48 of file smblib.c.
Referenced by SMB_Init().