fix gnuk_put_binary
authorNIIBE Yutaka <gniibe@fsij.org>
Fri, 1 Jun 2012 04:19:10 +0000 (13:19 +0900)
committerNIIBE Yutaka <gniibe@fsij.org>
Fri, 1 Jun 2012 04:19:10 +0000 (13:19 +0900)
tool/gnuk_put_binary.py

index 3446b62..3c2dae4 100755 (executable)
@@ -131,10 +131,10 @@ def main(fileid, is_update, data, passwd):
             print "%02x" % d,
         print
         compare(data, data_in_device[8:])
-    elif fileid == 1:
+    elif fileid == 5:
         gnuk.cmd_select_openpgp()
         data_in_device = gnuk.cmd_get_data(0x7f, 0x21)
-        compare(data[:-2], data_in_device)
+        compare(data, data_in_device)
 
     gnuk.connection.disconnect()
     return 0