Version 0.10
[gnuk/gnuk.git] / src / openpgp.h
1 #define GPG_MEMORY_FAILURE()            write_res_apdu (NULL, 0, 0x65, 0x81)
2 #define GPG_SECURITY_FAILURE()          write_res_apdu (NULL, 0, 0x69, 0x82)
3 #define GPG_SECURITY_AUTH_BLOCKED()     write_res_apdu (NULL, 0, 0x69, 0x83)
4 #define GPG_COMMAND_NOT_ALLOWED()       write_res_apdu (NULL, 0, 0x69, 0x86)
5 #define GPG_NO_FILE()                   write_res_apdu (NULL, 0, 0x6a, 0x82)
6 #define GPG_NO_RECORD()                 write_res_apdu (NULL, 0, 0x6a, 0x88)
7 #define GPG_BAD_P0_P1()                 write_res_apdu (NULL, 0, 0x6b, 0x00)
8 #define GPG_NO_INS()                    write_res_apdu (NULL, 0, 0x6d, 0x00)
9 #define GPG_ERROR()                     write_res_apdu (NULL, 0, 0x6f, 0x00)
10 #define GPG_SUCCESS()                   write_res_apdu (NULL, 0, 0x90, 0x00)