rename enroll -> pair

This commit is contained in:
Patrick Nicolas
2024-11-26 23:59:35 +01:00
parent 967f48700b
commit 954b5a7038
11 changed files with 66 additions and 65 deletions
+2 -2
View File
@@ -127,7 +127,7 @@ void wivrn_session::handshake(T address, bool tcp_only, crypto::key & headset_ke
pin = pin_enter(control.get_fd());
[[fallthrough]];
case to_headset::crypto_handshake::crypto_state::client_already_known: {
case to_headset::crypto_handshake::crypto_state::client_already_paired: {
spdlog::info("Using pin \"{}\"", pin);
crypto::key server_key = crypto::key::from_public_key(crypto_handshake.public_key);
@@ -149,7 +149,7 @@ void wivrn_session::handshake(T address, bool tcp_only, crypto::key & headset_ke
break;
}
case to_headset::crypto_handshake::crypto_state::enroll_disabled:
case to_headset::crypto_handshake::crypto_state::pairing_disabled:
spdlog::info("Pairing is disabled on server");
throw std::runtime_error(_("Pairing is disabled on server"));
}