Skip to content
This repository was archived by the owner on Jun 9, 2022. It is now read-only.

Commit 4396b95

Browse files
committed
Moved INS_GET_VERSION to u2flib_host.constants.
1 parent 7648f53 commit 4396b95

2 files changed

Lines changed: 3 additions & 4 deletions

File tree

u2flib_host/constants.py

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -29,7 +29,9 @@
2929
#APDU Instructions
3030
INS_ENROLL = 0x01
3131
INS_SIGN = 0x02
32+
INS_GET_VERSION = 0x03
3233

3334
#APDU Response Codes
3435
APDU_OK = 0x9000
3536
APDU_USE_NOT_SATISFIED = 0x6985
37+
APDU_WRONG_DATA = 0x6a80

u2flib_host/device.py

Lines changed: 1 addition & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -25,13 +25,10 @@
2525
# ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE
2626
# POSSIBILITY OF SUCH DAMAGE.
2727

28-
from u2flib_host.constants import APDU_OK
28+
from u2flib_host.constants import APDU_OK, INS_GET_VERSION
2929
from u2flib_host.yubicommon.compat import int2byte
3030
from u2flib_host import exc
3131
import struct
32-
import sys
33-
34-
INS_GET_VERSION = 0x03
3532

3633

3734
class U2FDevice(object):

0 commit comments

Comments
 (0)