From c64ec43eef8ec5a8b8a8f4c4c3216043aea8e08a Mon Sep 17 00:00:00 2001 From: Andreas Schneider Date: Sun, 14 Jul 2013 13:31:24 +0200 Subject: src: Remove enter_function() and leave_function(). --- src/dh.c | 10 +--------- 1 file changed, 1 insertion(+), 9 deletions(-) (limited to 'src/dh.c') diff --git a/src/dh.c b/src/dh.c index 97456cf5..aa01c198 100644 --- a/src/dh.c +++ b/src/dh.c @@ -560,7 +560,7 @@ int dh_build_k(ssh_session session) { int ssh_client_dh_init(ssh_session session){ ssh_string e = NULL; int rc; - enter_function(); + if (buffer_add_u8(session->out_buffer, SSH2_MSG_KEXDH_INIT) < 0) { goto error; } @@ -592,7 +592,6 @@ int ssh_client_dh_init(ssh_session session){ ssh_string_free(e); } - leave_function(); return SSH_ERROR; } @@ -664,8 +663,6 @@ int make_sessionid(ssh_session session) { uint32_t len; int rc = SSH_ERROR; - enter_function(); - buf = ssh_buffer_new(); if (buf == NULL) { return rc; @@ -845,8 +842,6 @@ error: ssh_string_free(str); ssh_string_free(num); - leave_function(); - return rc; } @@ -920,8 +915,6 @@ int generate_session_keys(ssh_session session) { struct ssh_crypto_struct *crypto = session->next_crypto; int rc = -1; - enter_function(); - k_string = make_bignum_string(crypto->k); if (k_string == NULL) { ssh_set_error_oom(session); @@ -1030,7 +1023,6 @@ int generate_session_keys(ssh_session session) { rc = 0; error: ssh_string_free(k_string); - leave_function(); return rc; } -- cgit