1
0
mirror of https://git.libssh.org/projects/libssh.git synced 2025-08-08 19:02:06 +03:00

kex,packet,packet_cb: Reformat

Signed-off-by: Jakub Jelen <jjelen@redhat.com>
Reviewed-by: Andreas Schneider <asn@cryptomilk.org>
This commit is contained in:
Jakub Jelen
2018-11-07 10:34:38 +01:00
committed by Andreas Schneider
parent bf2c7128ab
commit e639c9d0d8
4 changed files with 12 additions and 10 deletions

View File

@@ -428,7 +428,8 @@ out:
return is_wrong; return is_wrong;
} }
SSH_PACKET_CALLBACK(ssh_packet_kexinit){ SSH_PACKET_CALLBACK(ssh_packet_kexinit)
{
int i, ok; int i, ok;
int server_kex = session->server; int server_kex = session->server;
ssh_string str = NULL; ssh_string str = NULL;

View File

@@ -2206,6 +2206,7 @@ ssh_string ssh_srv_pki_do_sign_sessionid(ssh_session session,
if (session == NULL || privkey == NULL || !ssh_key_is_private(privkey)) { if (session == NULL || privkey == NULL || !ssh_key_is_private(privkey)) {
return NULL; return NULL;
} }
crypto = session->next_crypto ? session->next_crypto : crypto = session->next_crypto ? session->next_crypto :
session->current_crypto; session->current_crypto;