+++ /dev/null
-/* Generated automatically by mkerrors */
-/* Do not edit! */
-
-#include <stdio.h>
-#include "gpgme.h"
-
-/**
- * gpgme_strerror:
- * @err: Error code
- *
- * This function returns a textual representaion of the given
- * errocode. If this is an unknown value, a string with the value
- * is returned (which is hold in a static buffer).
- *
- * Return value: String with the error description.
- **/
-const char *
-gpgme_strerror (GpgmeError err)
-{
- const char *s;
- static char buf[25];
-
- switch (err) {
- case GPGME_No_Error: s="No Error"; break;
- case GPGME_General_Error: s="General Error"; break;
- case GPGME_Out_Of_Core: s="Out Of Core"; break;
- case GPGME_Invalid_Value: s="Invalid Value"; break;
- case GPGME_Busy: s="Busy"; break;
- case GPGME_No_Request: s="No Request"; break;
- case GPGME_Exec_Error: s="Exec Error"; break;
- case GPGME_Too_Many_Procs: s="Too Many Procs"; break;
- case GPGME_Pipe_Error: s="Pipe Error"; break;
- case GPGME_No_Recipients: s="No Recipients"; break;
- case GPGME_No_Data: s="No Data"; break;
- case GPGME_Conflict: s="Conflict"; break;
- case GPGME_Not_Implemented: s="Not Implemented"; break;
- case GPGME_Read_Error: s="Read Error"; break;
- case GPGME_Write_Error: s="Write Error"; break;
- case GPGME_Invalid_Type: s="Invalid Type"; break;
- case GPGME_Invalid_Mode: s="Invalid Mode"; break;
- case GPGME_File_Error: s="File Error"; break;
- case GPGME_Decryption_Failed: s="Decryption Failed"; break;
- case GPGME_No_Passphrase: s="No Passphrase"; break;
- case GPGME_Canceled: s="Canceled"; break;
- case GPGME_Invalid_Key: s="Invalid Key"; break;
- case GPGME_Invalid_Engine: s="Invalid Engine"; break;
- default: sprintf (buf, "ec=%d", err ); s=buf; break;
-}
-
-return s;
-}
-
+++ /dev/null
-/* Generated automatically by mkstatus */
-/* Do not edit! */
-
-struct status_table_s {
- const char *name;
- GpgStatusCode code;
-};
-
-static struct status_table_s status_table[] =
-{
- { "ABORT", STATUS_ABORT },
- { "BADARMOR", STATUS_BADARMOR },
- { "BADMDC", STATUS_BADMDC },
- { "BADSIG", STATUS_BADSIG },
- { "BAD_PASSPHRASE", STATUS_BAD_PASSPHRASE },
- { "BEGIN_DECRYPTION", STATUS_BEGIN_DECRYPTION },
- { "BEGIN_ENCRYPTION", STATUS_BEGIN_ENCRYPTION },
- { "BEGIN_STREAM", STATUS_BEGIN_STREAM },
- { "DECRYPTION_FAILED", STATUS_DECRYPTION_FAILED },
- { "DECRYPTION_OKAY", STATUS_DECRYPTION_OKAY },
- { "DELETE_PROBLEM", STATUS_DELETE_PROBLEM },
- { "ENC_TO", STATUS_ENC_TO },
- { "END_DECRYPTION", STATUS_END_DECRYPTION },
- { "END_ENCRYPTION", STATUS_END_ENCRYPTION },
- { "END_STREAM", STATUS_END_STREAM },
- { "ENTER", STATUS_ENTER },
- { "ERRMDC", STATUS_ERRMDC },
- { "ERRSIG", STATUS_ERRSIG },
- { "FILE_DONE", STATUS_FILE_DONE },
- { "FILE_ERROR", STATUS_FILE_ERROR },
- { "FILE_START", STATUS_FILE_START },
- { "GET_BOOL", STATUS_GET_BOOL },
- { "GET_HIDDEN", STATUS_GET_HIDDEN },
- { "GET_LINE", STATUS_GET_LINE },
- { "GOODMDC", STATUS_GOODMDC },
- { "GOODSIG", STATUS_GOODSIG },
- { "GOOD_PASSPHRASE", STATUS_GOOD_PASSPHRASE },
- { "GOT_IT", STATUS_GOT_IT },
- { "IMPORTED", STATUS_IMPORTED },
- { "IMPORT_RES", STATUS_IMPORT_RES },
- { "KEYREVOKED", STATUS_KEYREVOKED },
- { "LEAVE", STATUS_LEAVE },
- { "MISSING_PASSPHRASE", STATUS_MISSING_PASSPHRASE },
- { "NEED_PASSPHRASE", STATUS_NEED_PASSPHRASE },
- { "NEED_PASSPHRASE_SYM,", STATUS_NEED_PASSPHRASE_SYM, },
- { "NODATA", STATUS_NODATA },
- { "NOTATION_DATA", STATUS_NOTATION_DATA },
- { "NOTATION_NAME", STATUS_NOTATION_NAME },
- { "NO_PUBKEY", STATUS_NO_PUBKEY },
- { "NO_SECKEY", STATUS_NO_SECKEY },
- { "POLICY_URL", STATUS_POLICY_URL },
- { "PROGRESS", STATUS_PROGRESS },
- { "RSA_OR_IDEA", STATUS_RSA_OR_IDEA },
- { "SESSION_KEY", STATUS_SESSION_KEY },
- { "SHM_GET", STATUS_SHM_GET },
- { "SHM_GET_BOOL", STATUS_SHM_GET_BOOL },
- { "SHM_GET_HIDDEN", STATUS_SHM_GET_HIDDEN },
- { "SHM_INFO", STATUS_SHM_INFO },
- { "SIGEXPIRED", STATUS_SIGEXPIRED },
- { "SIG_CREATED", STATUS_SIG_CREATED },
- { "SIG_ID", STATUS_SIG_ID },
- { "TRUST_FULLY", STATUS_TRUST_FULLY },
- { "TRUST_MARGINAL", STATUS_TRUST_MARGINAL },
- { "TRUST_NEVER", STATUS_TRUST_NEVER },
- { "TRUST_ULTIMATE", STATUS_TRUST_ULTIMATE },
- { "TRUST_UNDEFINED", STATUS_TRUST_UNDEFINED },
- { "USERID_HINT", STATUS_USERID_HINT },
- { "VALIDSIG", STATUS_VALIDSIG },
- {NULL, 0}
-};
-