From 4a66d0e232271968ba96da50274428916a393975 Mon Sep 17 00:00:00 2001 From: Jeremy Allison Date: Tue, 27 Mar 2007 21:13:31 +0000 Subject: r21991: I hate Steve French :-). Add support for encryption contexts.... Jeremy. (This used to be commit ae8f3649f773b8a8dcb55921536d038d3475322e) --- source3/lib/util.c | 13 +++++++++++++ 1 file changed, 13 insertions(+) (limited to 'source3/lib/util.c') diff --git a/source3/lib/util.c b/source3/lib/util.c index 45d3916ebe..e9c2d37227 100644 --- a/source3/lib/util.c +++ b/source3/lib/util.c @@ -516,6 +516,19 @@ void show_msg(char *buf) dump_data(10, smb_buf(buf), bcc); } +/******************************************************************* + Set the length and marker of an encrypted smb packet. +********************************************************************/ + +void smb_set_enclen(char *buf,int len,uint16 enc_ctx_num) +{ + _smb_setlen(buf,len); + + SCVAL(buf,4,0xFF); + SCVAL(buf,5,'S'); + SSVAL(buf,6,enc_ctx_num); +} + /******************************************************************* Set the length and marker of an smb packet. ********************************************************************/ -- cgit