2002-07-27 Marcus Brinkmann <marcus@g10code.de>

* delete.c (delete_problem): New case ambigious specification.
	(delete_status_handler): Handle new case (poorly).
This commit is contained in:
Marcus Brinkmann 2002-07-27 14:24:07 +00:00
parent ab0e8fb5e4
commit 1aef493b8d
2 changed files with 9 additions and 1 deletions

View File

@ -1,3 +1,8 @@
2002-07-27 Marcus Brinkmann <marcus@g10code.de>
* delete.c (delete_problem): New case ambigious specification.
(delete_status_handler): Handle new case (poorly).
2002-07-25 Marcus Brinkmann <marcus@g10code.de> 2002-07-25 Marcus Brinkmann <marcus@g10code.de>
* engine-gpgsm.c (_gpgme_gpgsm_op_delete): Implement this. * engine-gpgsm.c (_gpgme_gpgsm_op_delete): Implement this.

View File

@ -35,7 +35,8 @@ enum delete_problem
{ {
DELETE_No_Problem = 0, DELETE_No_Problem = 0,
DELETE_No_Such_Key = 1, DELETE_No_Such_Key = 1,
DELETE_Must_Delete_Secret_Key = 2 DELETE_Must_Delete_Secret_Key = 2,
DELETE_Ambiguous_Specification = 3
}; };
@ -74,6 +75,8 @@ delete_status_handler (GpgmeCtx ctx, GpgStatusCode code, char *args)
case DELETE_Must_Delete_Secret_Key: case DELETE_Must_Delete_Secret_Key:
ctx->error = mk_error(Conflict); ctx->error = mk_error(Conflict);
break; break;
case DELETE_Ambiguous_Specification:
/* XXX Need better error value. Fall through. */
default: default:
ctx->error = mk_error(General_Error); ctx->error = mk_error(General_Error);
break; break;