aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorAndreas Schneider <asn@cryptomilk.org>2018-10-01 19:13:30 +0200
committerAndreas Schneider <asn@cryptomilk.org>2018-10-24 09:48:35 +0200
commitf8b70d6a73171ecc43b73f5b1f3e7da09ba942d7 (patch)
treea020fd2106886772fe52156a654b336b36dc74ec
parent74888a6fa44fcd4d960e8298b5fb129627d6c9cc (diff)
downloadlibssh-f8b70d6a73171ecc43b73f5b1f3e7da09ba942d7.tar.gz
libssh-f8b70d6a73171ecc43b73f5b1f3e7da09ba942d7.tar.xz
libssh-f8b70d6a73171ecc43b73f5b1f3e7da09ba942d7.zip
pki_crypto: Mark iqmp as unused
Signed-off-by: Andreas Schneider <asn@cryptomilk.org>
-rw-r--r--include/libssh/priv.h2
-rw-r--r--src/pki_crypto.c1
2 files changed, 3 insertions, 0 deletions
diff --git a/include/libssh/priv.h b/include/libssh/priv.h
index e5ba96fe..01659411 100644
--- a/include/libssh/priv.h
+++ b/include/libssh/priv.h
@@ -302,6 +302,8 @@ int ssh_connector_remove_event(ssh_connector connector);
void explicit_bzero(void *s, size_t n);
#endif /* !HAVE_EXPLICIT_BZERO */
+#define UNUSED(x) (void)(x)
+
/**
* This is a hack to fix warnings. The idea is to use this everywhere that we
* get the "discarding const" warning by the compiler. That doesn't actually
diff --git a/src/pki_crypto.c b/src/pki_crypto.c
index c36425d7..3775d123 100644
--- a/src/pki_crypto.c
+++ b/src/pki_crypto.c
@@ -1053,6 +1053,7 @@ int pki_privkey_build_rsa(ssh_key key,
bn = ssh_make_string_bn(n);
be = ssh_make_string_bn(e);
bd = ssh_make_string_bn(d);
+ UNUSED(iqmp);
/*biqmp = ssh_make_string_bn(iqmp);*/
bp = ssh_make_string_bn(p);
bq = ssh_make_string_bn(q);