1
0
mirror of https://git.libssh.org/projects/libssh.git synced 2025-11-30 13:01:23 +03:00

src: Remove enter_function() and leave_function().

This commit is contained in:
Andreas Schneider
2013-07-14 13:31:24 +02:00
parent 0d3deeec10
commit c64ec43eef
22 changed files with 267 additions and 494 deletions

View File

@@ -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;
}