aboutsummaryrefslogtreecommitdiffstats
path: root/epan/dissectors/packet-ssl-utils.c
AgeCommit message (Collapse)AuthorFilesLines
2010-02-19Ditch the last direct indexed character array.jake1-10/+10
And some minor formatting updates. git-svn-id: http://anonsvn.wireshark.org/wireshark/trunk@31921 f5534014-38df-0310-8fa8-9805f1628bb7
2010-01-31From Jens Weibler:jake1-4/+44
Just a small patch to add information about elliptic curves for SSL-connections. git-svn-id: http://anonsvn.wireshark.org/wireshark/trunk@31744 f5534014-38df-0310-8fa8-9805f1628bb7
2010-01-29From Laurent Boulard:jake1-3/+18
Follow SSL Stream for TLS_RSA_WITH_NULL_SHA and TLS_RSA_WITH_NULL_MD5. git-svn-id: http://anonsvn.wireshark.org/wireshark/trunk@31733 f5534014-38df-0310-8fa8-9805f1628bb7
2010-01-22Fix a spelling error : entrypted -> encryptedsake1-8/+8
(found by Adam Langley in bug 4349) git-svn-id: http://anonsvn.wireshark.org/wireshark/trunk@31628 f5534014-38df-0310-8fa8-9805f1628bb7
2010-01-22Fix some gcc -Wshadow warningswmeier1-709/+712
git-svn-id: http://anonsvn.wireshark.org/wireshark/trunk@31623 f5534014-38df-0310-8fa8-9805f1628bb7
2010-01-16Use G_GSIZE_MODIFIER rather than casting to "gulong" and printing withguy1-2/+2
"%lu". git-svn-id: http://anonsvn.wireshark.org/wireshark/trunk@31541 f5534014-38df-0310-8fa8-9805f1628bb7
2009-12-21Can someone explain why it's a good idea that functions like strlengerald1-4/+4
return a size_t and then not define a size_t format specifier for sprintf? git-svn-id: http://anonsvn.wireshark.org/wireshark/trunk@31342 f5534014-38df-0310-8fa8-9805f1628bb7
2009-12-21Switch to using a bundled version of the openSUSE Build Service packagesgerald1-14/+14
for GNUTLS since they provide 32-bit and 64-bit Windows packages. We no longer have winposixtype.h, so remove its #includes and add a ssize_t typedef to config.h.win32. git-svn-id: http://anonsvn.wireshark.org/wireshark/trunk@31341 f5534014-38df-0310-8fa8-9805f1628bb7
2009-10-25From Jakub Zawadzki:etxrab1-2/+1
Cleanup dissector code - use proper memory functions. https://bugs.wireshark.org/bugzilla/show_bug.cgi?id=4164 git-svn-id: http://anonsvn.wireshark.org/wireshark/trunk@30691 f5534014-38df-0310-8fa8-9805f1628bb7
2009-09-15ssl_association_remove(): free assoc->info toomorriss1-0/+2
git-svn-id: http://anonsvn.wireshark.org/wireshark/trunk@29914 f5534014-38df-0310-8fa8-9805f1628bb7
2009-09-14Fix for bug 4008:jake1-0/+11
Crash on TLSv1.2 packets, caused by ssl_short_name array overrun. git-svn-id: http://anonsvn.wireshark.org/wireshark/trunk@29906 f5534014-38df-0310-8fa8-9805f1628bb7
2009-09-09From Ivan Sy:jake1-3/+7
Add a more descriptive log message on DH key exchange. git-svn-id: http://anonsvn.wireshark.org/wireshark/trunk@29825 f5534014-38df-0310-8fa8-9805f1628bb7
2009-09-06Rename address_to_str() to ep_address_to_str() because:krj1-2/+2
1) This indicates that the string has ephemeral lifetime 2) More consistent with its existing seasonal counterpart, se_address_to_str(). git-svn-id: http://anonsvn.wireshark.org/wireshark/trunk@29747 f5534014-38df-0310-8fa8-9805f1628bb7
2009-08-25Rework code slightly to prevent several GCC "breaking strict-aliasing rules" ↵wmeier1-3/+11
warnings git-svn-id: http://anonsvn.wireshark.org/wireshark/trunk@29554 f5534014-38df-0310-8fa8-9805f1628bb7
2009-08-13fix build failure without GnuTLSkukosa1-0/+1
git-svn-id: http://anonsvn.wireshark.org/wireshark/trunk@29402 f5534014-38df-0310-8fa8-9805f1628bb7
2009-08-13use G_GSIZE_MODIFIER instead of %zd which is not supported by MSVCkukosa1-3/+3
git-svn-id: http://anonsvn.wireshark.org/wireshark/trunk@29401 f5534014-38df-0310-8fa8-9805f1628bb7
2009-08-13Fix SSL decryption failure if client and server have the same TCP portkukosa1-4/+81
git-svn-id: http://anonsvn.wireshark.org/wireshark/trunk@29400 f5534014-38df-0310-8fa8-9805f1628bb7
2009-08-12fix memoryleak causing crash with long SSL traceskukosa1-12/+33
git-svn-id: http://anonsvn.wireshark.org/wireshark/trunk@29392 f5534014-38df-0310-8fa8-9805f1628bb7
2009-05-31Bring cipher suites in sync.tuexen1-3/+140
git-svn-id: http://anonsvn.wireshark.org/wireshark/trunk@28542 f5534014-38df-0310-8fa8-9805f1628bb7
2009-05-30Add cipher suites defined in RFC 4279.tuexen1-0/+13
git-svn-id: http://anonsvn.wireshark.org/wireshark/trunk@28535 f5534014-38df-0310-8fa8-9805f1628bb7
2009-03-13From Jakub Zawadzki (bug 3331):stig1-4/+2
g_free() is NULL safe, so we don't need check against it. git-svn-id: http://anonsvn.wireshark.org/wireshark/trunk@27718 f5534014-38df-0310-8fa8-9805f1628bb7
2009-02-11- detect TLS 1.2 kukosa1-10/+96
- ciphersuite list updated - list of alerts and extensions updated git-svn-id: http://anonsvn.wireshark.org/wireshark/trunk@27421 f5534014-38df-0310-8fa8-9805f1628bb7
2008-12-20Fix various typos and spelling errors (mostly in text strings)wmeier1-1/+1
git-svn-id: http://anonsvn.wireshark.org/wireshark/trunk@27065 f5534014-38df-0310-8fa8-9805f1628bb7
2008-12-17fix warningkukosa1-1/+2
git-svn-id: http://anonsvn.wireshark.org/wireshark/trunk@27031 f5534014-38df-0310-8fa8-9805f1628bb7
2008-12-17- fix RSA key import for GNUTLS 2.5.x and newerkukosa1-10/+40
- more debug info git-svn-id: http://anonsvn.wireshark.org/wireshark/trunk@27030 f5534014-38df-0310-8fa8-9805f1628bb7
2008-10-10From rmkml: Fix a typo in a comment.gerald1-1/+1
git-svn-id: http://anonsvn.wireshark.org/wireshark/trunk@26401 f5534014-38df-0310-8fa8-9805f1628bb7
2008-09-15Fix for bug 2875:jake1-5/+11
Fix a final eth_fopen -> ws_fopen When configuring with --without-zlib these functions need to have some parameters tagged _U_ git-svn-id: http://anonsvn.wireshark.org/wireshark/trunk@26212 f5534014-38df-0310-8fa8-9805f1628bb7
2008-07-16ssl_hash() needs the StringInfo.data it is passed to be word aligned and it ↵morriss1-7/+17
appears that it is (it is ep_malloc'd in ssl_save_session()). Add an intermediate cast to tell the compiler the alignment is okay and comments explaining the cast and warning anyone who might change how it is allocated to keep it aligned. git-svn-id: http://anonsvn.wireshark.org/wireshark/trunk@25755 f5534014-38df-0310-8fa8-9805f1628bb7
2008-07-09From Paolo Abeni:jake1-66/+96
- the StringInfo allocator may fail when a 0 data length is requested - many wrong values into the cipher_suites table - duplicated code for ssl session state checking before each ssl_generate_keyring_material() call - missing initialization of 'server_data_for_iv.data_len' and 'client_data_for_iv.data_len' in ssl_session_init() From Jaap Keuter: - Some code rationalisation - Gammatical/factual corrections in output and comments - Whitespace cleanup git-svn-id: http://anonsvn.wireshark.org/wireshark/trunk@25684 f5534014-38df-0310-8fa8-9805f1628bb7
2008-05-22Move the file utility functions from wiretap to libwsutil so thatmorriss1-40/+40
libwireshark (and the plugins using those functions) do not depend on wiretap on Windows. While doing that, rename the eth_* functions to ws_*. git-svn-id: http://anonsvn.wireshark.org/wireshark/trunk@25354 f5534014-38df-0310-8fa8-9805f1628bb7
2008-03-01Rewrote to use g_strlcpy and g_strlcat.stig1-4/+4
git-svn-id: http://anonsvn.wireshark.org/wireshark/trunk@24525 f5534014-38df-0310-8fa8-9805f1628bb7
2008-02-11A few minor pedantic fixes ....wmeier1-4/+4
git-svn-id: http://anonsvn.wireshark.org/wireshark/trunk@24301 f5534014-38df-0310-8fa8-9805f1628bb7
2008-02-02Rewrote some prohibited APIs in epan/dissectors/ (sprintf, strcpy, strcat).stig1-4/+4
If we get some truncated strings we probably overwrote some buffers... git-svn-id: http://anonsvn.wireshark.org/wireshark/trunk@24249 f5534014-38df-0310-8fa8-9805f1628bb7
2008-01-24Removed even more C++ style comments.stig1-5/+5
git-svn-id: http://anonsvn.wireshark.org/wireshark/trunk@24186 f5534014-38df-0310-8fa8-9805f1628bb7
2008-01-24Fixed some more malloc -> g_malloc, free -> g_free, strdup -> g_strdup.stig1-5/+5
git-svn-id: http://anonsvn.wireshark.org/wireshark/trunk@24180 f5534014-38df-0310-8fa8-9805f1628bb7
2008-01-13Support for keylists for protocols that use start_tls - where SSL is ↵gal1-7/+13
negotiated at some point during a conversation and cannot be assumed on the basis of the port number alone. Also dissection of Distinguished Names. git-svn-id: http://anonsvn.wireshark.org/wireshark/trunk@24075 f5534014-38df-0310-8fa8-9805f1628bb7
2008-01-03fix warning: mark unused parameterkukosa1-1/+1
git-svn-id: http://anonsvn.wireshark.org/wireshark/trunk@23998 f5534014-38df-0310-8fa8-9805f1628bb7
2008-01-03Fix warnings (seen under linux + GCC 3.4.6)martinm1-3/+4
git-svn-id: http://anonsvn.wireshark.org/wireshark/trunk@23996 f5534014-38df-0310-8fa8-9805f1628bb7
2008-01-03From Ales Kocourekkukosa1-91/+343
- add ability to read server private key from encrypted PKCS#12 file - use 0.0.0.0|any|ANY as a wildcard IP address (e.g. if one certificate is used in more servers) git-svn-id: http://anonsvn.wireshark.org/wireshark/trunk@23995 f5534014-38df-0310-8fa8-9805f1628bb7
2007-11-30- fix warnings in prefs.ckukosa1-3/+6
- do not flush SSL debug output after each message but only once per packet git-svn-id: http://anonsvn.wireshark.org/wireshark/trunk@23680 f5534014-38df-0310-8fa8-9805f1628bb7
2007-11-28Fixes for Windows build w/o ZLIB wmeier1-0/+4
git-svn-id: http://anonsvn.wireshark.org/wireshark/trunk@23651 f5534014-38df-0310-8fa8-9805f1628bb7
2007-11-05Bug 1954 From Mikael Magnusson :sake1-3/+7
This patch updates the DTLS dissector to be compatible with OpenSSL 0.9.8f in the following ways: * Handle both SSL version number 0xfeff (RFC 4347 and OpenSSL 0.9.8f), and 0x100 (Used by OpenSSL 0.9.8e and earlier) * Reassemble fragmented handshake messages. git-svn-id: http://anonsvn.wireshark.org/wireshark/trunk@23369 f5534014-38df-0310-8fa8-9805f1628bb7
2007-10-16Change more fopen() to eth_fopen() to finish fixing bug 1827:morriss1-9/+10
http://bugs.wireshark.org/bugzilla/show_bug.cgi?id=1827 Update README.developer to tell developers not to use fopen() and friends directly. git-svn-id: http://anonsvn.wireshark.org/wireshark/trunk@23206 f5534014-38df-0310-8fa8-9805f1628bb7
2007-10-02review and update list of TLS cipher suiteskukosa1-13/+77
git-svn-id: http://anonsvn.wireshark.org/wireshark/trunk@23047 f5534014-38df-0310-8fa8-9805f1628bb7
2007-09-07Argh! Used the wrong length modifier for size_t.stig1-3/+3
git-svn-id: http://anonsvn.wireshark.org/wireshark/trunk@22822 f5534014-38df-0310-8fa8-9805f1628bb7
2007-09-07Fixed compiler warnings.stig1-4/+4
git-svn-id: http://anonsvn.wireshark.org/wireshark/trunk@22820 f5534014-38df-0310-8fa8-9805f1628bb7
2007-08-25Partial fix for bug 1317:jake1-14/+49
Add Elliptic Curve cypher suites Add extension types git-svn-id: http://anonsvn.wireshark.org/wireshark/trunk@22654 f5534014-38df-0310-8fa8-9805f1628bb7
2007-07-19Change "lenght" to "length" and "decypt" to "decrypt"morriss1-296/+296
git-svn-id: http://anonsvn.wireshark.org/wireshark/trunk@22356 f5534014-38df-0310-8fa8-9805f1628bb7
2007-05-25From Brian Vandenberg:jake1-6/+6
I ran into a problem trying to debug some of my stuff yesterday that depends on the http dissector, and the server I'm working with defaults to ssl traffic; whenever I try to debug it, it always gets hung up on the lines I mentioned in the email quoted below (within the ssl dissector). It seems the culprit is in the use of g_malloc within ssl_data_alloc, and free (instead of g_free) in tls_prf. I've attached the diff for the fixes I made. git-svn-id: http://anonsvn.wireshark.org/wireshark/trunk@21929 f5534014-38df-0310-8fa8-9805f1628bb7
2007-04-23Add some GCC warnings to the standard set, and add some others to theguy1-6/+6
--enable-extra-gcc-checks set. If we turn on -pedantic, try turning on -Wno-long-long as well, so that it's not *so* pedantic that it rejects the 64-bit integral data types that we explicitly require. Constify a bunch of stuff, and make some other changes, to get rid of warnings. Clean up some indentation. git-svn-id: http://anonsvn.wireshark.org/wireshark/trunk@21526 f5534014-38df-0310-8fa8-9805f1628bb7