aboutsummaryrefslogtreecommitdiff
path: root/shard/lib/net
diff options
context:
space:
mode:
authorAlex Auvolat <alex@adnab.me>2018-09-26 14:37:10 +0200
committerAlex Auvolat <alex@adnab.me>2018-09-26 14:44:29 +0200
commitf16973d3a492ae6d4890c40d77b0a93d3293bf3a (patch)
tree36a38ec318ed9d0f87d28d508169271729b8507a /shard/lib/net
parent1df3aa74a6870f276bead1ed5650f0d86355ce09 (diff)
downloadshard-f16973d3a492ae6d4890c40d77b0a93d3293bf3a.tar.gz
shard-f16973d3a492ae6d4890c40d77b0a93d3293bf3a.zip
Signing and stuff
Diffstat (limited to 'shard/lib/net')
-rw-r--r--shard/lib/net/tcpconn.ex2
1 files changed, 1 insertions, 1 deletions
diff --git a/shard/lib/net/tcpconn.ex b/shard/lib/net/tcpconn.ex
index 35f7ea5..543341a 100644
--- a/shard/lib/net/tcpconn.ex
+++ b/shard/lib/net/tcpconn.ex
@@ -20,7 +20,7 @@ defmodule SNet.TCPConn do
def handle_cast(:handshake, state) do
socket = state.socket
- {srv_pkey, srv_skey} = Shard.Identity.get_keypair
+ {srv_pkey, srv_skey} = Shard.Keys.get_peer_keypair
{:ok, sess_pkey, sess_skey} = Box.keypair
{:ok, challenge} = Salty.Random.buf 32