diff options
author | Nikos Mavrogiannopoulos <nmav@redhat.com> | 2017-08-18 10:44:21 +0200 |
---|---|---|
committer | Nikos Mavrogiannopoulos <nmav@redhat.com> | 2017-08-18 10:48:29 +0200 |
commit | 4b3b1abc805829eb028d229987cf37ade6beb791 (patch) | |
tree | fc83efa02f6499d04cb375391e330416101e8d17 /lib | |
parent | bc072aee4d30bf768a4e4b10c2ee3388f417ecb5 (diff) | |
download | gnutls-4b3b1abc805829eb028d229987cf37ade6beb791.tar.gz |
lib: removed legacy debugging codetmp-remove-debugging-code
That code was code from the initial versions of gnutls. It was neither
used nor updated for long time.
Relates #248
Signed-off-by: Nikos Mavrogiannopoulos <nmav@redhat.com>
Diffstat (limited to 'lib')
-rw-r--r-- | lib/extensions.c | 14 | ||||
-rw-r--r-- | lib/handshake.c | 27 |
2 files changed, 0 insertions, 41 deletions
diff --git a/lib/extensions.c b/lib/extensions.c index bd4f933fb7..2f889df3b8 100644 --- a/lib/extensions.c +++ b/lib/extensions.c @@ -203,20 +203,6 @@ _gnutls_parse_extensions(gnutls_session_t session, const extension_entry_st *ext; uint16_t size; -#ifdef DEBUG - int i; - - if (session->security_parameters.entity == GNUTLS_CLIENT) - for (i = 0; i < session->internals.extensions_sent_size; - i++) { - _gnutls_handshake_log - ("EXT[%d]: expecting extension '%s'\n", - session, - gnutls_ext_get_name(session->internals. - extensions_sent - [i])); - } -#endif if (data_size == 0) return 0; diff --git a/lib/handshake.c b/lib/handshake.c index d0e3d497bd..e9b6876b71 100644 --- a/lib/handshake.c +++ b/lib/handshake.c @@ -54,12 +54,6 @@ #include <random.h> #include <dtls.h> -#ifdef HANDSHAKE_DEBUG -#define ERR(x, y) _gnutls_handshake_log("HSK[%p]: %s (%d)\n", session, x,y) -#else -#define ERR(x, y) -#endif - #define TRUE 1 #define FALSE 0 @@ -759,7 +753,6 @@ static int _gnutls_recv_finished(gnutls_session_t session) _gnutls_recv_handshake(session, GNUTLS_HANDSHAKE_FINISHED, 0, &buf); if (ret < 0) { - ERR("recv finished int", ret); gnutls_assert(); return ret; } @@ -2295,7 +2288,6 @@ gnutls_handshake_set_timeout(gnutls_session_t session, unsigned int ms) } \ } \ gnutls_assert(); \ - ERR( str, ret); \ /* do not allow non-fatal errors at this point */ \ if (gnutls_error_is_fatal(ret) == 0) ret = gnutls_assert_val(GNUTLS_E_INTERNAL_ERROR); \ session_invalidate(session); \ @@ -2375,21 +2367,6 @@ static int handshake_client(gnutls_session_t session) { int ret = 0; -#ifdef HANDSHAKE_DEBUG - char buf[64]; - - if (session->internals.resumed_security_parameters. - session_id_size > 0) - _gnutls_handshake_log("HSK[%p]: Ask to resume: %s\n", - session, - _gnutls_bin2hex(session->internals. - resumed_security_parameters. - session_id, - session->internals. - resumed_security_parameters. - session_id_size, buf, - sizeof(buf), NULL)); -#endif switch (STATE) { case STATE0: case STATE1: @@ -2655,7 +2632,6 @@ static int send_handshake_final(gnutls_session_t session, int init) FINAL_STATE = STATE0; if (ret < 0) { - ERR("send ChangeCipherSpec", ret); gnutls_assert(); return ret; } @@ -2681,7 +2657,6 @@ static int send_handshake_final(gnutls_session_t session, int init) ret = _gnutls_send_finished(session, FAGAIN(STATE2)); FINAL_STATE = STATE2; if (ret < 0) { - ERR("send Finished", ret); gnutls_assert(); return ret; } @@ -2739,7 +2714,6 @@ static int recv_handshake_final(gnutls_session_t session, int init) _gnutls_recv_int(session, GNUTLS_CHANGE_CIPHER_SPEC, ccs, ccs_len, NULL, tleft); if (ret <= 0) { - ERR("recv ChangeCipherSpec", ret); gnutls_assert(); return (ret<0)?ret:GNUTLS_E_UNEXPECTED_PACKET; } @@ -2775,7 +2749,6 @@ static int recv_handshake_final(gnutls_session_t session, int init) ret = _gnutls_recv_finished(session); if (ret < 0) { - ERR("recv finished", ret); gnutls_assert(); return ret; } |