122 |
static const char* |
static const char* |
123 |
cmd_sign_handler( gpgme_editkey_t ctx, gpg_status_code_t code, const char *key ) |
cmd_sign_handler( gpgme_editkey_t ctx, gpg_status_code_t code, const char *key ) |
124 |
{ |
{ |
125 |
DEBUG2 ("cmd_sign: code=%d args=`%s'\n", code, key); |
/*DEBUG2 ("cmd_sign: code=%d args=`%s'\n", code, key);*/ |
126 |
|
|
127 |
if( !strcmp( key, "sign_uid.class" ) ) { |
if( !strcmp( key, "sign_uid.class" ) ) { |
128 |
static char id[32]; |
static char id[32]; |
586 |
if (!code) |
if (!code) |
587 |
return NULL; |
return NULL; |
588 |
|
|
589 |
if (!ctx || ctx->type != c->edit_cmd) |
if (!ctx || ctx->type != c->edit_cmd) { |
|
{ |
|
590 |
DEBUG2 ("editkey cmd handler has a wrong type (%d != %d)", ctx->type, c->edit_cmd); |
DEBUG2 ("editkey cmd handler has a wrong type (%d != %d)", ctx->type, c->edit_cmd); |
591 |
return NULL; |
return NULL; |
592 |
} |
} |