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 |
void util_cleanup (void); |
34 |
|
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 |
/*-- encrypt.c --*/ |
77 |
void _gpgme_release_encrypt_result( _encrypt_result_t res ); |
78 |
void _gpgme_encrypt_add_cipher( gpgme_ctx_t ctx ); |
79 |
|
80 |
/*-- verify.c --*/ |
81 |
void _gpgme_release_verify_result ( _verify_result_t res ); |
82 |
|
83 |
/*-- decrypt.c --*/ |
84 |
void _gpgme_release_decrypt_result ( _decrypt_result_t res ); |
85 |
|
86 |
/*-- sign.c --*/ |
87 |
void _gpgme_release_sign_result ( _sign_result_t res ); |
88 |
|
89 |
/*-- sig.c --*/ |
90 |
void _gpgme_sig_ref( gpgme_sig_t sig ); |
91 |
|
92 |
/*-- sign-encrypt.c --*/ |
93 |
void _gpgme_release_sign_encrypt_result( _sign_encrypt_result_t res ); |
94 |
|
95 |
/*-- import.c --*/ |
96 |
void _gpgme_release_import_result ( _import_result_t res ); |
97 |
|
98 |
/*-- sym-encrypt.c --*/ |
99 |
void _gpgme_release_symenc_result( _symenc_result_t res ); |
100 |
|
101 |
/*-- editkey.c --*/ |
102 |
void _gpgme_release_editkey_result (_editkey_result_t res); |
103 |
|
104 |
/*-- recipients.c --*/ |
105 |
gpgme_error_t _gpgme_recipients_add_name_ext( gpgme_recipients_t rset, |
106 |
const char * data, |
107 |
unsigned int magic ); |
108 |
|
109 |
/*-- errors.c --*/ |
110 |
const char* _gpgme_gettext( const char *a ); |
111 |
|
112 |
#endif /* GPGME_OPS_H */ |