summaryrefslogtreecommitdiffstats
path: root/src/dh.c
diff options
context:
space:
mode:
authorAndreas Schneider <asn@cryptomilk.org>2013-07-14 13:31:24 +0200
committerAndreas Schneider <asn@cryptomilk.org>2013-07-14 13:31:24 +0200
commitc64ec43eef8ec5a8b8a8f4c4c3216043aea8e08a (patch)
tree33131e402f35d800cf923f837ae4c72166703b27 /src/dh.c
parent0d3deeec101b0d6568d7c04eda833bde47c7329c (diff)
src: Remove enter_function() and leave_function().
Diffstat (limited to 'src/dh.c')
-rw-r--r--src/dh.c10
1 files changed, 1 insertions, 9 deletions
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;
}