[Author Prev][Author Next][Thread Prev][Thread Next][Author Index][Thread Index]

[tor-commits] [tor/master] Add a cast to make clang happier.



commit b590cc0449e1432a36e61bf259e92c679c8f5b6d
Author: Nick Mathewson <nickm@xxxxxxxxxxxxxx>
Date:   Thu Aug 2 08:36:24 2018 -0400

    Add a cast to make clang happier.
---
 src/lib/crypt_ops/crypto_dh_nss.c | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/src/lib/crypt_ops/crypto_dh_nss.c b/src/lib/crypt_ops/crypto_dh_nss.c
index 647dfb4e5..9a14b809b 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,



_______________________________________________
tor-commits mailing list
tor-commits@xxxxxxxxxxxxxxxxxxxx
https://lists.torproject.org/cgi-bin/mailman/listinfo/tor-commits