libkdenetwork Library API Documentation

ops.h

00001 /* ops.h - Internal operation support. 00002 Copyright (C) 2000 Werner Koch (dd9jn) 00003 Copyright (C) 2001, 2002, 2003 g10 Code GmbH 00004 00005 This file is part of GPGME. 00006 00007 GPGME is free software; you can redistribute it and/or modify it 00008 under the terms of the GNU General Public License as published by 00009 the Free Software Foundation; either version 2 of the License, or 00010 (at your option) any later version. 00011 00012 GPGME is distributed in the hope that it will be useful, but 00013 WITHOUT ANY WARRANTY; without even the implied warranty of 00014 MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU 00015 General Public License for more details. 00016 00017 You should have received a copy of the GNU General Public License 00018 along with GPGME; if not, write to the Free Software Foundation, 00019 Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA. */ 00020 00021 #ifndef OPS_H 00022 #define OPS_H 00023 00024 #include "gpgme.h" 00025 #include "context.h" 00026 00027 00028 /* From gpgme.c. */ 00029 void _gpgme_release_result (gpgme_ctx_t ctx); 00030 00031 00032 /* From wait.c. */ 00033 gpgme_error_t _gpgme_wait_one (gpgme_ctx_t ctx); 00034 gpgme_error_t _gpgme_wait_on_condition (gpgme_ctx_t ctx, volatile int *cond); 00035 00036 00037 /* From data.c. */ 00038 gpgme_error_t _gpgme_data_inbound_handler (void *opaque, int fd); 00039 gpgme_error_t _gpgme_data_outbound_handler (void *opaque, int fd); 00040 00041 00042 /* From op-support.c. */ 00043 00044 /* Find or create the op data object of type TYPE. */ 00045 gpgme_error_t _gpgme_op_data_lookup (gpgme_ctx_t ctx, ctx_op_data_id_t type, 00046 void **hook, int size, 00047 void (*cleanup) (void *)); 00048 00049 /* Prepare a new operation on CTX. */ 00050 gpgme_error_t _gpgme_op_reset (gpgme_ctx_t ctx, int synchronous); 00051 00052 /* Parse the INV_RECP status line in ARGS and return the result in 00053 KEY. */ 00054 gpgme_error_t _gpgme_parse_inv_recp (char *args, gpgme_invalid_key_t *key); 00055 00056 00057 /* From verify.c. */ 00058 gpgme_error_t _gpgme_op_verify_init_result (gpgme_ctx_t ctx); 00059 gpgme_error_t _gpgme_verify_status_handler (void *priv, 00060 gpgme_status_code_t code, 00061 char *args); 00062 00063 00064 /* From decrypt.c. */ 00065 gpgme_error_t _gpgme_op_decrypt_init_result (gpgme_ctx_t ctx); 00066 gpgme_error_t _gpgme_decrypt_status_handler (void *priv, 00067 gpgme_status_code_t code, 00068 char *args); 00069 00070 00071 /* From sign.c. */ 00072 00073 /* Create an initial op data object for signing. Needs to be called 00074 once before calling _gpgme_sign_status_handler. */ 00075 gpgme_error_t _gpgme_op_sign_init_result (gpgme_ctx_t ctx); 00076 00077 /* Process a status line for signing operations. */ 00078 gpgme_error_t _gpgme_sign_status_handler (void *priv, 00079 gpgme_status_code_t code, 00080 char *args); 00081 00082 00083 /* From encrypt.c. */ 00084 00085 /* Create an initial op data object for encrypt. Needs to be called 00086 once before calling _gpgme_encrypt_status_handler. */ 00087 gpgme_error_t _gpgme_op_encrypt_init_result (gpgme_ctx_t ctx); 00088 00089 /* Process a status line for encryption operations. */ 00090 gpgme_error_t _gpgme_encrypt_status_handler (void *priv, 00091 gpgme_status_code_t code, 00092 char *args); 00093 00094 00095 /* From passphrase.c. */ 00096 gpgme_error_t _gpgme_passphrase_status_handler (void *priv, 00097 gpgme_status_code_t code, 00098 char *args); 00099 gpgme_error_t _gpgme_passphrase_command_handler (void *opaque, 00100 gpgme_status_code_t code, 00101 const char *key, int fd); 00102 gpgme_error_t _gpgme_passphrase_command_handler_internal (void *opaque, 00103 gpgme_status_code_t code, 00104 const char *key, int fd, 00105 int *processed); 00106 00107 00108 /* From progress.c. */ 00109 gpgme_error_t _gpgme_progress_status_handler (void *priv, 00110 gpgme_status_code_t code, 00111 char *args); 00112 00113 00114 /* From key.c. */ 00115 gpgme_error_t _gpgme_key_new (gpgme_key_t *r_key); 00116 gpgme_error_t _gpgme_key_add_subkey (gpgme_key_t key, 00117 gpgme_subkey_t *r_subkey); 00118 gpgme_error_t _gpgme_key_append_name (gpgme_key_t key, char *src); 00119 gpgme_key_sig_t _gpgme_key_add_sig (gpgme_key_t key, char *src); 00120 00121 00122 /* From keylist.c. */ 00123 void _gpgme_op_keylist_event_cb (void *data, gpgme_event_io_t type, 00124 void *type_data); 00125 00126 00127 /* From trust-item.c. */ 00128 00129 /* Create a new trust item. */ 00130 gpgme_error_t _gpgme_trust_item_new (gpgme_trust_item_t *r_item); 00131 00132 00133 /* From trustlist.c. */ 00134 void _gpgme_op_trustlist_event_cb (void *data, gpgme_event_io_t type, 00135 void *type_data); 00136 00137 00138 /*-- version.c --*/ 00139 const char *_gpgme_compare_versions (const char *my_version, 00140 const char *req_version); 00141 char *_gpgme_get_program_version (const char *const path); 00142 00143 #endif /* OPS_H */
KDE Logo
This file is part of the documentation for libkdenetwork Library Version 3.3.0.
Documentation copyright © 1996-2004 the KDE developers.
Generated on Thu Oct 21 19:46:17 2004 by doxygen 1.3.7 written by Dimitri van Heesch, © 1997-2003