/[winpt]/trunk/MyGPGME/ops.h
ViewVC logotype

Annotation of /trunk/MyGPGME/ops.h

Parent Directory Parent Directory | Revision Log Revision Log


Revision 22 - (hide annotations)
Wed Aug 10 11:33:35 2005 UTC (19 years, 6 months ago) by twoaday
File MIME type: text/plain
File size: 4220 byte(s)
2005-08-06  Timo Schulz  <twoaday@freakmail.de>
 
        * wptGPGME.cpp (keycache_update): Reload OpenPGP parts
        of the secret key.
        (keycache_init): cache name of secret keyring.
        * wptKeyList.cpp (keylist_upd_key): Do not add long keyid.
        (get_key_type): Do not assume 'ultimate' means key pair.
        * wptKeyEditDlgs.cpp (diff_time): New.
        (keyedit_addsubkey_dlg_proc): Changed design and use
        diff_time. Drop checks for invalid keylength (< 1024, > 4096)
        because the combo box automatically handles this.
        * wptKeyManager.cpp (km_set_implicit_trust): Return error code.
        * wptGPG.cpp (get_backup_name): New.
        (gnupg_backup_keyrings): Rotate backup names, from 0..3.
        * wptClipImportDialog.cpp (clip_import_dlg_proc): Free memory.
        * wptKeyManagerDlg.cpp (keymanager_dlg_proc): Use 0x short keyid and
        not the long keyid.


1 twoaday 2 /* ops.h - internal operations stuff
2     * Copyright (C) 2000 Werner Koch (dd9jn)
3     * Copyright (C) 2003, 2004, 2005 Timo Schulz
4     *
5     * This file is part of MyGPGME.
6     *
7     * MyGPGME is free software; you can redistribute it and/or modify
8     * it under the terms of the GNU General Public License as published by
9     * the Free Software Foundation; either version 2 of the License, or
10     * (at your option) any later version.
11     *
12     * MyGPGME is distributed in the hope that it will be useful,
13     * but WITHOUT ANY WARRANTY; without even the implied warranty of
14     * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
15     * GNU General Public License for more details.
16     *
17     * You should have received a copy of the GNU General Public License
18     * along with this program; if not, write to the Free Software
19     * Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA
20     */
21    
22     #ifndef GPGME_OPS_H
23     #define GPGME_OPS_H
24    
25     #include "types.h"
26     #include "rungpg.h"
27    
28     /* cleanup */
29 twoaday 7 void debug_cleanup (void);
30     void rungpg_cleanup (void);
31     void io_cleanup (void);
32     void wait_cleanup (void);
33     void util_cleanup (void);
34 twoaday 2
35     /*-- gpgme.c --*/
36     void _gpgme_release_result ( gpgme_ctx_t c );
37     const char* _gpgme_get_tmpfile( int input );
38     void _gpgme_del_tmpfiles( gpgme_wipe_t wipe_fnc );
39     gpgme_error_t _gpgme_add_passphrase( gpgme_ctx_t c );
40     void _gpgme_progress_handler( gpgme_ctx_t ctx, char * args );
41     void _gpgme_add_comment (gpgme_ctx_t ctx);
42    
43     /*-- wait.c --*/
44     gpgme_ctx_t _gpgme_wait_on_condition( gpgme_ctx_t c,
45     int hang, volatile int *cond );
46     void _gpgme_freeze_fd( int fd );
47     void _gpgme_thaw_fd( int fd );
48    
49    
50     /*-- recipient.c --*/
51     void _gpgme_append_gpg_args_from_recipients (
52     const gpgme_recipients_t rset, _gpg_object_t gpg );
53    
54     int _gpgme_recipients_all_valid ( const gpgme_recipients_t rset );
55    
56     /*-- data.c --*/
57     char * _gpgme_data_release_and_return_string ( gpgme_data_t dh );
58     gpgme_data_mode_t _gpgme_data_get_mode ( gpgme_data_t dh );
59     void _gpgme_data_set_mode ( gpgme_data_t dh, gpgme_data_mode_t mode );
60     char * _gpgme_data_get_as_string ( gpgme_data_t dh );
61     gpgme_error_t _gpgme_data_append ( gpgme_data_t dh,
62     const char *buffer, size_t length );
63     gpgme_error_t _gpgme_data_append_string ( gpgme_data_t dh, const char *s );
64     gpgme_error_t _gpgme_data_unread (gpgme_data_t dh,
65     const char *buffer, size_t length );
66     gpgme_error_t _gpgme_data_read_from_tmpfile( gpgme_data_t dh );
67     gpgme_error_t _gpgme_data_write_to_tmpfile( gpgme_data_t dh );
68     gpgme_error_t _gpgme_decode_c_string( const char *src, char **destp, size_t len );
69     gpgme_error_t _gpgme_data_eof( gpgme_data_t dh );
70    
71     /*-- key.c --*/
72     gpgme_error_t _gpgme_key_new ( gpgme_key_t *r_key );
73     gpgme_error_t _gpgme_key_new_secret ( gpgme_key_t *r_key );
74     gpgme_key_t _gpgme_key_new_fromkeyid( const char * keyid );
75    
76 twoaday 22 /*-- keycache.c --*/
77     gpgme_error_t _gpgme_keycache_find_key2 (gpgme_keycache_t ctx,
78     const char *pattern, int flags,
79     gpgme_key_t *r_key,
80     struct keycache_s **r_item);
81    
82 twoaday 2 /*-- encrypt.c --*/
83     void _gpgme_release_encrypt_result( _encrypt_result_t res );
84     void _gpgme_encrypt_add_cipher( gpgme_ctx_t ctx );
85    
86     /*-- verify.c --*/
87     void _gpgme_release_verify_result ( _verify_result_t res );
88    
89     /*-- decrypt.c --*/
90     void _gpgme_release_decrypt_result ( _decrypt_result_t res );
91    
92     /*-- sign.c --*/
93     void _gpgme_release_sign_result ( _sign_result_t res );
94    
95     /*-- sig.c --*/
96     void _gpgme_sig_ref( gpgme_sig_t sig );
97    
98     /*-- sign-encrypt.c --*/
99     void _gpgme_release_sign_encrypt_result( _sign_encrypt_result_t res );
100    
101     /*-- import.c --*/
102     void _gpgme_release_import_result ( _import_result_t res );
103    
104     /*-- sym-encrypt.c --*/
105     void _gpgme_release_symenc_result( _symenc_result_t res );
106    
107     /*-- editkey.c --*/
108     void _gpgme_release_editkey_result (_editkey_result_t res);
109    
110     /*-- recipients.c --*/
111     gpgme_error_t _gpgme_recipients_add_name_ext( gpgme_recipients_t rset,
112     const char * data,
113     unsigned int magic );
114    
115     /*-- errors.c --*/
116     const char* _gpgme_gettext( const char *a );
117    
118     #endif /* GPGME_OPS_H */

[email protected]
ViewVC Help
Powered by ViewVC 1.1.26