summaryrefslogtreecommitdiffstats
path: root/src
diff options
context:
space:
mode:
authorAndreas Schneider <asn@cryptomilk.org>2011-08-26 10:44:43 +0200
committerAndreas Schneider <asn@cryptomilk.org>2011-08-26 10:44:43 +0200
commitab1a66ca7b617e7a367bf6f8b24dccefbb2eb62c (patch)
tree455acd6727f3de1af55fc0c9dfed5929b51bf031 /src
parent7457937bab8553379b470366456ebcdfb76aaf40 (diff)
downloadlibssh-ab1a66ca7b617e7a367bf6f8b24dccefbb2eb62c.tar.gz
libssh-ab1a66ca7b617e7a367bf6f8b24dccefbb2eb62c.tar.xz
libssh-ab1a66ca7b617e7a367bf6f8b24dccefbb2eb62c.zip
pki: Fix build with DEBUG_CRYPTO.
Diffstat (limited to 'src')
-rw-r--r--src/pki_crypto.c8
1 files changed, 4 insertions, 4 deletions
diff --git a/src/pki_crypto.c b/src/pki_crypto.c
index 5ed4010..7140a88 100644
--- a/src/pki_crypto.c
+++ b/src/pki_crypto.c
@@ -599,8 +599,8 @@ ssh_signature pki_signature_from_blob(const ssh_key pubkey,
}
#ifdef DEBUG_CRYPTO
- ssh_print_hexa("r", ssh_string_data(str), 20);
- ssh_print_hexa("s", (unsigned char *)ssh_string_data(rs) + 20, 20);
+ ssh_print_hexa("r", ssh_string_data(sig_blob), 20);
+ ssh_print_hexa("s", (unsigned char *)ssh_string_data(sig_blob) + 20, 20);
#endif
sig->dsa_sig = DSA_SIG_new();
@@ -741,8 +741,8 @@ ssh_signature pki_do_sign(const ssh_key privkey,
}
#ifdef DEBUG_CRYPTO
- ssh_print_bignum("r", sign->dsa_sign->r);
- ssh_print_bignum("s", sign->dsa_sign->s);
+ ssh_print_bignum("r", sig->dsa_sig->r);
+ ssh_print_bignum("s", sig->dsa_sig->s);
#endif
break;