aboutsummaryrefslogtreecommitdiffstats
path: root/epan/dissectors/packet-dcerpc-samr.c
AgeCommit message (Collapse)AuthorFilesLines
2013-11-24Move dceprc_procedure_name from packet_info to dcerpc_info. Doesn't appear ↵Michael Mann1-136/+136
to be "used" by dissectors, just stored (for help in debugging?). svn path=/trunk/; revision=53552
2013-11-06Remove pinfo->private_data from DCERPC dissectors and instead have ↵Michael Mann1-3480/+3462
dcerpc_info* infomation be passed in as a function parameter. Bug 9387 (https://bugs.wireshark.org/bugzilla/show_bug.cgi?id=9387) All "generated" source was manually modified (with the power of search/replace), but I believe the "source input" files have been adjusted (checked into revs 53098 and 53099) to reflect the necessary changes (with possible whitespace formatting differences). The Microsoft compiler doesn't flag "unused function parameters", so I apologize in advance if I may have missed a few. The "dcerpc_info* di" parameter is used in almost every function. svn path=/trunk/; revision=53100
2013-10-21Sync with latest SAMBA PIDL source per ↵Michael Mann1-75/+74
http://www.wireshark.org/lists/wireshark-dev/201310/msg00217.html Didn't integrate 0010-frsrpc-Regenerate-frsrpc-due-to-changes-in-the-pidl-.patch 0016-Regenerate-the-dnserver.patch due to compilation errors on Windows. svn path=/trunk/; revision=52744
2013-10-01Remove check_col from generated DCE/RPC dissectors. Bug 8804 ↵Michael Mann1-68/+68
(https://bugs.wireshark.org/bugzilla/show_bug.cgi?id=8804). I still couldn't figure out how to generate the source, so I made the modifications to the generated dissectors "manually" (search/replace tool in VS) that would match the "PIDL source" included here. I will be sending the "PIDL source" (non dissector files) to the samba team. svn path=/trunk/; revision=52313
2013-03-02From Ed Beroset via https://bugs.wireshark.org/bugzilla/show_bug.cgi?id=8416 :Pascal Quantin1-63/+63
Remove C++ incompatibilities from most of the dcerpc code svn path=/trunk/; revision=48023
2012-09-20We always HAVE_CONFIG_H so don't bother checking whether we have it or not.Jeff Morriss1-2/+0
svn path=/trunk/; revision=45017
2010-12-30The rids argument to samr_GetGroupsForUser() is *not* a single RID, it'sGuy Harris1-2/+5
an array of samr_RidWithAttributeArray structures. Don't equate it to hf_samr_rid; that causes hf_samr_rid to be added as an item with a length of -1, but, as hf_samr_rid is an FT_UINT32 field, that causes a dissector bug error. The version of Yapp I was using, at least, didn't like C++-style comments in the IDL file; replace them with C-style comments. svn path=/trunk/; revision=35304
2010-10-30Add an SVN Id to these PIDL-generated dissectors. A patch to PIDL will be ↵Jeff Morriss1-0/+2
sent upstream to the Samba developers. svn path=/trunk/; revision=34713
2009-12-19For fields of type FT_ABSOLUTE_TIME, have the "display" value be one ofGuy Harris1-23/+23
ABSOLUTE_TIME_LOCAL or ABSOLUTE_TIME_UTC, indicating whether to display the date/time in local time or UTC. (int)ABSOLUTE_TIME_LOCAL == (int)BASE_NONE, so there's no source or binary compatiblity issue, although we might want to eliminate BASE_NONE at some point and have the BASE_ values used with integral types start at 0, so that you can't specify BASE_NONE for an integral field. svn path=/trunk/; revision=31319
2009-10-09explicitely cast a guin64 to int to avoid compile warningsRonnie Sahlberg1-2/+2
svn path=/trunk/; revision=30412
2009-10-07Reverting previous patch as requested by Ronnie.Anders Broman1-3/+2
svn path=/trunk/; revision=30390
2009-10-07Make the windows build compile again.Anders Broman1-2/+3
(Probably not the right fix). svn path=/trunk/; revision=30388
2009-10-07new samr compiled as a test by the samba4 pidl compiler from mainlineRonnie Sahlberg1-7/+2
svn path=/trunk/; revision=30383
2009-10-06more updates to samr to harmonize it with sambaRonnie Sahlberg1-230/+177
svn path=/trunk/; revision=30354
2009-10-04Atemt to fix compilation of samr for Windows.Anders Broman1-2/+7
svn path=/trunk/; revision=30294
2009-10-04more merges from samba samr idl fileRonnie Sahlberg1-486/+504
svn path=/trunk/; revision=30292
2009-10-04more merges from the samba samr idl fileRonnie Sahlberg1-11/+92
svn path=/trunk/; revision=30290
2009-10-04more samr updates for ndr64Ronnie Sahlberg1-129/+181
svn path=/trunk/; revision=30273
2009-10-04merge some changes to samr from the samba idlRonnie Sahlberg1-337/+812
svn path=/trunk/; revision=30272
2009-10-03rename dissect_ndr_4or8 to dissect_ndr_uint3264 to match hte name of Ronnie Sahlberg1-4/+4
the new datatype uint3264. create a fake guint3264 type as well svn path=/trunk/; revision=30264
2009-10-03add a helper that supports decoding either a 16 or 32 bit integer based Ronnie Sahlberg1-2/+2
on whether nrd or ndr64 is used. svn path=/trunk/; revision=30263
2009-10-03update the handmarshalled code in samr.cnf to handle ndr64 encodingRonnie Sahlberg1-5/+5
svn path=/trunk/; revision=30261
2009-10-03a new samr dissector, created using samba PIDL with ndr64 supportRonnie Sahlberg1-45/+45
svn path=/trunk/; revision=30259
2009-10-03update the alignment for UserInfo so it handles either NDR or NDR64.Ronnie Sahlberg1-1/+1
This should be done by PIDL once it gets updated. svn path=/trunk/; revision=30255
2009-07-28update samr.idl and remove a keyword we no longer support in pidlRonnie Sahlberg1-555/+555
regenerate samr and frstrans with the new version of pidl svn path=/trunk/; revision=29219
2009-07-28regenerate SAMR using the new version of pidlRonnie Sahlberg1-555/+555
svn path=/trunk/; revision=29215
2009-06-18From Kovarththanan Rajaratnam via bug 3548:Stig Bjørlykke1-555/+555
(1) Trailing/leading spaces are removed from 'name's/'blurb's (2) Duplicate 'blurb's are replaced with NULL (3) Empty ("") 'blurb's are replaced with NULL (4) BASE_NONE, NULL, 0x0 are used for 'display', 'strings' and 'bitmask' fields for FT_NONE, FT_BYTES, FT_IPv4, FT_IPv6, FT_ABSOLUTE_TIME, FT_RELATIVE_TIME, FT_PROTOCOL, FT_STRING and FT_STRINGZ field types (5) Only allow non-zero value for 'display' if 'bitmask' is non-zero svn path=/trunk/; revision=28770
2008-10-03samr enhancementsRonnie Sahlberg1-32/+48
svn path=/trunk/; revision=26342
2008-10-03SAMR updatesRonnie Sahlberg1-15/+18
svn path=/trunk/; revision=26340
2008-10-02samr updatesRonnie Sahlberg1-260/+369
svn path=/trunk/; revision=26335
2008-10-02enhancements to SAMRRonnie Sahlberg1-58/+136
svn path=/trunk/; revision=26332
2008-10-02update to SAMRRonnie Sahlberg1-1027/+2382
svn path=/trunk/; revision=26330
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