summaryrefslogtreecommitdiff
path: root/lib/gnutls_v2_compat.c
diff options
context:
space:
mode:
Diffstat (limited to 'lib/gnutls_v2_compat.c')
-rw-r--r--lib/gnutls_v2_compat.c16
1 files changed, 8 insertions, 8 deletions
diff --git a/lib/gnutls_v2_compat.c b/lib/gnutls_v2_compat.c
index 97fc2dc09b..9099659387 100644
--- a/lib/gnutls_v2_compat.c
+++ b/lib/gnutls_v2_compat.c
@@ -48,17 +48,17 @@ static int SelectSuite_v2(GNUTLS_STATE state, opaque ret[2], char *data,
x = _gnutls_remove_unwanted_ciphersuites( state, &ciphers, x);
#ifdef HANDSHAKE_DEBUG
- fprintf(stderr, "Requested cipher suites: \n");
+ _gnutls_log( "Requested cipher suites: \n");
for (j = 0; j < datalen; j += 3) {
if (data[j] == 0) { /* only print if in v2 compat mode */
- fprintf(stderr, "\t%s\n",
+ _gnutls_log( "\t%s\n",
_gnutls_cipher_suite_get_name(*
((GNUTLS_CipherSuite *) & data[j+1])));
}
}
- fprintf(stderr, "Supported cipher suites: \n");
+ _gnutls_log( "Supported cipher suites: \n");
for (j = 0; j < x; j++)
- fprintf(stderr, "\t%s\n",
+ _gnutls_log( "\t%s\n",
_gnutls_cipher_suite_get_name(ciphers[j]));
#endif
memset(ret, '\0', 2);
@@ -69,9 +69,9 @@ static int SelectSuite_v2(GNUTLS_STATE state, opaque ret[2], char *data,
if ( memcmp(ciphers[i].CipherSuite, &data[j+1],
2) == 0) {
#ifdef HANDSHAKE_DEBUG
- fprintf(stderr,
+ _gnutls_log(
"Selected cipher suite: ");
- fprintf(stderr, "%s\n",
+ _gnutls_log( "%s\n",
_gnutls_cipher_suite_get_name
(*
((GNUTLS_CipherSuite *) &
@@ -118,7 +118,7 @@ int _gnutls_read_client_hello_v2(GNUTLS_STATE state, opaque * data,
DECR_LEN(len, 2);
#ifdef HANDSHAKE_DEBUG
- fprintf(stderr, "V2 Handshake: Client's version: %d.%d\n", data[pos],
+ _gnutls_log( "V2 Handshake: Client's version: %d.%d\n", data[pos],
data[pos + 1]);
#endif
@@ -196,7 +196,7 @@ int _gnutls_read_client_hello_v2(GNUTLS_STATE state, opaque * data,
current_cipher_suite));
if (state->gnutls_internals.auth_struct == NULL) {
#ifdef HANDSHAKE_DEBUG
- fprintf(stderr,
+ _gnutls_log(
"V2 Handshake: Cannot find the appropriate handler for the KX algorithm\n");
#endif
gnutls_assert();