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

Contents of /trunk/MyGPGME/ops.h

Parent Directory Parent Directory | Revision Log Revision Log


Revision 2 - (show annotations)
Mon Jan 31 11:02:21 2005 UTC (20 years, 1 month ago) by twoaday
File MIME type: text/plain
File size: 4005 byte(s)
WinPT initial checkin.


1 /* 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 void debug_cleanup (void);
30 void rungpg_cleanup (void);
31 void io_cleanup (void);
32 void wait_cleanup (void);
33
34 /*-- gpgme.c --*/
35 void _gpgme_release_result ( gpgme_ctx_t c );
36 const char* _gpgme_get_tmpfile( int input );
37 void _gpgme_del_tmpfiles( gpgme_wipe_t wipe_fnc );
38 gpgme_error_t _gpgme_add_passphrase( gpgme_ctx_t c );
39 void _gpgme_progress_handler( gpgme_ctx_t ctx, char * args );
40 void _gpgme_add_comment (gpgme_ctx_t ctx);
41
42 /*-- wait.c --*/
43 gpgme_ctx_t _gpgme_wait_on_condition( gpgme_ctx_t c,
44 int hang, volatile int *cond );
45 void _gpgme_freeze_fd( int fd );
46 void _gpgme_thaw_fd( int fd );
47
48
49 /*-- recipient.c --*/
50 void _gpgme_append_gpg_args_from_recipients (
51 const gpgme_recipients_t rset, _gpg_object_t gpg );
52
53 int _gpgme_recipients_all_valid ( const gpgme_recipients_t rset );
54
55 /*-- data.c --*/
56 char * _gpgme_data_release_and_return_string ( gpgme_data_t dh );
57 gpgme_data_mode_t _gpgme_data_get_mode ( gpgme_data_t dh );
58 void _gpgme_data_set_mode ( gpgme_data_t dh, gpgme_data_mode_t mode );
59 char * _gpgme_data_get_as_string ( gpgme_data_t dh );
60 gpgme_error_t _gpgme_data_append ( gpgme_data_t dh,
61 const char *buffer, size_t length );
62 gpgme_error_t _gpgme_data_append_string ( gpgme_data_t dh, const char *s );
63 gpgme_error_t _gpgme_data_unread (gpgme_data_t dh,
64 const char *buffer, size_t length );
65 gpgme_error_t _gpgme_data_read_from_tmpfile( gpgme_data_t dh );
66 gpgme_error_t _gpgme_data_write_to_tmpfile( gpgme_data_t dh );
67 gpgme_error_t _gpgme_decode_c_string( const char *src, char **destp, size_t len );
68 gpgme_error_t _gpgme_data_eof( gpgme_data_t dh );
69
70 /*-- key.c --*/
71 gpgme_error_t _gpgme_key_new ( gpgme_key_t *r_key );
72 gpgme_error_t _gpgme_key_new_secret ( gpgme_key_t *r_key );
73 gpgme_key_t _gpgme_key_new_fromkeyid( const char * keyid );
74
75 /*-- encrypt.c --*/
76 void _gpgme_release_encrypt_result( _encrypt_result_t res );
77 void _gpgme_encrypt_add_cipher( gpgme_ctx_t ctx );
78
79 /*-- verify.c --*/
80 void _gpgme_release_verify_result ( _verify_result_t res );
81
82 /*-- decrypt.c --*/
83 void _gpgme_release_decrypt_result ( _decrypt_result_t res );
84
85 /*-- sign.c --*/
86 void _gpgme_release_sign_result ( _sign_result_t res );
87
88 /*-- sig.c --*/
89 void _gpgme_sig_ref( gpgme_sig_t sig );
90
91 /*-- sign-encrypt.c --*/
92 void _gpgme_release_sign_encrypt_result( _sign_encrypt_result_t res );
93
94 /*-- import.c --*/
95 void _gpgme_release_import_result ( _import_result_t res );
96
97 /*-- sym-encrypt.c --*/
98 void _gpgme_release_symenc_result( _symenc_result_t res );
99
100 /*-- editkey.c --*/
101 void _gpgme_release_editkey_result (_editkey_result_t res);
102
103 /*-- recipients.c --*/
104 gpgme_error_t _gpgme_recipients_add_name_ext( gpgme_recipients_t rset,
105 const char * data,
106 unsigned int magic );
107
108 /*-- errors.c --*/
109 const char* _gpgme_gettext( const char *a );
110
111 #endif /* GPGME_OPS_H */

[email protected]
ViewVC Help
Powered by ViewVC 1.1.26