diff options
author | Jack Lloyd <[email protected]> | 2016-10-24 14:02:51 -0400 |
---|---|---|
committer | Jack Lloyd <[email protected]> | 2016-10-24 14:02:51 -0400 |
commit | a7d2b849cdbe036e32f4f52436fbef748f0d94a7 (patch) | |
tree | 41ae5923da48e422e47caef87fbfaf4a51c07ef0 /src/lib/tls/msg_client_kex.cpp | |
parent | 3d50fc67c83a58bf4261df441284db84bd1fda7b (diff) |
Fixes for build without 25519
Diffstat (limited to 'src/lib/tls/msg_client_kex.cpp')
-rw-r--r-- | src/lib/tls/msg_client_kex.cpp | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/src/lib/tls/msg_client_kex.cpp b/src/lib/tls/msg_client_kex.cpp index 81b01a704..6dc8295a6 100644 --- a/src/lib/tls/msg_client_kex.cpp +++ b/src/lib/tls/msg_client_kex.cpp @@ -169,12 +169,12 @@ Client_Key_Exchange::Client_Key_Exchange(Handshake_IO& io, Curve25519_PrivateKey priv_key(rng); PK_Key_Agreement ka(priv_key, rng, "Raw"); ecdh_secret = ka.derive_key(0, counterparty_key.public_value()).bits_of(); -#else - throw Internal_Error("Negotiated X25519 somehow, but it is disabled"); -#endif // X25519 is always compressed but sent as "uncompressed" in TLS our_ecdh_public = priv_key.public_value(); +#else + throw Internal_Error("Negotiated X25519 somehow, but it is disabled"); +#endif } else { |