aboutsummaryrefslogtreecommitdiffstats
path: root/epan/dissectors/packet-ssl-utils.c
AgeCommit message (Collapse)AuthorFilesLines
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
2007-04-16move string tables from packet-ssl-utils.h to packet-ssl-utils.c and export themkukosa1-0/+397
git-svn-id: http://anonsvn.wireshark.org/wireshark/trunk@21445 f5534014-38df-0310-8fa8-9805f1628bb7
2007-04-11make packet-ssl-utils.c compileable without GnuTLSkukosa1-10/+15
git-svn-id: http://anonsvn.wireshark.org/wireshark/trunk@21381 f5534014-38df-0310-8fa8-9805f1628bb7
2007-04-10fix another warninglego1-1/+1
git-svn-id: http://anonsvn.wireshark.org/wireshark/trunk@21374 f5534014-38df-0310-8fa8-9805f1628bb7
2007-04-10fix a number of warnings, and type of ssl_decrypt_record when HAVE_LIBGNUTLS ↵richardv1-8/+8
is not defined. git-svn-id: http://anonsvn.wireshark.org/wireshark/trunk@21371 f5534014-38df-0310-8fa8-9805f1628bb7
2007-04-10remove dependency on zlib.hrichardv1-0/+13
git-svn-id: http://anonsvn.wireshark.org/wireshark/trunk@21370 f5534014-38df-0310-8fa8-9805f1628bb7
2007-04-10- SSL desegmentation supportkukosa1-34/+195
- SSL DEFLATE compression method support (RFC3749) - fix for Bugzilla Bug 1515: SSL bug with mutual authentication git-svn-id: http://anonsvn.wireshark.org/wireshark/trunk@21368 f5534014-38df-0310-8fa8-9805f1628bb7
2007-01-12prepare SSL dissector for similar desegmentation as is in the TCP as current ↵kukosa1-0/+50
one does not work well in many cases git-svn-id: http://anonsvn.wireshark.org/wireshark/trunk@20405 f5534014-38df-0310-8fa8-9805f1628bb7
2007-01-04fix compilation without GnuTLSkukosa1-1/+8
git-svn-id: http://anonsvn.wireshark.org/wireshark/trunk@20305 f5534014-38df-0310-8fa8-9805f1628bb7
2007-01-04- new ssl_set_master_secret() which can set master secret (and optionally ↵kukosa1-2/+11
other parameters) into SSL dissector from external source, e.g. private 'trace protocol' dissector - call 'data' subdissector for decrypted data in real dissector is not found git-svn-id: http://anonsvn.wireshark.org/wireshark/trunk@20300 f5534014-38df-0310-8fa8-9805f1628bb7
2006-12-28debug improvementskukosa1-9/+18
git-svn-id: http://anonsvn.wireshark.org/wireshark/trunk@20230 f5534014-38df-0310-8fa8-9805f1628bb7
2006-12-11SSL keys configuration can be read from filekukosa1-6/+6
git-svn-id: http://anonsvn.wireshark.org/wireshark/trunk@20108 f5534014-38df-0310-8fa8-9805f1628bb7
2006-08-29get rid of few warningskukosa1-1/+1
git-svn-id: http://anonsvn.wireshark.org/wireshark/trunk@19072 f5534014-38df-0310-8fa8-9805f1628bb7
2006-08-28- new function ssl_dissector_delete()kukosa1-0/+1
- register H.225.0 over TLS (configurable port 1300) - register SIP over TLS (fixed port 5061) - new function proto_tree_get_root() git-svn-id: http://anonsvn.wireshark.org/wireshark/trunk@19059 f5534014-38df-0310-8fa8-9805f1628bb7
2006-08-25new ssl_dissector_add() function which can be called from another dissectors ↵kukosa1-39/+34
(similar to dissector_add()) git-svn-id: http://anonsvn.wireshark.org/wireshark/trunk@19026 f5534014-38df-0310-8fa8-9805f1628bb7
2006-08-10GnuTLS/libgcrypt initialization moved to epan.ckukosa1-1/+0
git-svn-id: http://anonsvn.wireshark.org/wireshark/trunk@18863 f5534014-38df-0310-8fa8-9805f1628bb7
2006-08-02from a. samuelsahlberg1-105/+474
ssl and dtls updates git-svn-id: http://anonsvn.wireshark.org/wireshark/trunk@18816 f5534014-38df-0310-8fa8-9805f1628bb7
2006-07-01Use #if 0/#endif, not commenting out, to remove a routine, so we don'tguy1-9/+11
have to worry about comments in the routine. Fix up indentation a bit. git-svn-id: http://anonsvn.wireshark.org/wireshark/trunk@18623 f5534014-38df-0310-8fa8-9805f1628bb7
2006-06-27from Authesserre Samuelsahlberg1-7/+98
SSL updates and DTLS support git-svn-id: http://anonsvn.wireshark.org/wireshark/trunk@18582 f5534014-38df-0310-8fa8-9805f1628bb7