diff options
Diffstat (limited to '')
-rw-r--r-- | sm/server.c | 15 |
1 files changed, 11 insertions, 4 deletions
diff --git a/sm/server.c b/sm/server.c index daea4962a..7c4318bb2 100644 --- a/sm/server.c +++ b/sm/server.c @@ -97,14 +97,21 @@ cmd_decrypt (ASSUAN_CONTEXT ctx, char *line) This does a verify operation on the message send to the input-FD. The result is written out using status lines. If an output FD was given, the signed text will be written to that. - - The behavior for detached signatures has not yet been specified. */ + + If the signature is a detached one, the server will inquire about + the signed material and the client must provide it. + */ static int cmd_verify (ASSUAN_CONTEXT ctx, char *line) { - + int fd = assuan_get_input_fd (ctx); - return set_error (Not_Implemented, "fixme"); + if (fd == -1) + return set_error (No_Input, NULL); + + gpgsm_verify (fd); + + return 0; } |