/[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 273 by twoaday, Fri Dec 8 10:22:17 2006 UTC revision 458 by twoaday, Sat Oct 6 10:25:36 2012 UTC
# Line 1  Line 1 
1  /* wptGPG.h - GnuPG interface  /* wptGPG.h - GnuPG interface
2   *      Copyright (C) 2000-2006 Timo Schulz   *      Copyright (C) 2000-2007, 2009 Timo Schulz
3   *   *
4   * This file is part of WinPT.   * This file is part of WinPT.
5   *   *
# Line 12  Line 12 
12   * but WITHOUT ANY WARRANTY; without even the implied warranty of   * but WITHOUT ANY WARRANTY; without even the implied warranty of
13   * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU   * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
14   * General Public License for more details.   * General Public License for more details.
  *  
  * You should have received a copy of the GNU General Public License  
  * along with WinPT; if not, write to the Free Software Foundation,  
  * Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA  
15   */   */
   
16  #ifndef WPT_GPG_H  #ifndef WPT_GPG_H
17  #define WPT_GPG_H  #define WPT_GPG_H
18    
# Line 107  void free_gnupg_table (void); Line 102  void free_gnupg_table (void);
102  int keyring_check_last_access (void);  int keyring_check_last_access (void);
103  const char* gnupg_check_file_ext (const char *fname, int *r_type);  const char* gnupg_check_file_ext (const char *fname, int *r_type);
104  int gpg_check_permissions (int showmsg);  int gpg_check_permissions (int showmsg);
105    int gpg_check_file_permissions (const char *fname);
106  int gnupg_check_homedir (void);  int gnupg_check_homedir (void);
107  int gnupg_access_keyring (int _pub);  int gnupg_access_keyring (int _pub);
108  void gnupg_backup_options ();  void gnupg_backup_options ();
109  void gnupg_backup_keyrings (int auto_backup, int backup_mode,  void gnupg_backup_keyrings (int auto_backup, int backup_mode,
110                              int include_secr);                              int include_secr);
111  int gnupg_copy_keyrings (void);  int gnupg_copy_keyrings (void);
112    int gnupg_import_keypair (void);
113  int check_gnupg_engine (const char *need_gpg_ver,  int check_gnupg_engine (const char *need_gpg_ver,
114                          int *r_major, int *r_minor, int *r_patch);                          int *r_major, int *r_minor, int *r_patch);
115    
# Line 211  char *request_passphrase (const char *ti Line 208  char *request_passphrase (const char *ti
208  char *request_passphrase2 (const char *title, int flags, int *ret_cancel);  char *request_passphrase2 (const char *title, int flags, int *ret_cancel);
209  char *request_key_passphrase (gpgme_key_t key, const char *title,  char *request_key_passphrase (gpgme_key_t key, const char *title,
210                                int *ret_cancel);                                int *ret_cancel);
211  const char * passphrase_cb (void *opaque, const char * desc, void *r_hd);  //const char * passphrase_cb (void *opaque, const char * desc, void *r_hd);
212  char * get_key_userid (const char *keyid);  char * get_key_userid (const char *keyid);
213  int check_passwd_quality (const char *pass, int strict);  int check_passwd_quality (const char *pass, int strict);
214    
# Line 221  gpgme_error_t gpg_clip_is_secured (int * Line 218  gpgme_error_t gpg_clip_is_secured (int *
218  gpgme_error_t gpg_clip_get_pgptype (int *r_type);  gpgme_error_t gpg_clip_get_pgptype (int *r_type);
219  gpgme_error_t gpg_clip_parse_pgpid (const char *data, int *r_type);  gpgme_error_t gpg_clip_parse_pgpid (const char *data, int *r_type);
220    
221    gpgme_error_t gpg_data_utf8_new_from_clipboard (gpgme_data_t *r_dh,
222                                                    int wraplen, int *r_is_utf8);
223    gpgme_error_t gpg_data_new_from_clipboard (gpgme_data_t *r_dh,
224                                               int wraplen);
225    gpgme_error_t gpg_data_change_version (gpgme_data_t *r_dh);
226    
227    gpgme_error_t gpg_data_release_utf8_to_clipboard (gpgme_data_t dh);
228    gpgme_error_t gpg_data_release_to_clipboard (gpgme_data_t dh, int chg_ver);
229                                                      
230    
231  /* wptGPGMEData.cpp --*/  /* wptGPGMEData.cpp --*/
232  gpgme_error_t gpg_data_new_from_clipboard (gpgme_data_t *r_dh, int wraplen);  
 void         gpg_data_release_and_set_clipboard (gpgme_data_t dh, int chg_ver);  
233  size_t       gpg_data_readline (gpgme_data_t dh, char *line, size_t nbytes);  size_t       gpg_data_readline (gpgme_data_t dh, char *line, size_t nbytes);
234    
235  gpgme_error_t gpg_data_release_and_set_file (gpgme_data_t dh, const char *fname);  gpgme_error_t gpg_data_release_and_set_file (gpgme_data_t dh, const char *fname);

Legend:
Removed from v.273  
changed lines
  Added in v.458

[email protected]
ViewVC Help
Powered by ViewVC 1.1.26