/[winpt]/trunk/Include/wptKeyEdit.h
ViewVC logotype

Diff of /trunk/Include/wptKeyEdit.h

Parent Directory Parent Directory | Revision Log Revision Log | View Patch Patch

revision 23 by twoaday, Fri Sep 30 10:10:16 2005 UTC revision 25 by twoaday, Wed Oct 12 10:04:26 2005 UTC
# Line 45  enum { Line 45  enum {
45      GPG_EDITKEY_DISABLE = 17,      GPG_EDITKEY_DISABLE = 17,
46      GPG_EDITKEY_SETPREF = 18,      GPG_EDITKEY_SETPREF = 18,
47      GPG_EDITKEY_DELSIG  = 21,      GPG_EDITKEY_DELSIG  = 21,
48      GPG_EDITKEY_KEYSERV = 23      GPG_EDITKEY_KEYSERV = 23,
49        GPG_EDITKEY_REVUID  = 24
50  };  };
51    
52  /* Reasons for revocations. */  /* Reasons for revocations. */
# Line 55  enum { Line 56  enum {
56      GPG_REVOKE_NOUSED     = 3      GPG_REVOKE_NOUSED     = 3
57  };  };
58    
59    
60    /* Possible results for the operation. */
61    enum {
62        GPG_EDITRES_ALREADY_SIGNED = 1,
63        GPG_EDITRES_BAD_PASSPHRASE = 2
64    };
65    
66  /* Contain information about designated revokers. */  /* Contain information about designated revokers. */
67  struct gpg_desig_rev_s {  struct gpg_desig_rev_s {
68      struct gpg_desig_rev_s *next;      struct gpg_desig_rev_s *next;
# Line 86  class GpgKeyEdit { Line 94  class GpgKeyEdit {
94  private:  private:
95      gpgme_key_t key;      gpgme_key_t key;
96      gpgme_ctx_t ctx;      gpgme_ctx_t ctx;
97        int resval;
98    
99  public:  public:
100      int type;      int type;
# Line 114  public: Line 123  public:
123    
124      bool isValid (void);      bool isValid (void);
125      gpgme_key_t getKey (void);      gpgme_key_t getKey (void);
126        void reset (void);
127    
128      void setPassphrase (const char *pass);      void setPassphrase (const char *pass);
129      void setKey (gpgme_key_t key);      void setKey (gpgme_key_t key);
# Line 121  public: Line 131  public:
131      void setLocalUser (gpgme_key_t locusr);      void setLocalUser (gpgme_key_t locusr);
132      void setCallback (gpgme_progress_cb_t cb, void *cb_value);      void setCallback (gpgme_progress_cb_t cb, void *cb_value);
133    
134        void setResultValue (int val);
135        int  getResultValue (void);
136    
137      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);
138      gpgme_error_t setTrust (gpgme_validity_t trust);      gpgme_error_t setTrust (gpgme_validity_t trust);
139      gpgme_error_t addUserid (const char *name, const char *cmt, const char *email);      gpgme_error_t addUserid (const char *name, const char *cmt,
140                                 const char *email);
141      gpgme_error_t delUserid (int index);      gpgme_error_t delUserid (int index);
142      gpgme_error_t delKey (int index);      gpgme_error_t delKey (int index);
143      gpgme_error_t addSubkey (gpgme_pubkey_algo_t pubkey_algo, unsigned int nbits,      gpgme_error_t addSubkey (gpgme_pubkey_algo_t pubkey_algo,
144                               long valid);                               unsigned int nbits, long valid);
145      gpgme_error_t changePassphrase (const char *new_pass, int allow_empty);      gpgme_error_t changePassphrase (const char *new_pass, int allow_empty);
146      gpgme_error_t setPrimaryUserid (int uid_indx);      gpgme_error_t setPrimaryUserid (int uid_indx);
147      gpgme_error_t setKeyExpireDate (int key_index, long exp_timestamp);      gpgme_error_t setKeyExpireDate (int key_index, long exp_timestamp,
148                                        bool exp_days);
149        gpgme_error_t revokeUserid (int uid_indx);
150      gpgme_error_t revokeSignature (int uid_index, int sig_index);      gpgme_error_t revokeSignature (int uid_index, int sig_index);
151      gpgme_error_t revokeSubkey (int key_index, int reason, const char *cmt);      gpgme_error_t revokeSubkey (int key_index, int reason, const char *cmt);
     gpgme_error_t revokeKey (int reason, const char *cmt);  
152      gpgme_error_t addDesignatedRevoker (const char *uid);      gpgme_error_t addDesignatedRevoker (const char *uid);
153      gpgme_error_t addPhotoid (const char *jpg_file);      gpgme_error_t addPhotoid (const char *jpg_file);
154      gpgme_error_t enable (void);      gpgme_error_t enable (void);
155      gpgme_error_t disable (void);      gpgme_error_t disable (void);
156      gpgme_error_t setUseridPreferences (int uid_index, const char *new_prefs);      gpgme_error_t setUseridPreferences (int uid_index, const char *new_prefs);
157      gpgme_error_t deleteUseridSignature (int uid_index, int sig_index);      gpgme_error_t delUseridSignature (int uid_index, int sig_index);
158      gpgme_error_t setPreferredKeyserver (int uid_index, const char *url);      gpgme_error_t setPreferredKeyserver (int uid_index, const char *url);
159    
160      gpgme_error_t getUseridInfo (gpg_uid_info_t *r_uinf);      gpgme_error_t getUseridInfo (gpg_uid_info_t *r_uinf);

Legend:
Removed from v.23  
changed lines
  Added in v.25

[email protected]
ViewVC Help
Powered by ViewVC 1.1.26