Reformatting.
This commit is contained in:
@@ -21,15 +21,12 @@ along with this program. If not, see <https://www.gnu.org/licenses/>.
|
||||
|
||||
using namespace std;
|
||||
|
||||
U2F_Ping_CMD::U2F_Ping_CMD(const U2FMessage& uMsg)
|
||||
: nonce{ uMsg.data }
|
||||
{
|
||||
U2F_Ping_CMD::U2F_Ping_CMD(const U2FMessage& uMsg) : nonce{ uMsg.data } {
|
||||
if (uMsg.cmd != U2FHID_PING)
|
||||
throw runtime_error{ "Failed to get U2F ping message" };
|
||||
}
|
||||
|
||||
void U2F_Ping_CMD::respond(const uint32_t channelID) const
|
||||
{
|
||||
void U2F_Ping_CMD::respond(const uint32_t channelID) const {
|
||||
U2FMessage msg{};
|
||||
msg.cid = channelID;
|
||||
msg.cmd = U2FHID_PING;
|
||||
|
||||
Reference in New Issue
Block a user