summaryrefslogtreecommitdiff
path: root/src/tools
diff options
context:
space:
mode:
authorYawning Angel <yawning@schwanenlied.me>2016-06-24 22:20:41 +0000
committerYawning Angel <yawning@schwanenlied.me>2016-06-24 22:20:41 +0000
commit0116eae59a35e4303ca179d6b0fb0302a83e87a1 (patch)
treedf5a1f142c9aa1745a13dd7f0dcebcb9c8e6f5a0 /src/tools
parent421a7c8c35064993cf4ce344e4b0fab06e7df3a4 (diff)
downloadtor-0116eae59a35e4303ca179d6b0fb0302a83e87a1.tar.gz
tor-0116eae59a35e4303ca179d6b0fb0302a83e87a1.zip
Bug19499: Fix GCC warnings when building against bleeding edge OpenSSL.
The previous version of the new accessors didn't specify const but it was changed in master.
Diffstat (limited to 'src/tools')
-rw-r--r--src/tools/tor-checkkey.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/src/tools/tor-checkkey.c b/src/tools/tor-checkkey.c
index 8e957c2540..3e16fd0336 100644
--- a/src/tools/tor-checkkey.c
+++ b/src/tools/tor-checkkey.c
@@ -72,9 +72,9 @@ main(int c, char **v)
} else {
rsa = crypto_pk_get_rsa_(env);
- BIGNUM *rsa_n;
+ const BIGNUM *rsa_n;
#ifdef OPENSSL_1_1_API
- BIGNUM *rsa_e, *rsa_d;
+ const BIGNUM *rsa_e, *rsa_d;
RSA_get0_key(rsa, &rsa_n, &rsa_e, &rsa_d);
#else
rsa_n = rsa->n;