]> git.ipfire.org Git - thirdparty/gnutls.git/commitdiff
Added debugging message when encounter an invalid ciphersuite.
authorNikos Mavrogiannopoulos <nmav@gnutls.org>
Sat, 17 Mar 2012 13:09:21 +0000 (14:09 +0100)
committerNikos Mavrogiannopoulos <nmav@gnutls.org>
Sat, 17 Mar 2012 13:09:21 +0000 (14:09 +0100)
lib/gnutls_handshake.c

index 3761b17353757e145d0733c1f81e16871ae32ae8..ee6c8763ad261bb022bda0fb2c25dd2b63f9c439 100644 (file)
@@ -1383,6 +1383,7 @@ _gnutls_client_set_ciphersuite (gnutls_session_t session, uint8_t suite[2])
   if (z != 0)
     {
       gnutls_assert ();
+      _gnutls_debug_log("unsupported cipher suite %.2X.%.2X\n", (unsigned int)suite[0], (unsigned int)suite[1]);
       return GNUTLS_E_UNKNOWN_CIPHER_SUITE;
     }
 
@@ -3183,9 +3184,10 @@ _gnutls_remove_unwanted_ciphersuites (gnutls_session_t session,
       if (delete == 0)
         {
 
-          _gnutls_handshake_log ("HSK[%p]: Keeping ciphersuite: %s\n",
+          _gnutls_handshake_log ("HSK[%p]: Keeping ciphersuite: %s (%.2X.%.2X)\n",
                                  session,
-                                 _gnutls_cipher_suite_get_name (&cipher_suites[i]));
+                                 _gnutls_cipher_suite_get_name (&cipher_suites[i]),
+                                 cipher_suites[i], cipher_suites[i+1]);
 
           if (i != new_suites_size)
             memmove( &cipher_suites[new_suites_size], &cipher_suites[i], 2);