]> git.ipfire.org Git - thirdparty/tor.git/commitdiff
Add a cast to make clang happier.
authorNick Mathewson <nickm@torproject.org>
Thu, 2 Aug 2018 12:36:24 +0000 (08:36 -0400)
committerNick Mathewson <nickm@torproject.org>
Thu, 2 Aug 2018 12:36:24 +0000 (08:36 -0400)
src/lib/crypt_ops/crypto_dh_nss.c

index 647dfb4e577e692d3615ed52887ef6cff193cec7..9a14b809b49ad6087254379aad8a5619c62efa1e 100644 (file)
@@ -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,