#include "squid.h"
#include "rfcnb/rfcnb.h"
#include "smblib/smblib-priv.h"
#include "smblib/smblib.h"
Go to the source code of this file.
Functions | |
int | SMB_Get_Protocol (SMB_Handle_Type Con_Handle) |
int | SMB_Figure_Protocol (const char *dialects[], int prot_index) |
int | SMB_TreeDisconnect (SMB_Tree_Handle Tree_Handle, BOOL discard) |
int | SMB_Negotiate (SMB_Handle_Type Con_Handle, const char *Prots[]) |
void | SMB_Get_My_Name (char *name, int len) |
SMB_Tree_Handle | SMB_TreeConnect (SMB_Handle_Type Con_Handle, SMB_Tree_Handle Tree_Handle, const char *path, const char *password, const char *device) |
int | SMB_Get_Last_Error () |
int | SMB_Get_Last_SMB_Err () |
void | SMB_Get_Error_Msg (int msg, char *msgbuf, int len) |
Variables | |
int | SMB_Types [] |
static const char * | SMBlib_Error_Messages [] |
Function Documentation
◆ SMB_Figure_Protocol()
Definition at line 202 of file smblib-util.c.
References NULL, SMB_P_Unknown, SMB_Prots, and SMB_Types.
Referenced by SMB_Negotiate().
◆ SMB_Get_Error_Msg()
Definition at line 798 of file smblib-util.c.
References RFCNB_Pkt::len, RFCNB_Get_Error(), SMBlib_Error_Messages, and SMBlibE_NoSuchMsg.
Referenced by init_challenge(), and main().
◆ SMB_Get_Last_Error()
int SMB_Get_Last_Error | ( | void | ) |
Definition at line 755 of file smblib-util.c.
References SMBlib_errno.
Referenced by init_challenge(), main(), and manage_request().
◆ SMB_Get_Last_SMB_Err()
int SMB_Get_Last_SMB_Err | ( | void | ) |
Definition at line 766 of file smblib-util.c.
References SMBlib_SMB_Error.
Referenced by main(), and manage_request().
◆ SMB_Get_My_Name()
void SMB_Get_My_Name | ( | char * | name, |
int | len | ||
) |
Definition at line 452 of file smblib-util.c.
References RFCNB_Pkt::len, and NULL.
Referenced by SMB_Connect(), and SMB_Connect_Server().
◆ SMB_Get_Protocol()
int SMB_Get_Protocol | ( | SMB_Handle_Type | Con_Handle | ) |
Definition at line 187 of file smblib-util.c.
References NULL.
◆ SMB_Negotiate()
int SMB_Negotiate | ( | SMB_Handle_Type | Con_Handle, |
const char * | Prots[] | ||
) |
Definition at line 239 of file smblib-util.c.
References CVAL, SMB_Connect_Def::Encrypt_Key, IVAL, NULL, pid, RFCNB_Alloc_Pkt(), RFCNB_Free_Pkt(), RFCNB_Recv(), RFCNB_Send(), SIVAL, SMB_DEF_IDF, SMB_Figure_Protocol(), SMB_Hdr, 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_negp_bcc_offset, SMB_negp_buf_offset, SMB_negp_len, SMB_negrCP_idx_offset, SMB_negrLM_buf_offset, SMB_negrLM_ekl_offset, SMB_negrLM_mbs_offset, SMB_negrLM_mmc_offset, SMB_negrLM_mnv_offset, SMB_negrLM_rm_offset, SMB_negrLM_sec_offset, SMB_negrLM_sk_offset, SMB_negrLM_stz_offset, SMB_negrNTLM_buf_offset, SMB_negrNTLM_ekl_offset, SMB_negrNTLM_mbs_offset, SMB_negrNTLM_mmc_offset, SMB_negrNTLM_mnv_offset, SMB_negrNTLM_mrs_offset, SMB_negrNTLM_sec_offset, SMB_negrNTLM_sk_offset, SMB_negrNTLM_stz_offset, SMB_P_Unknown, SMB_sec_encrypt_mask, SMB_sec_user_mask, SMBC_SUCCESS, SMBdialectID, SMBlib_errno, SMBlib_SMB_Error, SMBlibE_BAD, SMBlibE_NegNoProt, SMBlibE_NoSpace, SMBlibE_ProtUnknown, SMBlibE_RecvFailed, SMBlibE_Remote, SMBlibE_SendFailed, SMBnegprot, SSVAL, SVAL, and xstrncpy().
Referenced by init_challenge(), main(), SMB_Connect(), and Valid_User().
◆ SMB_TreeConnect()
SMB_Tree_Handle SMB_TreeConnect | ( | SMB_Handle_Type | Con_Handle, |
SMB_Tree_Handle | Tree_Handle, | ||
const char * | path, | ||
const char * | password, | ||
const char * | device | ||
) |
Definition at line 477 of file smblib-util.c.
References CVAL, IVAL, RFCNB_Pkt::next, NULL, pid, RFCNB_Alloc_Pkt(), RFCNB_Free_Pkt(), RFCNB_Recv(), RFCNB_Send(), SIVAL, SMB_DEF_IDF, SMB_Hdr, 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_tcon_bcc_offset, SMB_tcon_buf_offset, SMB_tcon_len, SMB_tconr_mbs_offset, SMB_tconr_tid_offset, SMBasciiID, SMBC_SUCCESS, SMBlib_errno, SMBlib_SMB_Error, SMBlibE_BadParam, SMBlibE_NoSpace, SMBlibE_RecvFailed, SMBlibE_Remote, SMBlibE_SendFailed, SMBtcon, SSVAL, SVAL, and xstrncpy().
Referenced by SMB_Connect().
◆ SMB_TreeDisconnect()
int SMB_TreeDisconnect | ( | SMB_Tree_Handle | Tree_Handle, |
BOOL | discard | ||
) |
Definition at line 648 of file smblib-util.c.
References CVAL, IVAL, RFCNB_Pkt::next, NULL, pid, RFCNB_Alloc_Pkt(), RFCNB_Free_Pkt(), RFCNB_Recv(), RFCNB_Send(), SIVAL, SMB_DEF_IDF, SMB_Hdr, 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_tcon_bcc_offset, SMB_tdis_len, SMBC_SUCCESS, SMBlib_errno, SMBlib_SMB_Error, SMBlibE_BAD, SMBlibE_NoSpace, SMBlibE_RecvFailed, SMBlibE_Remote, SMBlibE_SendFailed, SMBtdis, SSVAL, SVAL, and TRUE.
Variable Documentation
◆ SMB_Types
int SMB_Types[] |
Definition at line 42 of file smblib-util.c.
Referenced by SMB_Figure_Protocol(), and SMB_Logon_And_TCon().
◆ SMBlib_Error_Messages
|
static |
Definition at line 778 of file smblib-util.c.
Referenced by SMB_Get_Error_Msg().