smblib.c File Reference
#include "squid.h"
#include "rfcnb/rfcnb.h"
#include "smblib/smblib-priv.h"
#include "smblib/smblib.h"
#include <signal.h>
Include dependency graph for smblib.c:

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

#define SMBLIB_ERRNO

Definition at line 37 of file smblib.c.

Function Documentation

◆ SMB_Connect()

◆ SMB_Connect_Server()

SMB_Handle_Type SMB_Connect_Server ( SMB_Handle_Type  Con_Handle,
const char *  server,
const char *  NTdomain 
)

◆ 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()

Variable Documentation

◆ SMB_Prots

const char* SMB_Prots[]
Initial value:
= {"PC NETWORK PROGRAM 1.0",
"MICROSOFT NETWORKS 1.03",
"MICROSOFT NETWORKS 3.0",
"DOS LANMAN1.0",
"LANMAN1.0",
"DOS LM1.2X002",
"LM1.2X002",
"DOS LANMAN2.1",
"LANMAN2.1",
"Samba",
"NT LM 0.12",
"NT LANMAN 1.0",
}
#define NULL
Definition: types.h:145

Definition at line 50 of file smblib.c.

◆ SMB_Prots_Restrict

const char* SMB_Prots_Restrict[]
Initial value:
= {"PC NETWORK PROGRAM 1.0",
}

Definition at line 193 of file smblib.c.

Referenced by SMB_Connect().

◆ SMBlib_errno

◆ SMBlib_SMB_Error

◆ SMBlib_State

SMB_State_Types SMBlib_State

Definition at line 48 of file smblib.c.

Referenced by SMB_Init().

 

Introduction

Documentation

Support

Miscellaneous

Web Site Translations

Mirrors