summaryrefslogtreecommitdiffhomepage
path: root/ecdsa.c
diff options
context:
space:
mode:
authorMatt Johnston <matt@ucc.asn.au>2013-11-12 23:02:32 +0800
committerMatt Johnston <matt@ucc.asn.au>2013-11-12 23:02:32 +0800
commite60a84d0ed81365a4ac24f06d574b7accb6ab2bd (patch)
tree87045d7ef102f381be34e53940b32438d3599e77 /ecdsa.c
parentf025277147104ae0de018ab139a6ece9709ebdde (diff)
Various cleanups and fixes for warnings
--HG-- branch : ecc
Diffstat (limited to 'ecdsa.c')
-rw-r--r--ecdsa.c6
1 files changed, 3 insertions, 3 deletions
diff --git a/ecdsa.c b/ecdsa.c
index fc8ea1f..eddbf13 100644
--- a/ecdsa.c
+++ b/ecdsa.c
@@ -246,8 +246,8 @@ out:
// returns values in s and r
// returns DROPBEAR_SUCCESS or DROPBEAR_FAILURE
-static int buf_get_ecdsa_verify_params(buffer *buf, struct dropbear_ecc_curve *curve,
- void *r, void* s) {
+static int buf_get_ecdsa_verify_params(buffer *buf,
+ void *r, void* s) {
int ret = DROPBEAR_FAILURE;
unsigned int sig_len;
unsigned int sig_pos;
@@ -302,7 +302,7 @@ int buf_ecdsa_verify(buffer *buf, ecc_key *key, buffer *data_buf) {
dropbear_exit("ECC error");
}
- if (buf_get_ecdsa_verify_params(buf, curve, r, s) != DROPBEAR_SUCCESS) {
+ if (buf_get_ecdsa_verify_params(buf, r, s) != DROPBEAR_SUCCESS) {
goto out;
}