summaryrefslogtreecommitdiff
path: root/source4/include/smb.h
diff options
context:
space:
mode:
authorAndrew Tridgell <tridge@samba.org>2004-05-26 05:40:33 +0000
committerGerald (Jerry) Carter <jerry@samba.org>2007-10-10 12:56:18 -0500
commit8b3f08cefcd41e6f8005de84a2cc865c1011194d (patch)
tree77cd0b79d7721efe12fcf1a481df52d02727ecd0 /source4/include/smb.h
parent406f345d889d7e804c5d861223fa66abb213bb23 (diff)
downloadsamba-8b3f08cefcd41e6f8005de84a2cc865c1011194d.tar.gz
samba-8b3f08cefcd41e6f8005de84a2cc865c1011194d.tar.bz2
samba-8b3f08cefcd41e6f8005de84a2cc865c1011194d.zip
r898: - remove some unused macros
- remove unused lib/smbpasswd.c - don't set the pkt size twice when doing SMB signing (This used to be commit 69a2942f7987647a32d43c71f41ac1a82a82ccda)
Diffstat (limited to 'source4/include/smb.h')
-rw-r--r--source4/include/smb.h63
1 files changed, 0 insertions, 63 deletions
diff --git a/source4/include/smb.h b/source4/include/smb.h
index 45a7bd0b2f..c6866c52b4 100644
--- a/source4/include/smb.h
+++ b/source4/include/smb.h
@@ -44,12 +44,6 @@ typedef int BOOL;
#define _BOOL /* So we don't typedef BOOL again in vfs.h */
#endif
-#define SIZEOFWORD 2
-
-#ifndef DEF_CREATE_MASK
-#define DEF_CREATE_MASK (0755)
-#endif
-
/* string manipulation flags - see clistr.c and srvstr.c */
#define STR_TERMINATE 1
#define STR_UPPER 2
@@ -238,8 +232,6 @@ typedef smb_ucs2_t wfstring[FSTRING_LEN];
/* turn a 7 bit character into a ucs2 character */
#define UCS2_CHAR(c) ((c) << UCS2_SHIFT)
-#define MAX_HOURS_LEN 32
-
/* for compatibility */
#define SID_NAME_USE samr_SidType
@@ -261,12 +253,6 @@ typedef struct nt_user_token {
struct dom_sid **user_sids;
} NT_USER_TOKEN;
-/* 32 bit time (sec) since 01jan1970 - cifs6.txt, section 3.5, page 30 */
-typedef struct time_info
-{
- uint32_t time;
-} UTIME;
-
/* used to hold an arbitrary blob of data */
typedef struct data_blob {
uint8_t *data;
@@ -686,18 +672,6 @@ struct bitmap {
otherwise NT will not honour the announce packets */
#define MAX_SERVER_STRING_LENGTH 48
-
-#define SMB_SUCCESS 0 /* The request was successful. */
-
-#ifdef WITH_DFS
-void dfs_unlogin(void);
-extern int dcelogin_atmost_once;
-#endif
-
-#ifdef NOSTRDUP
-char *strdup(char *s);
-#endif
-
#ifndef SIGNAL_CAST
#define SIGNAL_CAST (RETSIGTYPE (*)(int))
#endif
@@ -892,28 +866,6 @@ struct node_status {
unsigned char flags;
};
-struct pwd_info
-{
- BOOL null_pwd;
- BOOL cleartext;
- BOOL crypted;
-
- fstring password;
-
- uchar smb_lm_pwd[16];
- uchar smb_nt_pwd[16];
-
- uchar smb_lm_owf[24];
- uchar smb_nt_owf[128];
- size_t nt_owf_len;
-
- uchar lm_cli_chal[8];
- uchar nt_cli_chal[128];
- size_t nt_cli_chal_len;
-
- uchar sess_key[16];
-};
-
#include "rpc_secdes.h"
typedef struct user_struct
@@ -931,24 +883,9 @@ typedef struct user_struct
} user_struct;
-struct unix_error_map {
- int unix_error;
- int dos_class;
- int dos_code;
- NTSTATUS nt_error;
-};
-
#include "client.h"
/*
- * Size of new password account encoding string. This is enough space to
- * hold 11 ACB characters, plus the surrounding [] and a terminating null.
- * Do not change unless you are adding new ACB bits!
- */
-
-#define NEW_PW_FORMAT_SPACE_PADDED_LEN 14
-
-/*
Do you want session setups at user level security with a invalid
password to be rejected or allowed in as guest? WinNT rejects them
but it can be a pain as it means "net view" needs to use a password