diff options
| author | Adam Ierymenko <adam.ierymenko@zerotier.com> | 2013-08-26 17:22:20 -0400 |
|---|---|---|
| committer | Adam Ierymenko <adam.ierymenko@zerotier.com> | 2013-08-26 17:22:20 -0400 |
| commit | 487eb17ec075dd2bdc91f78b41577b070d90f8f5 (patch) | |
| tree | 1dccfa3836a48cf917934fe5dd01210d9d60d236 /node/EllipticCurveKeyPair.cpp | |
| parent | 9f16707b0b8ec62de67394bf4884408eb65f2a7a (diff) | |
| download | infinitytier-487eb17ec075dd2bdc91f78b41577b070d90f8f5.tar.gz infinitytier-487eb17ec075dd2bdc91f78b41577b070d90f8f5.zip | |
ZeroTierOne for Windows binary project, builds and runs and mostly works but still some issues with tap.
Diffstat (limited to 'node/EllipticCurveKeyPair.cpp')
| -rw-r--r-- | node/EllipticCurveKeyPair.cpp | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/node/EllipticCurveKeyPair.cpp b/node/EllipticCurveKeyPair.cpp index 047b2b4f..dd95d9a7 100644 --- a/node/EllipticCurveKeyPair.cpp +++ b/node/EllipticCurveKeyPair.cpp @@ -153,7 +153,7 @@ bool EllipticCurveKeyPair::generate() } memset(_priv._key,0,sizeof(_priv._key)); - len = BN_num_bytes(EC_KEY_get0_private_key(key)); + len = (int)BN_num_bytes(EC_KEY_get0_private_key(key)); if ((len > ZT_EC_PRIME_BYTES)||(len < 0)) { EC_KEY_free(key); return false; @@ -162,7 +162,7 @@ bool EllipticCurveKeyPair::generate() _priv._bytes = ZT_EC_PRIME_BYTES; memset(_pub._key,0,sizeof(_pub._key)); - len = EC_POINT_point2oct(ZT_EC_GROUP.g,EC_KEY_get0_public_key(key),POINT_CONVERSION_COMPRESSED,_pub._key,sizeof(_pub._key),0); + len = (int)EC_POINT_point2oct(ZT_EC_GROUP.g,EC_KEY_get0_public_key(key),POINT_CONVERSION_COMPRESSED,_pub._key,sizeof(_pub._key),0); if (len != ZT_EC_PUBLIC_KEY_BYTES) { EC_KEY_free(key); return false; |
