Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Replace USB-CCID (smartcard) by USB-HID
Remove PCSC dependencies which is a bit hard (not user friendly) to install on linux and Mac Split Ledger logic and device IO
- Loading branch information
Showing
13 changed files
with
624 additions
and
252 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,46 @@ | ||
# - try to find HIDAPI library | ||
# from http://www.signal11.us/oss/hidapi/ | ||
# | ||
# Cache Variables: (probably not for direct use in your scripts) | ||
# HIDAPI_INCLUDE_DIR | ||
# HIDAPI_LIBRARY | ||
# | ||
# Non-cache variables you might use in your CMakeLists.txt: | ||
# HIDAPI_FOUND | ||
# HIDAPI_INCLUDE_DIRS | ||
# HIDAPI_LIBRARIES | ||
# | ||
# Requires these CMake modules: | ||
# FindPackageHandleStandardArgs (known included with CMake >=2.6.2) | ||
# | ||
# Original Author: | ||
# 2009-2010 Ryan Pavlik <rpavlik@iastate.edu> <abiryan@ryand.net> | ||
# http://academic.cleardefinition.com | ||
# Iowa State University HCI Graduate Program/VRAC | ||
# | ||
# Copyright Iowa State University 2009-2010. | ||
# Distributed under the Boost Software License, Version 1.0. | ||
# (See accompanying file LICENSE_1_0.txt or copy at | ||
# http://www.boost.org/LICENSE_1_0.txt) | ||
|
||
find_library(HIDAPI_LIBRARY | ||
NAMES hidapi hidapi-libusb) | ||
|
||
find_path(HIDAPI_INCLUDE_DIR | ||
NAMES hidapi.h | ||
PATH_SUFFIXES | ||
hidapi) | ||
|
||
include(FindPackageHandleStandardArgs) | ||
find_package_handle_standard_args(HIDAPI | ||
DEFAULT_MSG | ||
HIDAPI_LIBRARY | ||
HIDAPI_INCLUDE_DIR) | ||
|
||
if(HIDAPI_FOUND) | ||
set(HIDAPI_LIBRARIES "${HIDAPI_LIBRARY}") | ||
|
||
set(HIDAPI_INCLUDE_DIRS "${HIDAPI_INCLUDE_DIR}") | ||
endif() | ||
|
||
mark_as_advanced(HIDAPI_INCLUDE_DIR HIDAPI_LIBRARY) |
This file was deleted.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,56 @@ | ||
// Copyright (c) 2017-2018, The Monero Project | ||
// | ||
// All rights reserved. | ||
// | ||
// Redistribution and use in source and binary forms, with or without modification, are | ||
// permitted provided that the following conditions are met: | ||
// | ||
// 1. Redistributions of source code must retain the above copyright notice, this list of | ||
// conditions and the following disclaimer. | ||
// | ||
// 2. Redistributions in binary form must reproduce the above copyright notice, this list | ||
// of conditions and the following disclaimer in the documentation and/or other | ||
// materials provided with the distribution. | ||
// | ||
// 3. Neither the name of the copyright holder nor the names of its contributors may be | ||
// used to endorse or promote products derived from this software without specific | ||
// prior written permission. | ||
// | ||
// THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS "AS IS" AND ANY | ||
// EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED WARRANTIES OF | ||
// MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL | ||
// THE COPYRIGHT HOLDER OR CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, | ||
// SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT LIMITED TO, | ||
// PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS | ||
// INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, | ||
// STRICT LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF | ||
// THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. | ||
// | ||
|
||
|
||
|
||
|
||
#pragma once | ||
|
||
|
||
namespace hw { | ||
namespace io { | ||
|
||
class device_io { | ||
|
||
public: | ||
|
||
device_io() {}; | ||
~device_io() {}; | ||
|
||
virtual void init() = 0; | ||
virtual void release() = 0; | ||
|
||
virtual void connect(void *parms) = 0; | ||
virtual void disconnect() = 0; | ||
virtual bool connected() const = 0; | ||
|
||
virtual int exchange(unsigned char *command, unsigned int cmd_len, unsigned char *response, unsigned int max_resp_len) = 0; | ||
}; | ||
}; | ||
}; |
Oops, something went wrong.