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-19 22:01:28 +0200
commitd4accfc130fe4787f20b8ab1152a70157d45c90a (patch)
tree3e94b25be25a8d1a4786b98f4de8e8c9fc40a4dc
parent73e09106f807c252bab2135b715a23fae4090bf5 (diff)
downloadlibssh-d4accfc130fe4787f20b8ab1152a70157d45c90a.tar.gz
libssh-d4accfc130fe4787f20b8ab1152a70157d45c90a.tar.xz
libssh-d4accfc130fe4787f20b8ab1152a70157d45c90a.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);