summaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
authorNick Mathewson <nickm@torproject.org>2018-08-02 08:36:24 -0400
committerNick Mathewson <nickm@torproject.org>2018-08-02 08:36:24 -0400
commitb590cc0449e1432a36e61bf259e92c679c8f5b6d (patch)
tree688fa86e34dbec9b476565d554b899641e4a57ae /src
parenta4c0a0e81eb3616d7d66806e9ac8ea7c8d3bf439 (diff)
downloadtor-b590cc0449e1432a36e61bf259e92c679c8f5b6d.tar.gz
tor-b590cc0449e1432a36e61bf259e92c679c8f5b6d.zip
Add a cast to make clang happier.
Diffstat (limited to 'src')
-rw-r--r--src/lib/crypt_ops/crypto_dh_nss.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/lib/crypt_ops/crypto_dh_nss.c b/src/lib/crypt_ops/crypto_dh_nss.c
index 647dfb4e57..9a14b809b4 100644
--- a/src/lib/crypt_ops/crypto_dh_nss.c
+++ b/src/lib/crypt_ops/crypto_dh_nss.c
@@ -174,7 +174,7 @@ crypto_dh_handshake(int severity, crypto_dh_t *dh,
peer_key.u.dh.base.data = dh_generator_data;
peer_key.u.dh.base.len = 1;
peer_key.u.dh.publicValue.data = (unsigned char *)pubkey;
- peer_key.u.dh.publicValue.len = pubkey_len;
+ peer_key.u.dh.publicValue.len = (int) pubkey_len;
PK11SymKey *sym = PK11_PubDerive(dh->seckey, &peer_key,
PR_FALSE, NULL, NULL, CKM_DH_PKCS_DERIVE,