aboutsummaryrefslogtreecommitdiffstats
path: root/epan/dissectors/packet-dcerpc-samr.c
AgeCommit message (Collapse)AuthorFilesLines
2007-10-02remove a test for null that we dont need since the variable can not be Ronnie Sahlberg1-3/+1
null at this point svn path=/trunk/; revision=23045
2007-08-28rename dcerpc_smb_store_pol_name to dcerpc_store_polhnd_nameRonnie Sahlberg1-16/+46
rename dcerpc_smb_fetch_pol to dcerpc_fetch_polhnd_data and also make it take an additional parameter to return the "type" of the policy handle, if such a type was stored. extend the pol_value structure used to track policy handles to also store a type to represent what created the policy handle types could be USER/ALIAS/CONNECT/... etc handles returned from the SAMR interface add a new helper function dcerpc_store_polhnd_type() track policy handles between request/responses for dcerpc update the samr.cnf file to make the samr dissectors for SetSecurity/QuerySecurity dissect the specific bits for the security descriptor correctly based on whether the policy handle refers to a CONNECT/DOMAIN/USER/ALIAS or GROUP svn path=/trunk/; revision=22703
2007-07-09dissect lsa_Strings correctly in the samr dissectorRonnie Sahlberg1-10/+80
svn path=/trunk/; revision=22274
2007-07-09the sidtype is a 32bit enum not a standard enumRonnie Sahlberg1-5/+5
svn path=/trunk/; revision=22273
2007-07-09make all rids use a single hf filter fieldRonnie Sahlberg1-807/+864
dissect the Type of rid using lsa_Types svn path=/trunk/; revision=22272
2007-07-09rename all policy handles in samr to have a name that describes the type Ronnie Sahlberg1-359/+176
of handle. svn path=/trunk/; revision=22270
2007-07-07add the new pidl created SAMR dissectorRonnie Sahlberg1-4080/+12683
svn path=/trunk/; revision=22265
2007-04-23Add some GCC warnings to the standard set, and add some others to theGuy Harris1-12/+12
--enable-extra-gcc-checks set. If we turn on -pedantic, try turning on -Wno-long-long as well, so that it's not *so* pedantic that it rejects the 64-bit integral data types that we explicitly require. Constify a bunch of stuff, and make some other changes, to get rid of warnings. Clean up some indentation. svn path=/trunk/; revision=21526
2007-03-23Fix about 150 warnings new to gcc 4.0 in the error on warning directories.Stephen Fisher1-1/+0
Comment out -Werror in plugins/asn1/ until warnings can be fixed. svn path=/trunk/; revision=21158
2007-01-09Move cryptography code to epan/crypt.Gerald Combs1-40/+40
svn path=/trunk/; revision=20359
2006-09-16make SAMR not rely on dcv->private_data being persistent any more and use ↵Ronnie Sahlberg1-96/+246
dcv->se_data once the private_data -> se_data conversion is complete we can plug quite a large number of memory leaks related to dcerpc svn path=/trunk/; revision=19240
2006-05-21change a whole bunch of ethereal into wiresharkRonnie Sahlberg1-9/+9
svn path=/trunk/; revision=18196
2006-02-16Use the new "proto_tree_add_*_format_value" routines.Guy Harris1-2/+1
svn path=/trunk/; revision=17316
2005-10-04Get rid of an unused variable.Guy Harris1-1/+0
svn path=/trunk/; revision=16122
2005-10-04Don't ensure all the bytes of a security descriptor exist before callingGuy Harris1-3/+2
"dissect_nt_sec_desc()". Add a Boolean argument to "dissect_nt_sec_desc()" to indicate whether a length was passed to it (so we don't treat -1 as a special value; we want to stop treating -1 as a special length value, and, in fact, want to stop treating *any* negative length values specially, so that we don't have to worry about passing arbitrary 32-bit values from packets as lengths), and have "dissect_nt_sec_desc()" initially create the protocol tree item for the security descriptor with a length of "go to the end of the tvbuff", and set the length once we're done dissecting it - and, if the length was specified, check at *that* point, *after* we've dissected the security descriptor, whether we have the entire security descriptor in the tvbuff. That means that we don't have to worry about overflows after "dissect_nt_sec_desc()" returns - if the length was so large that we would have gotten an overflow, we'd have thrown an exception in the "tvb_ensure_bytes_exist()" call at the end of "dissect_nt_sec_desc()". Do sanity checks on offsets within the security descriptor, so we know the item referred to by the offset is after the fixed-length portion of the descriptor. svn path=/trunk/; revision=16113
2005-08-19some ememificationLuis Ontanon1-28/+18
svn path=/trunk/; revision=15431
2005-08-14Some 'no previous declararion' warning fixesJörg Mayer1-2/+2
svn path=/trunk/; revision=15355
2005-08-08various code cleanup:Ulf Lamping1-8/+4
-use g_snprintf instead of sprintf and snprintf -use g_strdup_printf where appropriate -remove #include "snprintf.h" (as only g_snprintf should be used) -replace some more alloc/realloc/calloc/free with their glib pendants svn path=/trunk/; revision=15264
2005-07-26char -> const char warning fixesJörg Mayer1-1/+1
svn path=/trunk/; revision=15079
2005-07-24Constify to remove a bunch of warnings. Add some casts to squelchGuy Harris1-1/+1
(presumably-)harmless-but-otherwise-unremovable const-to-nonconst warnings. In the TACACS dissector, clean up the variables used in option parsing to avoid some const-to-nonconst warnings. Clean up some white space. svn path=/trunk/; revision=15043
2005-06-26packet-dcerpc-samr.c(2795) : warning C4090: '=' : different 'const' qualifiersUlf Lamping1-3/+3
packet-dcerpc-samr.c(2900) : warning C4090: '=' : different 'const' qualifiers packet-dcerpc-samr.c(2933) : warning C4090: '=' : different 'const' qualifiers svn path=/trunk/; revision=14776
2005-06-15In sam_dissect_SAM_SECURITY_DESCRIPTOR_data(), throw an exception if weGerald Combs1-0/+3
fetch a too-long length. Fixes bug 236. svn path=/trunk/; revision=14637
2005-06-14From Steve Grubb:Gerald Combs1-4/+4
Fix bounds checking in lemon.c. Fix up an if/else block in packet-dcerpc-samr.c. Fix hex printing in packet-gtp.c. Fix other problems discovered by Steve: Fix a bounds check in packet-isis-lsp.c. Also, fix netmask printing on non-little-endian machines. Add a comment about adding a netmask routine to to_str.c. Add bounds checks to packet-ncp2222.inc. All of these apply to bug 217. svn path=/trunk/; revision=14627
2005-03-25updates to SAMRRonnie Sahlberg1-2/+46
from Michael richardson svn path=/trunk/; revision=13903
2005-01-28older MS DCE/RPC interfaces often use a construct that is to be treated as a ↵Ronnie Sahlberg1-3/+3
64 bit integer but in reality is a struct containing 2 32bit integers. this construct is aligned on 4 byte boundaries in ndr and NOT 8 bytes as a real uint64 (== hyper) would be. rename the existing dissect_ndr_uint64 ro dissect_ndr_duint32 (double uint32) to make it reflect better the alignment of the type. svn path=/trunk/; revision=13184
2004-09-27Move the DES, MD4, MD5, and RC4 source files and headers into epan, andGuy Harris1-2/+2
make the source files all include the corresponding header files (so that the declarations in the headers have to match the definitions in the source files in order for compilation to succeed). svn path=/trunk/; revision=12116
2004-09-27Move prefs.c and prefs.h into the epan subdirectory.Guy Harris1-1/+1
svn path=/trunk/; revision=12115
2004-08-31break out the nt decryption and password handling into a separate functionRonnie Sahlberg1-50/+63
so we can call it from elsewhere svn path=/trunk/; revision=11857
2004-08-03Move a bunch of stuff that's more Windows-related than SMB-related toGuy Harris1-1/+1
"packet-windows-common.[ch]". svn path=/trunk/; revision=11592
2004-07-18Move dissectors to epan/dissectors directory.Gilbert Ramirez1-0/+5636
Also move ncp222.py, x11-fields, process-x11-fields.pl, make-reg-dotc, and make-reg-dotc.py. Adjust #include lines in files that include packet-*.h files. svn path=/trunk/; revision=11410