2000-11-07 13:32:38 +00:00
|
|
|
/* ops.h - internal operations stuff
|
|
|
|
* Copyright (C) 2000 Werner Koch (dd9jn)
|
2001-04-02 08:40:32 +00:00
|
|
|
* Copyright (C) 2001 g10 Code GmbH
|
2000-11-07 13:32:38 +00:00
|
|
|
*
|
|
|
|
* This file is part of GPGME.
|
|
|
|
*
|
|
|
|
* GPGME is free software; you can redistribute it and/or modify
|
|
|
|
* it under the terms of the GNU General Public License as published by
|
|
|
|
* the Free Software Foundation; either version 2 of the License, or
|
|
|
|
* (at your option) any later version.
|
|
|
|
*
|
|
|
|
* GPGME is distributed in the hope that it will be useful,
|
|
|
|
* but WITHOUT ANY WARRANTY; without even the implied warranty of
|
|
|
|
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
|
|
|
|
* GNU General Public License for more details.
|
|
|
|
*
|
|
|
|
* You should have received a copy of the GNU General Public License
|
|
|
|
* along with this program; if not, write to the Free Software
|
|
|
|
* Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA
|
|
|
|
*/
|
|
|
|
|
|
|
|
#ifndef OPS_H
|
|
|
|
#define OPS_H
|
|
|
|
|
|
|
|
#include "types.h"
|
|
|
|
|
2000-11-09 16:35:35 +00:00
|
|
|
/*-- gpgme.c --*/
|
|
|
|
void _gpgme_release_result ( GpgmeCtx c );
|
|
|
|
|
2000-11-10 20:56:02 +00:00
|
|
|
/*-- wait.c --*/
|
|
|
|
GpgmeCtx _gpgme_wait_on_condition ( GpgmeCtx c,
|
|
|
|
int hang, volatile int *cond );
|
2000-12-12 13:31:25 +00:00
|
|
|
void _gpgme_freeze_fd ( int fd );
|
|
|
|
void _gpgme_thaw_fd ( int fd );
|
2000-11-10 20:56:02 +00:00
|
|
|
|
2000-11-07 13:32:38 +00:00
|
|
|
|
|
|
|
/*-- recipient.c --*/
|
|
|
|
void _gpgme_append_gpg_args_from_recipients (
|
2000-11-13 13:25:22 +00:00
|
|
|
const GpgmeRecipients rset,
|
2000-11-07 13:32:38 +00:00
|
|
|
GpgObject gpg );
|
2001-01-11 11:56:34 +00:00
|
|
|
int _gpgme_recipients_all_valid ( const GpgmeRecipients rset );
|
2000-11-07 13:32:38 +00:00
|
|
|
|
|
|
|
|
|
|
|
/*-- data.c --*/
|
2000-11-15 21:36:48 +00:00
|
|
|
char * _gpgme_data_release_and_return_string ( GpgmeData dh );
|
2000-11-13 13:25:22 +00:00
|
|
|
GpgmeDataMode _gpgme_data_get_mode ( GpgmeData dh );
|
|
|
|
void _gpgme_data_set_mode ( GpgmeData dh, GpgmeDataMode mode );
|
2000-11-15 21:36:48 +00:00
|
|
|
char * _gpgme_data_get_as_string ( GpgmeData dh );
|
2000-11-13 13:25:22 +00:00
|
|
|
GpgmeError _gpgme_data_append ( GpgmeData dh,
|
2000-11-09 16:35:35 +00:00
|
|
|
const char *buffer, size_t length );
|
2000-11-15 21:36:48 +00:00
|
|
|
GpgmeError _gpgme_data_append_string ( GpgmeData dh, const char *s );
|
|
|
|
GpgmeError _gpgme_data_append_string_for_xml ( GpgmeData dh,
|
|
|
|
const char *s);
|
|
|
|
GpgmeError _gpgme_data_append_for_xml ( GpgmeData dh,
|
|
|
|
const char *buffer,
|
|
|
|
size_t len );
|
|
|
|
GpgmeError _gpgme_data_append_percentstring_for_xml ( GpgmeData dh,
|
|
|
|
const char *string );
|
|
|
|
|
2000-12-06 12:17:10 +00:00
|
|
|
GpgmeError _gpgme_data_unread (GpgmeData dh,
|
|
|
|
const char *buffer, size_t length );
|
|
|
|
|
2000-11-07 13:32:38 +00:00
|
|
|
|
2000-11-10 17:50:24 +00:00
|
|
|
/*-- key.c --*/
|
2001-01-30 11:01:41 +00:00
|
|
|
GpgmeError _gpgme_key_new ( GpgmeKey *r_key );
|
|
|
|
GpgmeError _gpgme_key_new_secret ( GpgmeKey *r_key );
|
2000-11-10 17:50:24 +00:00
|
|
|
|
|
|
|
|
2000-11-09 16:35:35 +00:00
|
|
|
/*-- verify.c --*/
|
|
|
|
void _gpgme_release_verify_result ( VerifyResult res );
|
2000-11-07 13:32:38 +00:00
|
|
|
|
2000-11-16 13:15:48 +00:00
|
|
|
/*-- decrypt.c --*/
|
|
|
|
void _gpgme_release_decrypt_result ( DecryptResult res );
|
|
|
|
|
2000-11-16 14:53:52 +00:00
|
|
|
/*-- sign.c --*/
|
|
|
|
void _gpgme_release_sign_result ( SignResult res );
|
|
|
|
|
2000-11-07 13:32:38 +00:00
|
|
|
|
|
|
|
#endif /* OPS_H */
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|