aboutsummaryrefslogtreecommitdiffstats
path: root/epan/dissectors/packet-radius.c
AgeCommit message (Collapse)AuthorFilesLines
2014-07-06convert to proto_tree_add_subtree[_format]Michael Mann1-8/+4
Change-Id: Ia2567695ffed30c990eda3740b08bfab101cea96 Reviewed-on: https://code.wireshark.org/review/2883 Reviewed-by: Michael Mann <mmann78@netscape.net>
2014-06-19Revert "Fixup: tvb_* -> tvb_captured"Michael Mann1-9/+9
https://www.wireshark.org/lists/wireshark-dev/201406/msg00131.html This reverts commit 246fe2ca4c67d8c98caa84e2f57694f6322e2f96. Change-Id: Ib24bae0198c13a84bd7f731bf4af921212109a8f Reviewed-on: https://code.wireshark.org/review/2430 Reviewed-by: Michael Mann <mmann78@netscape.net>
2014-06-18Fixup: tvb_* -> tvb_capturedDario Lombardo1-9/+9
Change-Id: I9209c1271967405c34c1b6fa43e1726a4d3a5a3f Reviewed-on: https://code.wireshark.org/review/2377 Reviewed-by: Anders Broman <a.broman58@gmail.com>
2014-06-16Add a FIXME referring to bug 4096Joerg Mayer1-1/+3
Change-Id: I4263d791e7bc7dc410d2735e94bc765aee2d84bc Reviewed-on: https://code.wireshark.org/review/2287 Reviewed-by: Jörg Mayer <jmayer@loplof.de>
2014-06-16Convert a bunch of time_to_str functions to wmemEvan Huus1-1/+1
Change-Id: I24fe3cc4a3589dadc4528a77fe7ff13d06b1a983 Reviewed-on: https://code.wireshark.org/review/2245 Reviewed-by: Michael Mann <mmann78@netscape.net>
2014-06-07tvb_new_subset -> tvb_new_subset_length when length parameters are equal.Michael Mann1-1/+1
tvb_new_subset -> tvb_new_subset_remaining it appears that's what the intention is. Change-Id: I2334bbf3f10475b3c22391392fc8b6864454de2d Reviewed-on: https://code.wireshark.org/review/1999 Reviewed-by: Pascal Quantin <pascal.quantin@gmail.com>
2014-05-22RADIUS: Remove double space before type (t=...)Alexis La Goutte1-2/+2
Change-Id: I536a359e7c808b3ace8387e30117f307c0a66e8b Reviewed-on: https://code.wireshark.org/review/1729 Reviewed-by: Anders Broman <a.broman58@gmail.com>
2014-05-13isprint() -> g_ascii_isprint()AndersBroman1-1/+1
Change-Id: Ia586ef8ce500d5fc7578c52014206fa7a7eaea41 Reviewed-on: https://code.wireshark.org/review/1624 Reviewed-by: Anders Broman <a.broman58@gmail.com>
2014-03-04Remove all $Id$ from top of fileAlexis La Goutte1-2/+0
(Using sed : sed -i '/^ \* \$Id\$/,+1 d') Fix manually some typo (in export_object_dicom.c and crc16-plain.c) Change-Id: I4c1ae68d1c4afeace8cb195b53c715cf9e1227a8 Reviewed-on: https://code.wireshark.org/review/497 Reviewed-by: Anders Broman <a.broman58@gmail.com>
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 Huus1-4/+4
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-14Fix some trivial warnings.Jakub Zawadzki1-0/+1
svn path=/trunk/; revision=54085
2013-11-17Move the epan/filesystem.c routines to wsutil; they're not specific toGuy Harris1-1/+1
packet dissection, they're specific to the entire Wireshark suite of programs. svn path=/trunk/; revision=53377
2013-11-11From Michael Bean via https://bugs.wireshark.org/bugzilla/show_bug.cgi?id=9384 :Pascal Quantin1-0/+15
Add support for Alcatel-Lucent 8950 AAA svn path=/trunk/; revision=53258
2013-11-10Add missing includes in order to remove exceptions.h from proto.h (next commit).Jakub Zawadzki1-0/+1
svn path=/trunk/; revision=53230
2013-11-02Replace glib with wmem when constructing dynamic RADIUS fields. Fixes the memoryEvan Huus1-29/+25
leaks reported in https://bugs.wireshark.org/bugzilla/show_bug.cgi?id=9370 svn path=/trunk/; revision=53053
2013-10-30Remove an extraneous semicolon.Chris Maynard1-1/+1
svn path=/trunk/; revision=52985
2013-10-13whitespace fixes; mostly: remove trailing blanksBill Meier1-1/+1
svn path=/trunk/; revision=52591
2013-09-29Removing the assignments to "str" was an error, as its value is returnedGuy Harris1-4/+8
from the functions. svn path=/trunk/; revision=52271
2013-09-29Cleanup some proto_tree_add_ipv4_format calls that shouldn't be.Michael Mann1-16/+12
svn path=/trunk/; revision=52270
2013-09-29Convert proto_tree_add_ipxnet_format to proto_tree_add_ipxnet_format_value. ↵Michael Mann1-1/+1
Now proto_tree_add_ipxnet_format is currently unused. svn path=/trunk/; revision=52268
2013-09-15Simplification I noticed while reviewing the wmem conversion: there's no need toEvan Huus1-8/+4
strdup the string built in a strbuf if the scope is the same. Remove the thoroughly unnecessary temporary variable as well. svn path=/trunk/; revision=52082
2013-09-15emem -> wmem for radiusMartin Kaiser1-19/+19
svn path=/trunk/; revision=52077
2013-09-15Convert proto_tree_add_uint_format to proto_tree_add_uint_format_value if ↵Michael Mann1-2/+2
hf_ field name is the first part of the formatted string. This was done with a perl script on the dissectors directory (packet-*.c), followed by manual inspection of the output. The manual inspection yielded a few cases that really should have been proto_tree_add_uint or proto_tree_add_item, so I updated them accordingly. The script didn't catch as many as I would have liked, but it's a start. The most common (ab)use of proto_tree_add_uint_format was for appending strings to CRC/checksum values to note good or bad CRC/checksum. svn path=/trunk/; revision=52045
2013-09-053GPP-MS-TimeZone value is not decoded in RADIUS and DIAMETER messages.Anders Broman1-0/+40
https://bugs.wireshark.org/bugzilla/show_bug.cgi?id=9099 svn path=/trunk/; revision=51765
2013-08-01Move a bunch of the crypt modules and pint.h into wsutil.Jeff Morriss1-1/+1
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/+2
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-06-14Remove check_col() and the occasional tree.Michael Mann1-12/+5
svn path=/trunk/; revision=49921
2013-04-09Don't try to open <home>/.wireshark on Windows: Wireshark hasn't written toJeff Morriss1-1/+1
that directory since 2001 and reading from that directory was only left in for backwards compatibility with versions prior to r4702. I think it's now safe to remove that backwards compatibility. This eliminates the last argument of get_persconffile_path(). https://bugs.wireshark.org/bugzilla/show_bug.cgi?id=8437 svn path=/trunk/; revision=48797
2013-03-29Rename value string (and similar) functions to use a consistent pattern. ThisEvan Huus1-1/+1
was done using textual search+replace, not anything syntax-aware, so presumably it got most comments as well (except where there were typos). Use a consistent coding style, and make proper use of the WS_DLL_* defines. Group the functions appropriately in the header. I ended up getting rid of most of the explanatory comments since many of them duplicated what was in the value_string.c file (and were out of sync with the recent updates I made to those in r48633). Presumably most of the comments should be in the .h file not the .c file, but there's enough churn ahead that it's not worth fixing yet. Part of https://bugs.wireshark.org/bugzilla/show_bug.cgi?id=8467 svn path=/trunk/; revision=48634
2013-03-14From beroset:Anders Broman1-27/+27
patch to remove C++ incompatibilities from packet-lmp.c renamed class to lmp_class remove C++ incompatibilities from packet-rcpap.c renamed class to inst_class (instruction class). remove C++ incompatibilities from emem.c and oids.c remove C++ incompatibilities from packet-radius.c remove C++ incompatibilities from packet-enip.c https://bugs.wireshark.org/bugzilla/show_bug.cgi?id=8416 svn path=/trunk/; revision=48299
2012-12-05Fix numerous instances of a variable/parameter name "shadowing" a library ↵Bill Meier1-21/+21
function name; (At least some (gcc ?) compilers give a "shadow" warning for these). svn path=/trunk/; revision=46402
2012-12-04Fix [-Wshadow] warning.Bill Meier1-4/+4
svn path=/trunk/; revision=46367
2012-10-26Create SET_ADDRESS_HF that takes an additional hf_ value that can beEvan Huus1-1/+1
used to override the filter generated from the address column. Fixes https://bugs.wireshark.org/bugzilla/show_bug.cgi?id=7728 (again). svn path=/trunk/; revision=45792
2012-10-26Revert revision 44921.Evan Huus1-1/+1
See discussion on https://bugs.wireshark.org/bugzilla/show_bug.cgi?id=7728 svn path=/trunk/; revision=45791
2012-10-23Allways use sminmpec_values_ext to print the vendor id regardless if we have ↵Anders Broman1-4/+2
it in the database or not. svn path=/trunk/; revision=45736
2012-10-07Fix a couple of typos.Chris Maynard1-3/+3
svn path=/trunk/; revision=45375
2012-10-06Add modelines to packet-radius, and fix a bit of indentation.Evan Huus1-5/+18
svn path=/trunk/; revision=45358
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
2012-09-15From Pontus Fuchs via https://bugs.wireshark.org/bugzilla/show_bug.cgi?id=7728Evan Huus1-1/+1
Make right-click + apply-as-filter work in the packet list for non-ethernet frames (such as ieee 802.11 frames). svn path=/trunk/; revision=44921
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-08-15convert GStrings to more "ephemeral friendly" use.Michael Mann1-9/+8
svn path=/trunk/; revision=44515
2012-08-10Use val_to_str_const() where appropriate;Bill Meier1-3/+3
Also (for a few files): - create/use some extended value strings; - remove unneeded #include files; - remove unneeded variable initialization; - re-order fcns slightly so prefs_reg_handoff...() at end, etc svn path=/trunk/; revision=44438
2012-06-28Update Free Software Foundation address.Jakub Zawadzki1-1/+1
(COPYING will be updated in next commit) svn path=/trunk/; revision=43536
2012-05-29Fix bug #5735Jakub Zawadzki1-1/+1
dissect_attribute_value_pairs() should be also called with NULL tree. Broken from r29964. svn path=/trunk/; revision=42899
2012-05-16Fix https://bugs.wireshark.org/bugzilla/show_bug.cgi?id=7186 :pascal1-1/+4
Link together access-request and access-challenge messages svn path=/trunk/; revision=42656
2012-05-10Don't create alternative fields for the encrypted value of a stringGuy Harris1-6/+12
attribute unless the attribute is encrypted. svn path=/trunk/; revision=42535
2012-05-10Get rid of remaining Booleans-as-encoding-arguments inGuy Harris1-22/+51
proto_tree_add_item() calls. For RADIUS, this means that, for string attributes that are encrypted, we need separate fields for the encrypted and decrypted versions, the former of which is an FT_BYTES (as its value is *NOT* a text string!) and the latter of which is FT_STRING. While we're at it: make some routines static that don't need to be exported; "encrypt=" takes a value between 1 and 3 - get the value from the dictionary and store it, and only do User-Password-style decryption for encrypt=1 attributes; rename "hf64" to "hf_alt", as it's a general "alternate field", used for 64-bit values for integral attributess, IPv6 addresses for "combo IP" attributes, and encrypted values for string fields; give the URL for the FreeRADIUS dictionary file format man page. svn path=/trunk/; revision=42530
2012-05-05Display CHAP password's Ident and String components.Chris Maynard1-1/+32
svn path=/trunk/; revision=42442
2012-05-02Properly decrypt user-password according to ↵Chris Maynard1-38/+44
http://tools.ietf.org/html/rfc2865#section-5.2 This fixes https://bugs.wireshark.org/bugzilla/show_bug.cgi?id=6779 #BACKPORT svn path=/trunk/; revision=42388