100 |
}; |
}; |
101 |
typedef struct gpg_optfile_s * gpg_optfile_t; |
typedef struct gpg_optfile_s * gpg_optfile_t; |
102 |
|
|
103 |
|
|
104 |
struct passphrase_cb_s { |
struct passphrase_cb_s { |
105 |
int gpg_cmd; /* sign or decrypt. */ |
int gpg_cmd; /* sign or decrypt. */ |
106 |
int pwd_init; /* 1 = passphrase request via dialog. */ |
int pwd_init; /* 1 = passphrase request via dialog. */ |
122 |
}; |
}; |
123 |
|
|
124 |
|
|
|
static const char * gpg_sigstat[] = { |
|
|
_("Error during verification process."), |
|
|
_("The signature is good."), |
|
|
_("The signature is BAD!"), |
|
|
_("The signature could not be checked due to a missing key."), |
|
|
_("No valid OpenPGP signature."), |
|
|
_("Signature Error"), |
|
|
_("Good Signature (Expired Key)"), |
|
|
_("Good Signature (Revoked Key)"), |
|
|
NULL |
|
|
}; |
|
|
|
|
|
int sigsum_to_index (gpgme_sigsum_t sum); |
|
|
#define SIGSTAT_MASK 8 |
|
|
#define get_gpg_sigstat(sum) gpg_sigstat[sigsum_to_index ((sum)) % SIGSTAT_MASK] |
|
|
|
|
125 |
/* This variable is 1 if IDEA is available. */ |
/* This variable is 1 if IDEA is available. */ |
126 |
extern int idea_available; |
extern int idea_available; |
127 |
|
|
174 |
int count_insecure_elgkeys (void); |
int count_insecure_elgkeys (void); |
175 |
|
|
176 |
int gpg_encrypt_symmetric (void); |
int gpg_encrypt_symmetric (void); |
177 |
|
const char *get_gpg_sigstat (gpgme_sigsum_t sum); |
178 |
|
|
179 |
/*-- wptGPGParser.cpp --*/ |
/*-- wptGPGParser.cpp --*/ |
180 |
/* find */ |
/* find */ |