/[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 2 by twoaday, Mon Jan 31 11:02:21 2005 UTC revision 22 by twoaday, Wed Aug 10 11:33:35 2005 UTC
# Line 166  int get_seckey( const char *keyid, gpgme Line 166  int get_seckey( const char *keyid, gpgme
166    
167  void keycache_reload( HWND dlg );  void keycache_reload( HWND dlg );
168  void keycache_release( void );  void keycache_release( void );
169    gpgme_error_t keycache_update (int is_sec, const char *keyid);
170  gpgme_error_t keycache_init( const char *pubring, const char * secring );  gpgme_error_t keycache_init( const char *pubring, const char * secring );
171  void keycache_set_reload( int yes );  void keycache_set_reload( int yes );
172  int keycache_get_reload( void );  int keycache_get_reload( void );
# Line 180  int gpgme_encrypt_symmetric( void ); Line 181  int gpgme_encrypt_symmetric( void );
181    
182  #define gpgme_show_error( hwnd, rc, ctx, title, mode )          \  #define gpgme_show_error( hwnd, rc, ctx, title, mode )          \
183  do {                                                            \  do {                                                            \
184      if( (rc) == GPGME_Interal_GPG_Problem && ctx ) {            \      if( (rc) == GPGME_Internal_GPG_Problem && ctx ) {           \
185          char * strerr = gpgme_get_logging( (ctx) );             \          char * strerr = gpgme_get_logging( (ctx) );             \
186          msg_box( (hwnd), (strerr)? (strerr) :                   \          msg_box( (hwnd), (strerr)? (strerr) :                   \
187          _("No GPG error description available."), title, mode );\          _("No GPG error description available."), title, mode );\
# Line 214  void release_gpg_options( gpg_optfile_t Line 215  void release_gpg_options( gpg_optfile_t
215  void release_group( gpg_group_t grp );  void release_group( gpg_group_t grp );
216    
217  /*-- wptPassphraseCB.cpp --*/  /*-- wptPassphraseCB.cpp --*/
218  void set_gpg_passphrase_cb( gpgme_ctx_t c, passphrase_cb_s * ctx, int cmd,  enum {
219                              HWND hwnd, const char * title );      PASSDLG_REPEAT = 0,
220  char * request_passphrase( const char * title, int init, int * ret_cancel );      PASSDLG_INIT = 1,  
221  char * request_passphrase2 (const char * title, int * ret_cancel);      PASSDLG_STRICT = 2
222  const char * passphrase_cb( void * opaque, const char * desc, void * r_hd );  };
223  char * get_key_userid( const char * keyid );  
224    void set_gpg_passphrase_cb (gpgme_ctx_t c, passphrase_cb_s * ctx, int cmd,
225                                HWND hwnd, const char *title);
226    char * request_passphrase (const char *title, int flags, int *ret_cancel);
227    char * request_passphrase2 (const char *title, int flags, int *ret_cancel);
228    const char * passphrase_cb (void *opaque, const char * desc, void *r_hd);
229    char * get_key_userid (const char *keyid);
230    int check_passwd_quality (const char *pass, int strict);
231    
232  #endif /* WPT_GPG_H */  #endif /* WPT_GPG_H */

Legend:
Removed from v.2  
changed lines
  Added in v.22

[email protected]
ViewVC Help
Powered by ViewVC 1.1.26