2002-02-26 Marcus Brinkmann <marcus@g10code.de>
* verify.c (_gpgme_verify_status_handler): Fix the last change.
This commit is contained in:
parent
82b1feb992
commit
00d2d15d81
@ -1,3 +1,7 @@
|
|||||||
|
2002-02-26 Marcus Brinkmann <marcus@g10code.de>
|
||||||
|
|
||||||
|
* verify.c (_gpgme_verify_status_handler): Fix the last change.
|
||||||
|
|
||||||
2002-02-25 Marcus Brinkmann <marcus@g10code.de>
|
2002-02-25 Marcus Brinkmann <marcus@g10code.de>
|
||||||
|
|
||||||
* engine.c (_gpgme_engine_op_encrypt_sign): New function.
|
* engine.c (_gpgme_engine_op_encrypt_sign): New function.
|
||||||
|
@ -193,9 +193,14 @@ _gpgme_verify_status_handler (GpgmeCtx ctx, GpgStatusCode code, char *args)
|
|||||||
case STATUS_ERRSIG:
|
case STATUS_ERRSIG:
|
||||||
/* The return code is the 6th argument, if it is 9, the problem
|
/* The return code is the 6th argument, if it is 9, the problem
|
||||||
is a missing key. */
|
is a missing key. */
|
||||||
for (p = args, i = 0; p && i < 5; i++)
|
for (p = args, i = 0; p && *p && i < 5; i++)
|
||||||
|
{
|
||||||
p = strchr (p, ' ');
|
p = strchr (p, ' ');
|
||||||
if (p && *(++p) == '9' && *(++p) == '\0')
|
if (p)
|
||||||
|
while (*p == ' ')
|
||||||
|
p++;
|
||||||
|
}
|
||||||
|
if (p && *(p++) == '9' && (*p == '\0' || *p == ' '))
|
||||||
ctx->result.verify->status = GPGME_SIG_STAT_NOKEY;
|
ctx->result.verify->status = GPGME_SIG_STAT_NOKEY;
|
||||||
else
|
else
|
||||||
ctx->result.verify->status = GPGME_SIG_STAT_ERROR;
|
ctx->result.verify->status = GPGME_SIG_STAT_ERROR;
|
||||||
|
Loading…
Reference in New Issue
Block a user