47 |
GPG_EDITKEY_DELSIG = 21, |
GPG_EDITKEY_DELSIG = 21, |
48 |
GPG_EDITKEY_KEYSERV = 23, |
GPG_EDITKEY_KEYSERV = 23, |
49 |
GPG_EDITKEY_REVUID = 24, |
GPG_EDITKEY_REVUID = 24, |
50 |
GPG_EDITKEY_CLEAN = 25 |
GPG_EDITKEY_CLEAN = 25, |
51 |
|
GPG_EDITKEY_NOTATION= 26, |
52 |
|
GPG_EDITKEY_MINIMIZE= 27 |
53 |
}; |
}; |
54 |
|
|
55 |
/* Reasons for revocations. */ |
/* Reasons for revocations. */ |
93 |
int resval; |
int resval; |
94 |
int type; |
int type; |
95 |
|
|
96 |
|
bool key_has_passwd; |
97 |
|
|
98 |
int sig_index; |
int sig_index; |
99 |
int key_index; |
int key_index; |
100 |
int uid_index; |
int uid_index; |
101 |
|
|
102 |
|
int valid; |
103 |
|
|
104 |
public: |
public: |
105 |
int cnt; |
int cnt; |
106 |
int cmd_sent; |
int cmd_sent; |
108 |
const char *new_pass; |
const char *new_pass; |
109 |
const char *url; |
const char *url; |
110 |
int trust_id; |
int trust_id; |
111 |
|
char *notation; |
112 |
char *name, *cmt, *email; |
char *name, *cmt, *email; |
113 |
const char *exp_date; /* XXX */ |
const char *exp_date; /* XXX */ |
114 |
gpgme_pubkey_algo_t pubkey_algo; |
gpgme_pubkey_algo_t pubkey_algo; |
115 |
int pubkey_size; |
unsigned int pubkey_size; |
|
int valid; /* XXX */ |
|
116 |
int flags; |
int flags; |
117 |
int sig_class; |
int sig_class; |
118 |
int reason; |
int reason; |
128 |
void clear (void); |
void clear (void); |
129 |
void clearPassphrase (void); |
void clearPassphrase (void); |
130 |
|
|
131 |
|
void setNoPassphrase (bool val); |
132 |
void setPassphrase (const char *pass); |
void setPassphrase (const char *pass); |
133 |
void setKey (gpgme_key_t key); |
void setKey (gpgme_key_t key); |
134 |
void setKeyID (const char *keyid); |
void setKeyID (const char *keyid); |
142 |
int getUseridIndex (void); |
int getUseridIndex (void); |
143 |
int getKeyIndex (void); |
int getKeyIndex (void); |
144 |
int getSigIndex (void); |
int getSigIndex (void); |
145 |
|
int getValidDays (void); |
146 |
|
|
147 |
|
gpgme_error_t addNotation (int uid_idx, const char *notation); |
148 |
gpgme_error_t signUserid (int uid_idx, int mode, int sig_class, |
gpgme_error_t signUserid (int uid_idx, int mode, int sig_class, |
149 |
const char *exp_date); |
const char *exp_date); |
150 |
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); |
170 |
gpgme_error_t delUseridSignature (int uid_index, int sig_index); |
gpgme_error_t delUseridSignature (int uid_index, int sig_index); |
171 |
gpgme_error_t setPreferredKeyserver (int uid_index, const char *url); |
gpgme_error_t setPreferredKeyserver (int uid_index, const char *url); |
172 |
gpgme_error_t cleanKey (void); |
gpgme_error_t cleanKey (void); |
173 |
|
gpgme_error_t minimizeKey (void); |
174 |
|
|
175 |
|
|
176 |
gpgme_error_t getUseridInfo (gpg_uid_info_t *r_uinf); |
gpgme_error_t getUseridInfo (gpg_uid_info_t *r_uinf); |
177 |
|
|