aboutsummaryrefslogtreecommitdiffstats
path: root/asn1/snmp
AgeCommit message (Collapse)AuthorFilesLines
2013-10-26Convert some emem to wmem. It took some manual flow analysis, but they are onlyEvan Huus1-2/+2
used during actual packet dissection. svn path=/trunk/; revision=52870
2013-10-25Add a very small hack to make the UAT update callback error string freeable, andEvan Huus1-7/+7
convert all existing UAT update callbacks to use glib memory instead of ephemeral memory for that string. UAT code paths are entirely distinct from packet dissection, so using ephemeral memory was the wrong choice, because there was no guarantees about when it would be freed. The move away from emem still needs to be propogated deeper into the UAT code itself at some point. Net effect: remove another bunch of emem calls from dissectors, where replacing with wmem would have caused assertions. svn path=/trunk/; revision=52854
2013-09-22emem -> wmem conversion:Pascal Quantin1-11/+11
- ep_tvb_get_bits() -> wmem_packet_tvb_get_bits() - tvb_g_memdup()/ep_tvb_memdup() -> tvb_memdup() - tvb_fake_unicode()/tvb_get_ephemeral_faked_unicode() -> tvb_get_faked_unicode() - tvb_get_g_string()/tvb_get_ephemeral_string()/tvb_get_seasonal_string() -> tvb_get_string() - tvb_get_g_unicode_string()/tvb_get_ephemeral_unicode_string() -> tvb_get_unicode_string() - tvb_get_ephemeral_string_enc() -> tvb_get_string_enc() - update docs accordingly svn path=/trunk/; revision=52172
2013-09-17One of the wmem patches only updated the generated packet-snmp.cJörg Mayer1-8/+11
but not the source. Fix that. svn path=/trunk/; revision=52123
2013-09-09expert_add_info_format_text -> expert_add_info_formatMichael Mann1-1/+1
svn path=/trunk/; revision=51852
2013-09-09expert_add_info_format_text -> expert_add_info_formatMichael Mann1-2/+2
svn path=/trunk/; revision=51851
2013-08-19Do not use ephemeral memory when adding a new data sourcePascal Quantin1-2/+6
svn path=/trunk/; revision=51424
2013-08-01Move a bunch of the crypt modules and pint.h into wsutil.Jeff Morriss1-7/+5
This means wsutil now links against libcrypt. Protect a bunch of the crypt header files from multiple inclusion. svn path=/trunk/; revision=51100
2013-07-15Move report_err.{h,c} from epan into wsutil: there's nothing epan-specific ↵Jeff Morriss1-1/+0
there and moving it avoids having to recompile the file for use in editcap and capinfos (which don't link against libwireshark). svn path=/trunk/; revision=50598
2013-07-03expert_add_info_format_text + proto_tree_add_text = ↵Michael Mann1-8/+3
proto_tree_add_expert_format, where applicable. svn path=/trunk/; revision=50377
2013-06-20Back out some of the wmem conversions (r50063 and r50057).Evan Huus1-31/+31
These dissectors allocate ephemeral or seasonal memory in UAT callbacks, which really makes no sense because UAT callbacks can occur when there is no packet or file in scope, making this effectively a leak if the user is fiddling with their UAT and never opens a capture. Emem let you get away with this, wmem forces an assertion. Back out the changes so that the UATs are usable until the code can be properly fixed to not use out-of-scope allocators. svn path=/trunk/; revision=50073
2013-06-19Convert the rest of the ASN1 dissectors from emem to wmem.Evan Huus1-31/+31
svn path=/trunk/; revision=50063
2013-06-19Remove traling whitespace.Jörg Mayer2-20/+20
svn path=/trunk/; revision=50048
2013-06-12Pretify dissection of date and Time.Anders Broman1-2/+92
svn path=/trunk/; revision=49905
2013-06-12Fix a crash when oid_info->value_typem is NULLAnders Broman1-1/+1
svn path=/trunk/; revision=49894
2013-06-11Show DisplayString as a string.Anders Broman1-1/+5
svn path=/trunk/; revision=49887
2013-06-04Add subdissection of:Anders Broman1-0/+20
- SNMPv2-MIB sysDescr - SNMPv2-MIB::sysName svn path=/trunk/; revision=49774
2013-06-03Convert ASN.1 dissectors to use filterable expert info.Michael Mann2-34/+92
NOTE: Kerberos ASN.1 template was updated, but not generated to source. svn path=/trunk/; revision=49707
2013-05-11I added EXPORT_FILES in too many places, remove themJörg Mayer1-4/+0
(via "copy - modify too little - paste" cycle) svn path=/trunk/; revision=49255
2013-05-10Some more protocols can be generated via cmakeJörg Mayer1-0/+31
svn path=/trunk/; revision=49233
2013-05-05Just whitespace changesJörg Mayer1-2/+3
svn path=/trunk/; revision=49167
2013-05-01Protect a "divide by zero" operation. Bug 7359 ↵Michael Mann1-12/+20
(https://bugs.wireshark.org/bugzilla/show_bug.cgi?id=7359). This seems to have been generated through a corrupted UAT file switching between 1.8 and 1.10, but it's a good check to have regardless. svn path=/trunk/; revision=49128
2013-04-23Stub cmake support for generating the asn1 dissectors.Jörg Mayer1-0/+23
It doesn't do anything yet, it is just to make svn status readable again. svn path=/trunk/; revision=49007
2013-03-20From beroset:Bill Meier1-2/+2
remove C++ incompatibilities https://bugs.wireshark.org/bugzilla/show_bug.cgi?id=8416 attachment #10401 svn path=/trunk/; revision=48441
2013-03-20[-Wmissing-prototypes]Anders Broman1-4/+9
Use explicit casts. svn path=/trunk/; revision=48439
2013-03-12From beroset:Anders Broman1-2/+2
remove C++ incompatibilities from UAT_VS_DEF macro and all uses https://bugs.wireshark.org/bugzilla/show_bug.cgi?id=8416 svn path=/trunk/; revision=48259
2013-02-26SNMP dissector should handle aes256 (better version than r47690)Michael Mann1-47/+96
svn path=/trunk/; revision=47902
2013-02-21include the wsutil/wsgcrypt.h instead of including gcrypt.h directlyMartin Kaiser1-1/+1
svn path=/trunk/; revision=47802
2013-02-16Fix typo errorPascal Quantin1-2/+2
svn path=/trunk/; revision=47693
2013-02-16Add decryption algorithm preference to SNMP dissector.Michael Mann1-1/+32
Bug 8328 (https://bugs.wireshark.org/bugzilla/show_bug.cgi?id=8328) svn path=/trunk/; revision=47690
2013-01-28Allow SNMP user table entry to be re-editted even if engineID/Username ↵Michael Mann1-1/+1
remains the same. Bug 2426 (https://bugs.wireshark.org/bugzilla/show_bug.cgi?id=2426) svn path=/trunk/; revision=47328
2013-01-20snmp dissector did not correctly set length of pdu's of more than 127 bytes. ↵Graham Bloice1-1/+1
The dissector assumed the ber identifier and length fields were always 2 bytes long, so a pdu length of more than 127 bytes, which requires more than 1 length octet, was incorrectly dissected. svn path=/trunk/; revision=47173
2012-12-26bytestring_to_str() now returns a const char *; assign its result to aGuy Harris1-1/+1
const char *, not a char *. svn path=/trunk/; revision=46769
2012-12-21Squelch a qualifier-discard warning.Guy Harris1-1/+1
svn path=/trunk/; revision=46664
2012-10-09From Bill Parker:Anders Broman1-3/+3
Explicitly declare/cast 'unsigned <variable>' as 'unsigned int <variable>' https://bugs.wireshark.org/bugzilla/show_bug.cgi?id=7810 svn path=/trunk/; revision=45418
2012-09-20We always HAVE_CONFIG_H so don't bother checking whether we have it or not.Jeff Morriss1-3/+1
svn path=/trunk/; revision=45015
2012-09-10Initial commit to support yet another method of passing data between dissectors.Jakub Zawadzki1-1/+1
Add new parameter 'data' to heur_dissector_t and new_dissector_t, for now it's always NULL svn path=/trunk/; revision=44860
2012-09-10Propage changes done in generated dissectors to asn1/Jakub Zawadzki1-8/+6
svn path=/trunk/; revision=44845
2012-08-01Fix Coverity CID 280019 (formerly 19): "Logically dead code" that abroman ↵Chris Maynard1-1/+1
previously commited a fix for in r17532, but forgot to also commit a change to asn1/snmp/packet-snmp-template.c as well, so the change was apparently inadvertently reverted the next time that packet-snmp.c was regenerated. svn path=/trunk/; revision=44179
2012-07-21Fix https://bugs.wireshark.org/bugzilla/show_bug.cgi?id=7508 :Pascal Quantin1-0/+1
Display snmp.contextName as FT_STRING svn path=/trunk/; revision=43883
2012-07-13tvb_length_remaining() can return -1, so don't assign its return value to an ↵Chris Maynard1-2/+2
unsigned integer. Fixes Coverity CID's 280233 and 280234. svn path=/trunk/; revision=43697
2012-07-10Fix https://bugs.wireshark.org/bugzilla/show_bug.cgi?id=7438 :Pascal Quantin1-2/+3
Do not call tvb_ensure_length_remaining on an empty tvb svn path=/trunk/; revision=43648
2012-07-08UATs could be put into "categories". The categories were defined onlyGuy Harris1-2/+2
implicitly by the #define name and string they were defined to; not all UATs neatly fit into any of the categories, so some of them were put into categories that weren't obviously correct for them, and one - the display filter macro UAT - wasn't put into any category at all (which caused crashes when editing them, as the GUI code that handled UAT changes from a dialog assumed the category field was non-null). The category was, in practice, used only to decide, in the aforementioned GUI code, whether the packet summary pane needed to be updated or not. It also offered no option of "don't update the packet summary pane *and* don't redissect anything", which is what would be appropriate for the display filter macro UAT. Replace the category with a set of fields indicating what the UAT affects; we currently offer "dissection", which applies to most UATs (any UAT in libwireshark presumably affects dissection at a minimum) and "the set of named fields that exist". Changing any UAT that affects dissection requires a redissection; changing any UAT that affects the set of named fields that exist requires a redissection *and* rebuilding the packet summary pane. Perhaps we also need "filtering", so that if you change a display filter macro, we re-filter, in case the display is currently filtered with a display filter that uses a macro that changed. svn path=/trunk/; revision=43603
2012-06-28Update Free Software Foundation address.Jakub Zawadzki5-5/+5
(COPYING will be updated in next commit) svn path=/trunk/; revision=43536
2012-06-09Do not use BASE_NONE for FT_*INT* types.Chris Maynard1-1/+1
svn path=/trunk/; revision=43179
2012-06-04Get rid of a couple of warnings.Anders Broman1-34/+34
svn path=/trunk/; revision=43065
2012-05-24tvb_length_remaining() can return a negative number, so be sure to handle ↵Chris Maynard1-1/+13
it. Fixes Coverity CID's 280233-280235. svn path=/trunk/; revision=42839
2012-05-24Fix bug #7283Jakub Zawadzki1-1/+2
When Engine ID is 128 we should only break when we know the enterprise id. svn path=/trunk/; revision=42825
2012-05-11Get rid of remaining Booleans-as-encoding-arguments inGuy Harris1-4/+4
proto_tree_add_item() calls. svn path=/trunk/; revision=42556
2012-04-25From Evan Huus:pascal1-2/+3
Fix Integer32 length field detection https://bugs.wireshark.org/bugzilla/show_bug.cgi?id=7192 svn path=/trunk/; revision=42241