aboutsummaryrefslogtreecommitdiff
path: root/libssh/keys.c
diff options
context:
space:
mode:
Diffstat (limited to 'libssh/keys.c')
-rw-r--r--libssh/keys.c16
1 files changed, 8 insertions, 8 deletions
diff --git a/libssh/keys.c b/libssh/keys.c
index 5552e549..1414be01 100644
--- a/libssh/keys.c
+++ b/libssh/keys.c
@@ -132,9 +132,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);
@@ -208,8 +208,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);
@@ -985,8 +985,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);
@@ -1035,7 +1035,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