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

Diff of /trunk/Include/wptGPG.h

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

revision 24 by twoaday, Sat Oct 8 10:43:08 2005 UTC revision 25 by twoaday, Wed Oct 12 10:04:26 2005 UTC
# Line 117  struct passphrase_cb_s { Line 117  struct passphrase_cb_s {
117      int cancel;      int cancel;
118      int is_card;      int is_card;
119      gpgme_ctx_t gpg;      gpgme_ctx_t gpg;
120        struct {
121            int sym_algo;
122            int s2k_mode;
123            int s2k_hash;
124        } sym;
125  };  };
126    
127    
# Line 179  int get_seckey (const char *keyid, gpgme Line 184  int get_seckey (const char *keyid, gpgme
184  int winpt_get_seckey (const char *keyid, struct winpt_key_s *k);  int winpt_get_seckey (const char *keyid, struct winpt_key_s *k);
185    
186  void keycache_reload( HWND dlg );  void keycache_reload( HWND dlg );
187  void keycache_release( void );  void keycache_release (int cleanup);
188  gpgme_error_t keycache_update (int is_sec, const char *keyid);  gpgme_error_t keycache_update (int is_sec, const char *keyid);
189  gpgme_error_t keycache_init( const char *pubring, const char * secring );  gpgme_error_t keycache_init( const char *pubring, const char * secring );
190  void keycache_set_reload( int yes );  void keycache_set_reload( int yes );
191  int keycache_get_reload( void );  int keycache_get_reload( void );
192  gpgme_keycache_t keycache_get_ctx( int _pub );  gpg_keycache_t keycache_get_ctx( int _pub );
193    
194  int count_insecure_elgkeys( void );  int count_insecure_elgkeys (void);
195    
196  int gpg_encrypt_symmetric( void );  int gpg_encrypt_symmetric (void);
197    
198    
 #define gpgme_show_error( hwnd, rc, ctx, title, mode )          \  
 do {                                                            \  
     if( (rc) == GPGME_Internal_GPG_Problem && ctx ) {           \  
         char * strerr = gpgme_get_logging( (ctx) );             \  
         msg_box( (hwnd), (strerr)? (strerr) :                   \  
         _("No GPG error description available."), title, mode );\  
         safe_free( strerr );                                    \  
     }                                                           \  
     else {                                                      \  
         msg_box( (hwnd), gpgme_strerror( (rc) ),                \  
                   title, mode );                                \  
     }                                                           \  
 } while ( 0 )  
   
199  /*-- wptGPGParser.cpp --*/  /*-- wptGPGParser.cpp --*/
200  /* find */  /* find */
201  gpg_group_t find_group( gpg_optfile_t opt, const char *str );  gpg_group_t find_group( gpg_optfile_t opt, const char *str );
# Line 243  const char * passphrase_cb (void *opaque Line 234  const char * passphrase_cb (void *opaque
234  char * get_key_userid (const char *keyid);  char * get_key_userid (const char *keyid);
235  int check_passwd_quality (const char *pass, int strict);  int check_passwd_quality (const char *pass, int strict);
236    
237    /*-- wptGPGUtil.cpp --*/
238    gpgme_error_t gpg_rebuild_cache (char **r_inf);
239    gpgme_error_t gpg_get_version (char **r_inf);
240    void          gpg_set_debug_mode (int val);
241    gpgme_error_t gpg_export_seckey (const char *keyid, const char *outfile);
242    gpgme_error_t gpg_manage_ownertrust (char **data, int export);
243    
244    char*  generate_revoc_input (int code, const char *cmt, const char *pass);
245    gpgme_error_t gpg_revoke_key (const char *inp_data,
246                                  const char *keyid,
247                                  char **r_revcert);
248    gpgme_error_t gpg_decode_c_string (const char *src, char **destp, size_t len);
249    gpgme_error_t gpg_import_key_list (const char *fname, char **r_out);
250    
251  #endif /* WPT_GPG_H */  #endif /* WPT_GPG_H */

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

[email protected]
ViewVC Help
Powered by ViewVC 1.1.26