Fix security risk in pairing process w/ add device name for OTP pair

This commit is contained in:
Yukino Song
2024-08-28 23:52:02 +08:00
parent 096e8ac62f
commit 36b1a15676
4 changed files with 37 additions and 17 deletions
+1 -1
View File
@@ -67,7 +67,7 @@ namespace nvhttp {
bool
pin(std::string pin, std::string name);
std::string request_otp(const std::string& passphrase);
std::string request_otp(const std::string& passphrase, const std::string& deviceName);
/**
* @brief Remove single client.