aboutsummaryrefslogtreecommitdiffstats
path: root/epan/crypt
AgeCommit message (Collapse)AuthorFilesLines
2008-06-23Rename a variable to avoid collisions with the old V7 index() function,Guy Harris1-4/+4
still declared by <string.h> on some platforms (at least the way we compile, with all sorts of non-ANSI C/non-POSIX stuff added). svn path=/trunk/; revision=25551
2008-05-23Fix some of the Errors/warnings detected by checkapi.Anders Broman2-1/+5
svn path=/trunk/; revision=25368
2008-04-09Remove:Anders Broman1-3/+0
#ifdef NEED_G_ASCII_STRCASECMP_H #include "g_ascii_strcasecmp.h" #endif svn path=/trunk/; revision=24859
2008-04-07- Remove GLIB1 codeStephen Fisher1-1/+0
- Change ugly GLIB version checking statements to GLIB_CHECK_VERSION - Remove ws_strsplit files because we no longer need to borrow GLIB2's g_strsplit code for the no longer supported GLIB1 builds svn path=/trunk/; revision=24829
2008-03-11If we haven't found a handshake packet, say so.Gerald Combs1-1/+1
svn path=/trunk/; revision=24605
2008-03-10Change the BSD-licensed written by CACE to BSD+GPL.Gerald Combs9-0/+36
svn path=/trunk/; revision=24599
2008-03-05Move the contents of AirPDcapCleanKeys() into AirPDcapInitContext()Gerald Combs2-38/+14
and call AirPDcapInitContext() where we were previously calling AirPDcapCleanKeys(). If we're resetting our keys, we should reset our SA list and other associated data as well. svn path=/trunk/; revision=24562
2007-11-28we must include config.h or else NEED_G_ASCII_STRCASECMP_H will never be Ronnie Sahlberg1-1/+5
defined we must also include g_ascii_strcasecmp.h from the parent directory svn path=/trunk/; revision=23634
2007-11-27strcasecmp(), strncasecmp(), g_strcasecmp(), and g_strncasecmp() delendaGuy Harris1-3/+7
est. Use g_ascii_strcasecmp() and g_ascii_strncasecmp(), and supply our own versions if they're missing from GLib (as is the case with GLib 1.x). In the code to build the list of named fields for Diameter, don't use g_strdown(); do our own g_ascii_-style upper-case to lower-case mapping in the hash function and use g_ascii_strcasecmp() in the compare function. We do this because there is no guarantee that toupper(), tolower(), and functions that use them will, for example, map between "I" and "i" in all locales; in Turkish locales, for example, there are, in both upper case and lower case, versions of "i" with and without a dot, and the upper-case version of "i" is "I"-with-a-dot and the lower-case version of "I" is "i"-without-a-dot. This causes strings that should match not to match. This finishes fixing bug 2010 - an earlier checkin prevented the crash (as there are other ways to produce the same crash, e.g. a bogus dictionary.xml file), but didn't fix the case-insensitive string matching. svn path=/trunk/; revision=23623
2007-10-31From Christopher McKenzie: Zero out our SAs before we use them.Gerald Combs2-22/+8
Remove an unneeded for loop in AirPDcapCleanKeys(), and make it static. svn path=/trunk/; revision=23314
2007-10-16From tmiller@hcjbtech.org : Spelling error on GDS DB protocol dissector: ↵Sake Blok3-3/+3
"Buffer lenght:" (recursively grepped through the source and corrected all occurences, even the ones just in comments) svn path=/trunk/; revision=23211
2007-06-27Make the WPA passphrase a percent-escaped string. Constify and GLib-izeGerald Combs1-9/+16
some variables. svn path=/trunk/; revision=22210
2007-06-23A recent checkin broke wpa-psk keys; fix it.Gerald Combs1-2/+2
svn path=/trunk/; revision=22169
2007-06-21In packet-ieee802.11.c, fix a serious preference bug introduced in theGerald Combs1-2/+5
last checkin. In airpcap.c, appease the toolbar code by returning a lower-case, non-separated WEP key. svn path=/trunk/; revision=22152
2007-06-21Be less restrictive about WEP key preferences. Use hex_str_to_bytes toGerald Combs2-254/+148
process WEP keys. Allow the "wep:" prefix for WEP keys even when HAVE_AIRPDCAP isn't defined. Add a NULL pointer check to hex_str_to_bytes(). Fixes bug 1584. Fixup indentation. svn path=/trunk/; revision=22151
2007-06-18Be a little less picky about EAPOL packet lengths. Someone sent in aGerald Combs1-2/+2
capture that has extra data in the 4th handshake message. svn path=/trunk/; revision=22138
2007-06-14The 802.11 dissector calculates the header size, so pass that value toGerald Combs4-117/+71
the WEP/WPA decryption code instead of re-calculating it. Fixes bug 1639. Remove fcsPresent, radiotapPresent, and associated code from airpdcap.c since they were always FALSE. Glib-ize some data types. Fixup white space. Update the release notes. svn path=/trunk/; revision=22104
2007-06-03(Minor) Use _WIN32 (instead of WIN32) like the rest of Wireshark Bill Meier1-1/+1
svn path=/trunk/; revision=22030
2007-05-20The fix for ad-hoc WEP decryption in r21814 broke WPA. Replace it withGerald Combs3-1157/+1185
a better fix. Clean up whitespace while we're at it. svn path=/trunk/; revision=21847
2007-05-17Try WEP decryption before WPA. This keeps us from returningGerald Combs1-113/+110
prematurely if we have an IBSS frame. svn path=/trunk/; revision=21814
2007-04-23Need to include <epan/pint.h> to get pletohl() defined.Guy Harris1-0/+1
svn path=/trunk/; revision=21544
2007-04-23byteReverse assumes its argument is aligned on a 32-bit boundary; makeGuy Harris1-10/+9
it a pointer to a guint32. Also, use pletohl() to fetch a 32-bit little-endian quantity. svn path=/trunk/; revision=21542
2007-04-23The "in" array in an MD5 context is expected to be aligned on a 4-byteGuy Harris1-1/+1
boundary; make it an array of 16 guint32's rather than 64 guint8's, to ensure that, and add now-necessary casts and remove now-unnecessary casts. (Missed on the previous checkin.) svn path=/trunk/; revision=21541
2007-04-23The "in" array in an MD5 context is expected to be aligned on a 4-byteGuy Harris1-11/+11
boundary; make it an array of 16 guint32's rather than 64 guint8's, to ensure that, and add now-necessary casts and remove now-unnecessary casts. svn path=/trunk/; revision=21540
2007-04-23Get rid of no-longer-needed, and warning-generated, casts.Guy Harris1-10/+10
svn path=/trunk/; revision=21536
2007-04-23Make Mk16_le() work on both big-endian and little-endian processors andGuy Harris1-3/+2
on processors that don't support unaligned loads - just use pletohs(). svn path=/trunk/; revision=21534
2007-04-23Don't assume byte pointers can be safely cast to more aligned pointers;Guy Harris1-9/+6
the compiler now warns of that. svn path=/trunk/; revision=21530
2007-04-23Don't assume a pointer to UCHAR is necessarily aligned; that nowGuy Harris1-2/+2
generates a warning. svn path=/trunk/; revision=21528
2007-04-22Get rid of some const warnings.Guy Harris1-14/+15
Use the "pnto" macros to fetch 16-bit quantities from a buffer - not only do they have the right casts to avoid const warnings, they also work even on platforms (such as SPARC) where you can't dereference unaligned pointers without a trap. Similarly, compare a possibly-unaligned (we make no alignment guarantees in Wireshark) 16-bit quantity against 0 a byte at a time. svn path=/trunk/; revision=21507
2007-04-22Check the GLib version number, not the GTK+ version number; it's GLib weGuy Harris1-1/+1
care about, and this code doesn't use GTK+, so it doesn't include any GTK+ headers and therefore doesn't get the GTK+ version number defined. svn path=/trunk/; revision=21506
2007-04-22GString.len has changed signednedd between gtk1 and gtk2Ronnie Sahlberg1-2/+5
this will hopefully again compile under both gtk1 and 2 svn path=/trunk/; revision=21499
2007-04-22Fix a signedness warning.Jörg Mayer1-1/+1
svn path=/trunk/; revision=21497
2007-04-22fix the sign of a variable to prevent a singed/unsigned warning during Ronnie Sahlberg1-1/+1
compiling svn path=/trunk/; revision=21494
2007-04-14delete Td4 as it is used only in rijndaelDecrypt and rijndaelDecryptRound notSebastien Tandel1-67/+0
present in the wireshark code svn path=/trunk/; revision=21429
2007-03-29- Add Makefile.common to EXTRA_DIST (spotted by Christopher Maynard)Jörg Mayer1-2/+3
- Replaced spaces at beginning of line by tab svn path=/trunk/; revision=21267
2007-03-26Don't #define bzero and bcopy to be memset and memcpy on Windows, just use ↵Jeff Morriss1-9/+4
memset and memcpy instead. svn path=/trunk/; revision=21201
2007-03-23From Sebastien Tandel:Stephen Fisher1-1/+1
(Temporarily disable the warnings as errors default on Unix to get to get the buildbots and people with gcc40 going again until those additional warnings gcc40 generates can be fixed-I'm working on it ASAP) Patch for configure.in which disables by default the treatment of warnings as errors. It can be enabled with './configure --with-warnings-as-errors'. The macro will test first if GCC is present. If it's the case, HAVE_WARNINGS_AS_ERRORS is defined. All the USING_GCC have been replaced by HAVE_WARNINGS_AS_ERRORS. With this switch, people won't suffer from unexpected warnings when downloading svn sources during the transition time ;) svn path=/trunk/; revision=21153
2007-03-22Add -Werror for gcc to a few more directories and fix a few warningsStephen Fisher2-28/+4
svn path=/trunk/; revision=21129
2007-03-22add "treat warnings as errors" flag(s)Ulf Lamping1-1/+1
svn path=/trunk/; revision=21125
2007-03-16From: Sebastien TandelLuis Ontanon2-3/+3
And here is the patch to change guint -> guint32 in the hmac function. svn path=/trunk/; revision=21037
2007-02-25Eliminate __inline - not all compilers support it.Guy Harris3-83/+35
svn path=/trunk/; revision=20932
2007-02-25ANSI C defines size_t; if we don't have that defined, we have biggerGuy Harris1-6/+0
problems, and there's no guarantee that _SIZE_T is defined on all ANSI C platforms, so you might end up with a redefinition and a compile failure. svn path=/trunk/; revision=20931
2007-02-20WEP decryption is destructive -- pass a fresh copy of our data bufferGerald Combs1-3/+8
instead of the actual buffer. Add an entry to the release notes, and clear out leftovers from the 0.99.5 release. svn path=/trunk/; revision=20875
2007-02-19Fix some C++ style commentsBill Meier1-1/+1
svn path=/trunk/; revision=20865
2007-02-13From Sebastien Tandel:Stephen Fisher1-0/+1
Create two new files (ws_strsplit.[ch]) that use GTK2 code to override the buggy g_strsplit() function when compiling for GTK1. Include this work-around function (ws_strsplit) in libwireshark.def. Add notes on usage to README.developer. Include epan/ws_strsplit.h in all files that use g_strsplit(). svn path=/trunk/; revision=20804
2007-02-06From Eric Hall to fix bug 1289:Jeff Morriss1-0/+2
http://bugs.wireshark.org/bugzilla/show_bug.cgi?id=1289 Rename 'svnversion' to 'wireshark_svnversion' to resolve a symbol conflict with GTK 2.10.6 (hmm, shouldn't GTK not be exporting that symbol or at least naming it so as to prevent such collisions? Well, so should we, so...) From Andreas Fink: change #ifdef for size_t in airdcap_interop.h to fix compile on MacOS X. svn path=/trunk/; revision=20726
2007-01-26Fix saving WPA key preferences from the decryption key management dialog,Gerald Combs1-4/+0
which was broken by r20388. svn path=/trunk/; revision=20573
2007-01-26Add support for "wildcard" WPA keys in the form "wpa:passphrase" (noteGerald Combs3-176/+239
the lack of SSID). Wildcarding combines the passphrase with the last seen SSID and attempts decryption. The last-seen stack is only one element tall, which means it may get clobbered on busy and diverse networks. We can expand it if needed. Make internal functions static in airpdcap.c. Rearrange the AIRPDCAP_KEY_ITEM struct so that the passphrase and SSID don't get clobbered when we set our PSK. svn path=/trunk/; revision=20572
2007-01-25Fix a key preference crash bug. Improve WPA passphrase and SSID lengthGerald Combs1-2/+2
handling. Free a byte array. Squelch a compiler warning. Fix a URI string parsing bug. svn path=/trunk/; revision=20549
2007-01-16From Gisle Vanem: Add the final ) to a g_strdup_printf callStephen Fisher1-1/+1
svn path=/trunk/; revision=20457