mirror of
https://git.libssh.org/projects/libssh.git
synced 2026-02-04 12:20:42 +09:00
Fix missing string_data() in crypto debug code
This commit is contained in:
@@ -487,8 +487,8 @@ static int build_session_id1(ssh_session session, ssh_string servern,
|
||||
}
|
||||
|
||||
#ifdef DEBUG_CRYPTO
|
||||
ssh_print_hexa("host modulus",hostn->string,string_len(hostn));
|
||||
ssh_print_hexa("server modulus",servern->string,string_len(servern));
|
||||
ssh_print_hexa("host modulus",string_data(hostn),string_len(hostn));
|
||||
ssh_print_hexa("server modulus",string_data(servern),string_len(servern));
|
||||
#endif
|
||||
md5_update(md5,string_data(hostn),string_len(hostn));
|
||||
md5_update(md5,string_data(servern),string_len(servern));
|
||||
|
||||
@@ -130,9 +130,9 @@ ssh_public_key publickey_make_dss(ssh_session session, ssh_buffer buffer) {
|
||||
#endif /* HAVE_LIBCRYPTO */
|
||||
|
||||
#ifdef DEBUG_CRYPTO
|
||||
ssh_print_hexa("p", p->string, string_len(p));
|
||||
ssh_print_hexa("q", q->string, string_len(q));
|
||||
ssh_print_hexa("g", g->string, string_len(g));
|
||||
ssh_print_hexa("p", string_data(p), string_len(p));
|
||||
ssh_print_hexa("q", string_data(q), string_len(q));
|
||||
ssh_print_hexa("g", string_data(g), string_len(g));
|
||||
#endif
|
||||
|
||||
string_burn(p);
|
||||
@@ -206,8 +206,8 @@ ssh_public_key publickey_make_rsa(ssh_session session, ssh_buffer buffer,
|
||||
#endif
|
||||
|
||||
#ifdef DEBUG_CRYPTO
|
||||
ssh_print_hexa("e", e->string, string_len(e));
|
||||
ssh_print_hexa("n", n->string, string_len(n));
|
||||
ssh_print_hexa("e", string_data(e), string_len(e));
|
||||
ssh_print_hexa("n", string_data(n), string_len(n));
|
||||
#endif
|
||||
|
||||
string_burn(e);
|
||||
@@ -974,8 +974,8 @@ SIGNATURE *signature_from_string(ssh_session session, ssh_string signature,
|
||||
#endif
|
||||
|
||||
#ifdef DEBUG_CRYPTO
|
||||
ssh_print_hexa("r", rs->string, 20);
|
||||
ssh_print_hexa("s", rs->string + 20, 20);
|
||||
ssh_print_hexa("r", string_data(rs), 20);
|
||||
ssh_print_hexa("s", (const unsigned char *)string_data(rs) + 20, 20);
|
||||
#endif
|
||||
string_free(rs);
|
||||
|
||||
@@ -1024,7 +1024,7 @@ SIGNATURE *signature_from_string(ssh_session session, ssh_string signature,
|
||||
|
||||
#ifdef DEBUG_CRYPTO
|
||||
ssh_log(session, SSH_LOG_FUNCTIONS, "len e: %d", len);
|
||||
ssh_print_hexa("RSA signature", e->string, len);
|
||||
ssh_print_hexa("RSA signature", string_data(e), len);
|
||||
#endif
|
||||
|
||||
#ifdef HAVE_LIBGCRYPT
|
||||
|
||||
Reference in New Issue
Block a user