summaryrefslogtreecommitdiff
path: root/source3/libsmb/smb_signing.c
diff options
context:
space:
mode:
authorStefan Metzmacher <metze@samba.org>2011-10-24 09:39:16 +0200
committerStefan Metzmacher <metze@samba.org>2011-10-25 00:24:08 +0200
commitaa2e5cea1c69c5417eec9734b70c0f63fb244d7e (patch)
tree10d6762b2840ebe9ce8322ff1446d8e48896cf7a /source3/libsmb/smb_signing.c
parent13a5f27db20f3bc17f7da516871b0011711dfd14 (diff)
downloadsamba-aa2e5cea1c69c5417eec9734b70c0f63fb244d7e.tar.gz
samba-aa2e5cea1c69c5417eec9734b70c0f63fb244d7e.tar.bz2
samba-aa2e5cea1c69c5417eec9734b70c0f63fb244d7e.zip
s3:libsmb/smb_signing: make use of HDR_* defines
metze
Diffstat (limited to 'source3/libsmb/smb_signing.c')
-rw-r--r--source3/libsmb/smb_signing.c8
1 files changed, 4 insertions, 4 deletions
diff --git a/source3/libsmb/smb_signing.c b/source3/libsmb/smb_signing.c
index 2250348707..1f9d36889a 100644
--- a/source3/libsmb/smb_signing.c
+++ b/source3/libsmb/smb_signing.c
@@ -234,11 +234,11 @@ void smb_signing_sign_pdu(struct smb_signing_state *si,
abort();
}
- com = SVAL(outbuf,smb_com);
- flags = SVAL(outbuf,smb_flg);
+ com = SVAL(outbuf,NBT_HDR_SIZE+HDR_COM);
+ flags = SVAL(outbuf,NBT_HDR_SIZE+HDR_FLG);
if (!(flags & FLAG_REPLY)) {
- uint16_t flags2 = SVAL(outbuf,smb_flg2);
+ uint16_t flags2 = SVAL(outbuf,NBT_HDR_SIZE+HDR_FLG2);
/*
* If this is a request, specify what is
* supported or required by the client
@@ -249,7 +249,7 @@ void smb_signing_sign_pdu(struct smb_signing_state *si,
if (si->negotiated && si->mandatory) {
flags2 |= FLAGS2_SMB_SECURITY_SIGNATURES_REQUIRED;
}
- SSVAL(outbuf, smb_flg2, flags2);
+ SSVAL(outbuf, NBT_HDR_SIZE+HDR_FLG2, flags2);
}
if (si->mac_key.length == 0) {