mirror of
https://github.com/zerotier/ZeroTierOne.git
synced 2025-06-09 05:53:44 +02:00
stashed edit
This commit is contained in:
parent
b115abb659
commit
ab7b9c9876
1 changed files with 3 additions and 3 deletions
|
@ -227,15 +227,15 @@ impl<Layer: ApplicationLayer> Session<Layer> {
|
||||||
host: &Layer,
|
host: &Layer,
|
||||||
mut send: SendFunction,
|
mut send: SendFunction,
|
||||||
local_session_id: SessionId,
|
local_session_id: SessionId,
|
||||||
remote_s_public_raw: &[u8],
|
remote_s_public_blob_raw: &[u8],
|
||||||
offer_metadata: &[u8],
|
offer_metadata: &[u8],
|
||||||
psk: &Secret<64>,
|
psk: &Secret<64>,
|
||||||
user_data: Layer::SessionUserData,
|
user_data: Layer::SessionUserData,
|
||||||
mtu: usize,
|
mtu: usize,
|
||||||
current_time: i64,
|
current_time: i64,
|
||||||
) -> Result<Self, Error> {
|
) -> Result<Self, Error> {
|
||||||
let bob_s_public_raw = remote_s_public_raw;
|
let bob_s_public_blob_raw = remote_s_public_blob_raw;
|
||||||
if let Some(bob_s_public) = Layer::extract_s_public_from_raw(bob_s_public_raw) {
|
if let Some(bob_s_public) = Layer::extract_s_public_from_raw(bob_s_public_blob_raw) {
|
||||||
if let Some(noise_ss) = host.get_local_s_keypair().agree(&bob_s_public) {
|
if let Some(noise_ss) = host.get_local_s_keypair().agree(&bob_s_public) {
|
||||||
let send_counter = Counter::new();
|
let send_counter = Counter::new();
|
||||||
let bob_s_public_hash = SHA384::hash(bob_s_public_raw);
|
let bob_s_public_hash = SHA384::hash(bob_s_public_raw);
|
||||||
|
|
Loading…
Add table
Reference in a new issue