/[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 28 by twoaday, Thu Oct 20 12:35:59 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        int type;
99    
100  public:  public:
101      int type;      
102      int cnt;      int cnt;
103      int cmd_sent;      int cmd_sent;
104      const char *pass;      const char *pass;
# Line 114  public: Line 124  public:
124    
125      bool isValid (void);      bool isValid (void);
126      gpgme_key_t getKey (void);      gpgme_key_t getKey (void);
127        void reset (void);
128    
129      void setPassphrase (const char *pass);      void setPassphrase (const char *pass);
130      void setKey (gpgme_key_t key);      void setKey (gpgme_key_t key);
131      void setKeyID (const char *keyid);      void setKeyID (const char *keyid);
132      void setLocalUser (gpgme_key_t locusr);      void setLocalUser (gpgme_key_t locusr);
133      void setCallback (gpgme_progress_cb_t cb, void *cb_value);      void setCallback (gpgme_progress_cb_t cb, void *cb_value);
134        int  getType (void);
135        void setResult (int val);
136        int  getResult (void);
137    
138      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);
139      gpgme_error_t setTrust (gpgme_validity_t trust);      gpgme_error_t setTrust (gpgme_validity_t trust);
140      gpgme_error_t addUserid (const char *name, const char *cmt, const char *email);      gpgme_error_t addUserid (const char *name, const char *cmt,
141                                 const char *email);
142      gpgme_error_t delUserid (int index);      gpgme_error_t delUserid (int index);
143      gpgme_error_t delKey (int index);      gpgme_error_t delKey (int index);
144      gpgme_error_t addSubkey (gpgme_pubkey_algo_t pubkey_algo, unsigned int nbits,      gpgme_error_t addSubkey (gpgme_pubkey_algo_t pubkey_algo,
145                               long valid);                               unsigned int nbits, long valid);
146      gpgme_error_t changePassphrase (const char *new_pass, int allow_empty);      gpgme_error_t changePassphrase (const char *new_pass, int allow_empty);
147      gpgme_error_t setPrimaryUserid (int uid_indx);      gpgme_error_t setPrimaryUserid (int uid_indx);
148      gpgme_error_t setKeyExpireDate (int key_index, long exp_timestamp);      gpgme_error_t setKeyExpireDate (int key_index, long exp_timestamp,
149                                        bool exp_days);
150        gpgme_error_t revokeUserid (int uid_indx);
151      gpgme_error_t revokeSignature (int uid_index, int sig_index);      gpgme_error_t revokeSignature (int uid_index, int sig_index);
152      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);  
153      gpgme_error_t addDesignatedRevoker (const char *uid);      gpgme_error_t addDesignatedRevoker (const char *uid);
154      gpgme_error_t addPhotoid (const char *jpg_file);      gpgme_error_t addPhotoid (const char *jpg_file);
155      gpgme_error_t enable (void);      gpgme_error_t enable (void);
156      gpgme_error_t disable (void);      gpgme_error_t disable (void);
157      gpgme_error_t setUseridPreferences (int uid_index, const char *new_prefs);      gpgme_error_t setUseridPreferences (int uid_index, const char *new_prefs);
158      gpgme_error_t deleteUseridSignature (int uid_index, int sig_index);      gpgme_error_t delUseridSignature (int uid_index, int sig_index);
159      gpgme_error_t setPreferredKeyserver (int uid_index, const char *url);      gpgme_error_t setPreferredKeyserver (int uid_index, const char *url);
160    
161      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.28

[email protected]
ViewVC Help
Powered by ViewVC 1.1.26