Commit Graph

10 Commits

Author SHA1 Message Date
Guy Harris 20800366dd HTTPS (almost) everywhere.
Change all wireshark.org URLs to use https.

Fix some broken links while we're at it.

Change-Id: I161bf8eeca43b8027605acea666032da86f5ea1c
Reviewed-on: https://code.wireshark.org/review/34089
Reviewed-by: Guy Harris <guy@alum.mit.edu>
2019-07-26 18:44:40 +00:00
Martin Kaiser 01768d0264 rfc7468: fix a used-but-marked-unused warning
file-rfc7468.c:428:39: error: 'data' was marked unused but was used
    dissect_rfc7468(tvb, pinfo, tree, data);

Change-Id: I938f30edfc7cf952eadbd0cf79e4cc95bb971b2e
Reviewed-on: https://code.wireshark.org/review/33369
Reviewed-by: Martin Kaiser <wireshark@kaiser.cx>
Petri-Dish: Martin Kaiser <wireshark@kaiser.cx>
Tested-by: Petri Dish Buildbot
Reviewed-by: Alexis La Goutte <alexis.lagoutte@gmail.com>
2019-05-26 19:03:46 +00:00
Stig Bjørlykke d749beafb9 rfc7468: Fix a memory leak
Read the base64 decoded data into a wmem_alloc memory to avoid
a memory leak for each opened file.

Change-Id: I4cbb2c15dea43183ed741d54ae7c6ea2e83e46c0
Reviewed-on: https://code.wireshark.org/review/31112
Petri-Dish: Stig Bjørlykke <stig@bjorlykke.org>
Tested-by: Petri Dish Buildbot
Reviewed-by: Anders Broman <a.broman58@gmail.com>
2018-12-19 11:40:57 +00:00
Guy Harris 9b8dd94644 Squelch narrowing conversion warnings.
Change-Id: If9dedce987d248ec726047e5e59dd55e96d0e701
Reviewed-on: https://code.wireshark.org/review/29517
Reviewed-by: Guy Harris <guy@alum.mit.edu>
2018-09-09 18:57:05 +00:00
Guy Harris 6c18867896 If we run out of lines, stop dissecting.
Change-Id: I19cbbd0af9debff33f1382f77272aeecd54a9cd2
Reviewed-on: https://code.wireshark.org/review/29184
Reviewed-by: Guy Harris <guy@alum.mit.edu>
2018-08-18 07:34:35 +00:00
Alexis La Goutte 705b5bd52f rfc7648: Fix Dead Store (Dead assignement/Dead increment) Warning found by Clang
Change-Id: Idc37628b7f3022e83b53a34f388ce976aab0888e
Reviewed-on: https://code.wireshark.org/review/28941
Reviewed-by: Peter Wu <peter@lekensteyn.nl>
Petri-Dish: Peter Wu <peter@lekensteyn.nl>
Tested-by: Petri Dish Buildbot
Reviewed-by: Jaap Keuter <jaap.keuter@xs4all.nl>
2018-08-04 07:51:51 +00:00
Stig Bjørlykke 925baf8c8c rfc7468: Usability improvements
Put base64 decoded data on top level tree. Set COL_PROTOCOL and
add label to COL_INFO.

Change-Id: Iea68523c9b2cee0f62fd86510c216b9c00f39f2a
Reviewed-on: https://code.wireshark.org/review/28921
Petri-Dish: Stig Bjørlykke <stig@bjorlykke.org>
Tested-by: Petri Dish Buildbot
Reviewed-by: Guy Harris <guy@alum.mit.edu>
2018-08-01 17:22:06 +00:00
Guy Harris f1e036b869 Cast the result of g_realloc().
That squelches warnings if C++ compatibility is being checked.

Change-Id: Ia3dd9852df0fbf6353a84d299a385ef63c9f1acd
Reviewed-on: https://code.wireshark.org/review/28920
Reviewed-by: Guy Harris <guy@alum.mit.edu>
2018-08-01 09:09:29 +00:00
Guy Harris 24e44a6ae6 Don't hide dissected data under a "Data" item.
Only put otherwise-undissectable BER data under that item.

That removes an extra layer that needs to be opened up.

Change-Id: I6b025a782ff7199c84bad46160c7c286e79b0580
Reviewed-on: https://code.wireshark.org/review/28915
Reviewed-by: Guy Harris <guy@alum.mit.edu>
2018-08-01 05:55:35 +00:00
Guy Harris 940775b948 Do most of the RFC 7468 file processing in the dissector.
Have the Wiretap code just do a heuristic test to see if the file looks
like a RFC 7468 file and just had the entire blob of raw file data to
the caller, with an encapsulation type of WTAP_ENCAP_RFC7468.

Have a file-rfc7468.c dissector that processes the lines of the file,
displaying all of them.  Have it extract the label from the
pre-encapsulation boundary line, and, after it's decoded the
base64-encoded data lines into a blob of data, try handing the tvbuff
with the blob to dissectors that have registered in the
"pem.preeb_label" dissector table with the appropriate label value, and
hand it to the raw BER dissector only if that fails.

This allows some files to have the content dissected as more than just a
raw blob of BER-encoded data.

Change-Id: I98db9f0beb86e5694fb8e886005a2df4fc96ba71
Reviewed-on: https://code.wireshark.org/review/28914
Reviewed-by: Guy Harris <guy@alum.mit.edu>
2018-08-01 04:58:43 +00:00