2002-01-22 Marcus Brinkmann <marcus@g10code.de>
* export.c: Cleanup.
This commit is contained in:
parent
705ff0ac99
commit
8ea8c8832d
@ -1,3 +1,7 @@
|
|||||||
|
2002-01-22 Marcus Brinkmann <marcus@g10code.de>
|
||||||
|
|
||||||
|
* export.c: Cleanup.
|
||||||
|
|
||||||
2002-01-15 Marcus Brinkmann <marcus@g10code.de>
|
2002-01-15 Marcus Brinkmann <marcus@g10code.de>
|
||||||
|
|
||||||
* trustlist.c: Various source clean ups.
|
* trustlist.c: Various source clean ups.
|
||||||
|
@ -1,6 +1,6 @@
|
|||||||
/* export.c - encrypt functions
|
/* export.c - encrypt functions
|
||||||
* Copyright (C) 2000 Werner Koch (dd9jn)
|
* Copyright (C) 2000 Werner Koch (dd9jn)
|
||||||
* Copyright (C) 2001 g10 Code GmbH
|
* Copyright (C) 2001, 2002 g10 Code GmbH
|
||||||
*
|
*
|
||||||
* This file is part of GPGME.
|
* This file is part of GPGME.
|
||||||
*
|
*
|
||||||
@ -30,9 +30,9 @@
|
|||||||
#include "ops.h"
|
#include "ops.h"
|
||||||
|
|
||||||
static void
|
static void
|
||||||
export_status_handler ( GpgmeCtx ctx, GpgStatusCode code, char *args )
|
export_status_handler (GpgmeCtx ctx, GpgStatusCode code, char *args)
|
||||||
{
|
{
|
||||||
DEBUG2 ("export_status: code=%d args=`%s'\n", code, args );
|
DEBUG2 ("export_status: code=%d args=`%s'\n", code, args);
|
||||||
/* FIXME: Need to do more */
|
/* FIXME: Need to do more */
|
||||||
}
|
}
|
||||||
|
|
||||||
@ -85,21 +85,18 @@ gpgme_op_export_start (GpgmeCtx ctx, GpgmeRecipients recp, GpgmeData keydata)
|
|||||||
* This function can be used to extract public keys from the GnuPG key
|
* This function can be used to extract public keys from the GnuPG key
|
||||||
* database either in armored (by using gpgme_set_armor()) or in plain
|
* database either in armored (by using gpgme_set_armor()) or in plain
|
||||||
* binary form. The function expects a list of user IDs in @recp for
|
* binary form. The function expects a list of user IDs in @recp for
|
||||||
* whom the public keys are to be exportedkinit
|
* whom the public keys are to be exported.
|
||||||
*
|
|
||||||
*
|
*
|
||||||
* Return value: 0 for success or an error code
|
* Return value: 0 for success or an error code
|
||||||
**/
|
**/
|
||||||
GpgmeError
|
GpgmeError
|
||||||
gpgme_op_export ( GpgmeCtx c, GpgmeRecipients recp, GpgmeData keydata )
|
gpgme_op_export (GpgmeCtx ctx, GpgmeRecipients recipients, GpgmeData keydata)
|
||||||
{
|
{
|
||||||
int rc = gpgme_op_export_start ( c, recp, keydata );
|
GpgmeError err = gpgme_op_export_start (ctx, recipients, keydata);
|
||||||
if ( !rc ) {
|
if (!err)
|
||||||
gpgme_wait (c, 1);
|
{
|
||||||
c->pending = 0;
|
gpgme_wait (ctx, 1);
|
||||||
|
ctx->pending = 0;
|
||||||
}
|
}
|
||||||
return rc;
|
return err;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user