rename status-code.h
authorNIIBE Yutaka <gniibe@fsij.org>
Thu, 13 Oct 2016 02:03:50 +0000 (11:03 +0900)
committerNIIBE Yutaka <gniibe@fsij.org>
Thu, 13 Oct 2016 02:03:50 +0000 (11:03 +0900)
ChangeLog
src/call-rsa.c
src/openpgp-do.c
src/openpgp.c
src/openpgp.h [deleted file]
src/status-code.h [new file with mode: 0644]

index d5696bb..fa11517 100644 (file)
--- a/ChangeLog
+++ b/ChangeLog
@@ -1,5 +1,7 @@
 2016-10-13  Niibe Yutaka  <gniibe@fsij.org>
 
+       * src/status-code.h: Rename from openpgp.h.
+
        * chopstx: Update to 1.2.
 
        * tests: New test suite for OpenPGP card with PyTest.
index 5f0aa3a..9800462 100644 (file)
@@ -30,7 +30,7 @@
 #include "config.h"
 
 #include "gnuk.h"
-#include "openpgp.h"
+#include "status-code.h"
 #include "random.h"
 #include "polarssl/config.h"
 #include "polarssl/rsa.h"
index 71b613d..8546358 100644 (file)
@@ -30,7 +30,7 @@
 
 #include "sys.h"
 #include "gnuk.h"
-#include "openpgp.h"
+#include "status-code.h"
 #include "random.h"
 #include "polarssl/config.h"
 #include "polarssl/aes.h"
index 5495871..4d62297 100644 (file)
@@ -31,7 +31,7 @@
 
 #include "gnuk.h"
 #include "sys.h"
-#include "openpgp.h"
+#include "status-code.h"
 #include "sha256.h"
 #include "random.h"
 
diff --git a/src/openpgp.h b/src/openpgp.h
deleted file mode 100644 (file)
index b8693b9..0000000
+++ /dev/null
@@ -1,12 +0,0 @@
-#define GPG_MEMORY_FAILURE()           set_res_sw (0x65, 0x81)
-#define GPG_SECURITY_FAILURE()         set_res_sw (0x69, 0x82)
-#define GPG_SECURITY_AUTH_BLOCKED()    set_res_sw (0x69, 0x83)
-#define GPG_CONDITION_NOT_SATISFIED()  set_res_sw (0x69, 0x85)
-#define GPG_COMMAND_NOT_ALLOWED()      set_res_sw (0x69, 0x86)
-#define GPG_FUNCTION_NOT_SUPPORTED()   set_res_sw (0x6a, 0x81)
-#define GPG_NO_FILE()                  set_res_sw (0x6a, 0x82)
-#define GPG_NO_RECORD()                        set_res_sw (0x6a, 0x88)
-#define GPG_BAD_P1_P2()                        set_res_sw (0x6b, 0x00)
-#define GPG_NO_INS()                   set_res_sw (0x6d, 0x00)
-#define GPG_ERROR()                    set_res_sw (0x6f, 0x00)
-#define GPG_SUCCESS()                  set_res_sw (0x90, 0x00)
diff --git a/src/status-code.h b/src/status-code.h
new file mode 100644 (file)
index 0000000..b8693b9
--- /dev/null
@@ -0,0 +1,12 @@
+#define GPG_MEMORY_FAILURE()           set_res_sw (0x65, 0x81)
+#define GPG_SECURITY_FAILURE()         set_res_sw (0x69, 0x82)
+#define GPG_SECURITY_AUTH_BLOCKED()    set_res_sw (0x69, 0x83)
+#define GPG_CONDITION_NOT_SATISFIED()  set_res_sw (0x69, 0x85)
+#define GPG_COMMAND_NOT_ALLOWED()      set_res_sw (0x69, 0x86)
+#define GPG_FUNCTION_NOT_SUPPORTED()   set_res_sw (0x6a, 0x81)
+#define GPG_NO_FILE()                  set_res_sw (0x6a, 0x82)
+#define GPG_NO_RECORD()                        set_res_sw (0x6a, 0x88)
+#define GPG_BAD_P1_P2()                        set_res_sw (0x6b, 0x00)
+#define GPG_NO_INS()                   set_res_sw (0x6d, 0x00)
+#define GPG_ERROR()                    set_res_sw (0x6f, 0x00)
+#define GPG_SUCCESS()                  set_res_sw (0x90, 0x00)