55 |
GPG_REVOKE_NOUSED = 3 |
GPG_REVOKE_NOUSED = 3 |
56 |
}; |
}; |
57 |
|
|
58 |
|
|
59 |
|
/* Possible results for the operation. */ |
60 |
|
enum { |
61 |
|
GPG_EDITRES_ALREADY_SIGNED = 1 |
62 |
|
}; |
63 |
|
|
64 |
/* Contain information about designated revokers. */ |
/* Contain information about designated revokers. */ |
65 |
struct gpg_desig_rev_s { |
struct gpg_desig_rev_s { |
66 |
struct gpg_desig_rev_s *next; |
struct gpg_desig_rev_s *next; |
92 |
private: |
private: |
93 |
gpgme_key_t key; |
gpgme_key_t key; |
94 |
gpgme_ctx_t ctx; |
gpgme_ctx_t ctx; |
95 |
|
int resval; |
96 |
|
|
97 |
public: |
public: |
98 |
int type; |
int type; |
121 |
|
|
122 |
bool isValid (void); |
bool isValid (void); |
123 |
gpgme_key_t getKey (void); |
gpgme_key_t getKey (void); |
124 |
|
void reset (void); |
125 |
|
|
126 |
void setPassphrase (const char *pass); |
void setPassphrase (const char *pass); |
127 |
void setKey (gpgme_key_t key); |
void setKey (gpgme_key_t key); |
129 |
void setLocalUser (gpgme_key_t locusr); |
void setLocalUser (gpgme_key_t locusr); |
130 |
void setCallback (gpgme_progress_cb_t cb, void *cb_value); |
void setCallback (gpgme_progress_cb_t cb, void *cb_value); |
131 |
|
|
132 |
|
void setResultValue (int val); |
133 |
|
int getResultValue (void); |
134 |
|
|
135 |
gpgme_error_t signKey (int mode, int sig_class, const char *exp_date); |
gpgme_error_t signKey (int mode, int sig_class, const char *exp_date); |
136 |
gpgme_error_t setTrust (gpgme_validity_t trust); |
gpgme_error_t setTrust (gpgme_validity_t trust); |
137 |
gpgme_error_t addUserid (const char *name, const char *cmt, const char *email); |
gpgme_error_t addUserid (const char *name, const char *cmt, const char *email); |
150 |
gpgme_error_t enable (void); |
gpgme_error_t enable (void); |
151 |
gpgme_error_t disable (void); |
gpgme_error_t disable (void); |
152 |
gpgme_error_t setUseridPreferences (int uid_index, const char *new_prefs); |
gpgme_error_t setUseridPreferences (int uid_index, const char *new_prefs); |
153 |
gpgme_error_t deleteUseridSignature (int uid_index, int sig_index); |
gpgme_error_t delUseridSignature (int uid_index, int sig_index); |
154 |
gpgme_error_t setPreferredKeyserver (int uid_index, const char *url); |
gpgme_error_t setPreferredKeyserver (int uid_index, const char *url); |
155 |
|
|
156 |
gpgme_error_t getUseridInfo (gpg_uid_info_t *r_uinf); |
gpgme_error_t getUseridInfo (gpg_uid_info_t *r_uinf); |