summaryrefslogtreecommitdiff
path: root/source3/smbd/globals.h
diff options
context:
space:
mode:
authorStefan Metzmacher <metze@samba.org>2009-05-22 22:58:39 +0200
committerStefan Metzmacher <metze@samba.org>2009-05-26 09:53:06 +0200
commit31c6679bf12bbcd6626bfd5066bb2e751314e9c2 (patch)
treeef6447a14a449bbdfc0cccdd4df51886b1655a39 /source3/smbd/globals.h
parentbd8a38b60e933bcffd90ea8bed75898a421cbdad (diff)
downloadsamba-31c6679bf12bbcd6626bfd5066bb2e751314e9c2.tar.gz
samba-31c6679bf12bbcd6626bfd5066bb2e751314e9c2.tar.bz2
samba-31c6679bf12bbcd6626bfd5066bb2e751314e9c2.zip
s3:smbd: add support for SMB2 signing
metze
Diffstat (limited to 'source3/smbd/globals.h')
-rw-r--r--source3/smbd/globals.h11
1 files changed, 11 insertions, 0 deletions
diff --git a/source3/smbd/globals.h b/source3/smbd/globals.h
index 9d5eead939..c6ab31dc36 100644
--- a/source3/smbd/globals.h
+++ b/source3/smbd/globals.h
@@ -206,6 +206,13 @@ struct smbd_smb2_tcon;
DATA_BLOB negprot_spnego(void);
+NTSTATUS smb2_signing_sign_pdu(DATA_BLOB session_key,
+ struct iovec *vector,
+ int count);
+NTSTATUS smb2_signing_check_pdu(DATA_BLOB session_key,
+ const struct iovec *vector,
+ int count);
+
bool smbd_is_smb2_header(const uint8_t *inbuf, size_t size);
void reply_smb2002(struct smb_request *req, uint16_t choice);
@@ -244,6 +251,7 @@ struct smbd_smb2_request {
struct smbd_smb2_tcon *tcon;
int current_idx;
+ bool do_signing;
struct {
/* the NBT header is not allocated */
@@ -299,6 +307,9 @@ struct smbd_smb2_session {
NTSTATUS status;
uint64_t vuid;
AUTH_NTLMSSP_STATE *auth_ntlmssp_state;
+ struct auth_serversupplied_info *server_info;
+ DATA_BLOB session_key;
+ bool do_signing;
struct {
/* an id tree used to allocate tids */