aboutsummaryrefslogtreecommitdiffstats
path: root/asn1
AgeCommit message (Collapse)AuthorFilesLines
2013-12-20Change G_GINT64_CONSTANT(xxxxU) to G_GUINT64_CONSTANT(xxxx)Jakub Zawadzki3-3/+3
svn path=/trunk/; revision=54314
2013-12-20Copy Evan r54250 changes to asn/Jakub Zawadzki3-6/+6
Rename more to_str functions to have ep_ in the name if they return ephemeral buffers. svn path=/trunk/; revision=54313
2013-12-19Add bytestring_to_str() which takes a wmem scope and is otherwise identical toEvan Huus1-1/+1
bytestring_to_ep_str (now deprecated). Use the new one in a few obvious places. Also just print directly to the buffer when loading ethernet addresses for resolution. The straight-to-buffer bytes_to_hexstr seems useful, maybe it shouldn't be in a private header... svn path=/trunk/; revision=54270
2013-12-19Update file forgotten in r54250Pascal Quantin1-6/+6
svn path=/trunk/; revision=54264
2013-12-19Rename more to_str functions to have ep_ in the name if they return ephemeralEvan Huus1-1/+1
buffers. Remove two unused functions. svn path=/trunk/; revision=54250
2013-12-19Rename a couple of to_str functions to have ep_ in the name. This makes itEvan Huus7-10/+10
obvious that the returned string is ephemeral, and opens up the original names in the API for versions that take a wmem pool (and thus can work in any scope). svn path=/trunk/; revision=54249
2013-12-19Use proto_tree_add_item() or tvb_get_string_enc() instead ofGuy Harris1-1/+1
tvb_get_unicode_string(). If there's an indication that the encoding is UCS-2, use that, otherwise use UTF-16. (For example, "BMP" stands for "Basic Multilingual Plane", which is the part of Unicode that can be encoded in 16 bits, hence UCS-2.) In the description of the "Use Heuristics for UDP" preference for the XML dissector, note that it's not just trying to recognize XML in UCS-2, it's trying to recognize XML in *big-endian* UCS-2. svn path=/trunk/; revision=54245
2013-12-18Add a sixteenth element to all BCD digit sets to avoid garbage values whenEvan Huus1-1/+1
decoding corrupt bytes. Some of these digit sets could probably be deduplicated... svn path=/trunk/; revision=54224
2013-12-17Make local functions static. Include *.h when needed.Anders Broman7-5/+11
svn path=/trunk/; revision=54201
2013-12-14Remove not needed ';'Jakub Zawadzki1-1/+1
svn path=/trunk/; revision=54088
2013-12-12Reject the packet if data is NULL. For now, leave the DISSECTOR_ASSERT's ↵Chris Maynard2-24/+42
since both get_rose_ctx() and get_asn1_ctx() also check signatures. svn path=/trunk/; revision=53965
2013-12-12Reject the packet if data is NULL. Remove _U_ where data is actually used. ↵Chris Maynard2-18/+32
For now, leave the DISSECTOR_ASSERT's since both get_rose_ctx() and get_asn1_ctx() also check signatures. (Arguably it's the responsibility of the dissector passing this information to set the signature correctly so if there's an invalid signature, the bug is with the calling dissector and not with the one receiving the invalid signature.) svn path=/trunk/; revision=53964
2013-12-11Fix (-W)unused-const-variable error found by ClangAlexis La Goutte1-2/+2
svn path=/trunk/; revision=53935
2013-12-10- Forward declaration of register functions.Anders Broman2-37/+41
svn path=/trunk/; revision=53908
2013-12-10comment out unused functionsMartin Kaiser1-0/+2
fixes https://bugs.wireshark.org/bugzilla/show_bug.cgi?id=9538 reported by Yaniv Kaul svn path=/trunk/; revision=53902
2013-12-10- Forward declaration of register functions.Anders Broman6-3/+16
svn path=/trunk/; revision=53901
2013-12-09Reject the packet if data is NULL. For now, leave the ↵Chris Maynard1-6/+9
DISSECTOR_ASSERT(rose_ctx_tmp) since get_rose_ctx() also checks the signature, which might be invalid even if data is not NULL. svn path=/trunk/; revision=53896
2013-12-09Reject the packet if data is NULL without doing anything else.Chris Maynard6-64/+29
Note: We *might* want to do _something_ but that _something_ should be well-defined and consistent across all dissectors. Previously, some dissectors called proto_tree_add_text() to add some error message text to the tree, while others called DISSECTOR_ASSERT(). svn path=/trunk/; revision=53895
2013-12-09- Forward declaration of register functions.Anders Broman6-1/+17
svn path=/trunk/; revision=53877
2013-12-09- Forward declaration of register functions.Anders Broman7-1/+21
svn path=/trunk/; revision=53876
2013-12-08- Forward declaration of register functions.Anders Broman7-0/+21
svn path=/trunk/; revision=53873
2013-12-08- Forward declaration of register functions.Anders Broman12-5/+41
svn path=/trunk/; revision=53872
2013-12-08Use STR_UNICODE display instead of proto_tree_add_unicode_string() in the ↵Pascal Quantin2-6/+4
remaining dissectors svn path=/trunk/; revision=53867
2013-12-08- Forward declaration of register functions.Anders Broman1-0/+2
svn path=/trunk/; revision=53862
2013-12-08- Forward declaration of register functions.Anders Broman7-0/+21
svn path=/trunk/; revision=53861
2013-12-08- Forward declaration of register functions.Anders Broman6-1/+17
svn path=/trunk/; revision=53860
2013-12-08- Forward declaration of register functions.Anders Broman11-0/+32
svn path=/trunk/; revision=53859
2013-12-07- Make local functions static.Anders Broman13-2/+37
- Forward declaration of register functions. svn path=/trunk/; revision=53821
2013-12-04Fix for dissecting cdt without having a tree.Stig Bjørlykke1-0/+2
svn path=/trunk/; revision=53777
2013-12-03When including <epan/prefs.h> don't force inclusion of <epan/uat.h>Jakub Zawadzki2-0/+2
svn path=/trunk/; revision=53769
2013-12-02Reject the packet if data is NULL without doing anything else.Chris Maynard1-7/+3
svn path=/trunk/; revision=53737
2013-12-02Reject the packet if data is NULL without doing anything else.Chris Maynard1-6/+4
svn path=/trunk/; revision=53708
2013-12-02If data is NULL, the bug, if any, is not with *this* dissector, but with ↵Chris Maynard1-9/+6
whichever one failed to pass the data properly. svn path=/trunk/; revision=53706
2013-12-01Copy over rev 53700 to cmakeJörg Mayer1-2/+2
svn path=/trunk/; revision=53702
2013-12-01Update to V11.7.1 (2013-09)Anders Broman4-3/+1655
svn path=/trunk/; revision=53700
2013-11-29Avoid including <wiretap/wtap.h> in dissectors.Jakub Zawadzki1-0/+1
svn path=/trunk/; revision=53655
2013-11-29Rename some of pint.h macros to match common style (bits number on the end).Jakub Zawadzki1-4/+4
pntohs -> pntoh16 pntohl -> pntoh32 pletohs -> pletoh16 pletohl -> pletoh32 phtons -> phton16 phtonl -> phton32 svn path=/trunk/; revision=53652
2013-11-26From Vineeth:Anders Broman4-2/+799
Support for Nokias GSM MAP Private Extensions svn path=/trunk/; revision=53600
2013-11-25Fix a shadowed declaration error when compiling with gcc 4.3.2Pascal Quantin1-3/+3
svn path=/trunk/; revision=53562
2013-11-25Prettify LTE Positioning Protocol dissectionPascal Quantin2-39/+2586
svn path=/trunk/; revision=53561
2013-11-24Dissect UE Rx - Tx time difference fieldPascal Quantin2-0/+17
svn path=/trunk/; revision=53557
2013-11-23Convert ASN1 dissectors from ep_address_to_str to address_to_str. Clean up a bitEvan Huus4-24/+28
of ansi_tcap code while in the neighbourhood. svn path=/trunk/; revision=53530
2013-11-23Create the ability to have packet scoped "proto" data. Bug 9470 ↵Michael Mann5-17/+17
(https://bugs.wireshark.org/bugzilla/show_bug.cgi?id=9470) I'm not sold on the name or module the proto_data functions live in, but I believe the function arguments are solid and gives us the most flexibility for the future. And search/replace of a function name is easy enough to do. The big driving force for getting this in sooner rather than later is the saved memory on ethernet packets (and IP packets soon), that used to have file_scope() proto data when all it needed was packet_scope() data (technically packet_info->pool scoped), strictly for Decode As. All dissectors that use p_add_proto_data() only for Decode As functionality have been converted to using packet_scope(). All other dissectors were converted to using file_scope() which was the original scope for "proto" data. svn path=/trunk/; revision=53520
2013-11-22Fix unused-const-variable error when build with clang 3.4Alexis La Goutte1-0/+4
svn path=/trunk/; revision=53510
2013-11-22Fix unused-const-variable error when build with clang 3.4Alexis La Goutte1-0/+2
svn path=/trunk/; revision=53509
2013-11-17Add a way to retrieve a PER variable bit string lengthPascal Quantin2-3/+5
svn path=/trunk/; revision=53382
2013-11-12Add "rtp handle protection" inside ↵Michael Mann1-3/+2
srtp_add_address/rtp_add_address/bluetooth_add_address so dissectors calling it don't need to find "rtp" just for the handle check. svn path=/trunk/; revision=53288
2013-11-12Add "T.38 handle protection" inside t38_add_address() so dissectors calling ↵Michael Mann2-4/+2
it don't need to find "t38" just for the handle check. svn path=/trunk/; revision=53283
2013-11-10Pass "wild_card" directly to dissector instead of using private_data. ↵Michael Mann1-2/+1
"h248term" dissector is not in Wireshark source, so third-party will need to update accordingly. svn path=/trunk/; revision=53241
2013-11-10Use ASN.1 private data instead of pinfo->private_data to exchange kerberos ↵Michael Mann2-13/+4
callback functions. svn path=/trunk/; revision=53240