* Version 2.11.5 (unreleased)
+** gnutls-cli: Print channel binding only in verbose mode.
+Before it printed it after the 'Compression:' output, thus breaking
+Emacs starttls.el string searches.
+
** API and ABI modifications:
No changes since last version.
printf ("- Session ID: %s\n", raw_to_string (id, id_size));
}
- {
- gnutls_datum cb;
- int rc;
+ if (verbose)
+ {
+ gnutls_datum cb;
+ int rc;
- rc = gnutls_session_channel_binding (session, GNUTLS_CB_TLS_UNIQUE, &cb);
- if (rc)
+ rc = gnutls_session_channel_binding (session, GNUTLS_CB_TLS_UNIQUE, &cb);
+ if (rc)
fprintf (stderr, "Channel binding error: %s\n", gnutls_strerror (rc));
- else
- {
- size_t i;
+ else
+ {
+ size_t i;
- printf ("- Channel binding 'tls-unique': ");
- for (i = 0; i < cb.size; i++)
- printf ("%02x", cb.data[i]);
- printf ("\n");
- }
- }
+ printf ("- Channel binding 'tls-unique': ");
+ for (i = 0; i < cb.size; i++)
+ printf ("%02x", cb.data[i]);
+ printf ("\n");
+ }
+ }
+
+ /* Warning: Do not print anything more here. The 'Compression:'
+ output MUST be the last non-verbose output. This is used by
+ Emacs starttls.el code. */
fflush (stdout);