diff options
author | Werner Koch <[email protected]> | 2001-11-16 17:56:23 +0000 |
---|---|---|
committer | Werner Koch <[email protected]> | 2001-11-16 17:56:23 +0000 |
commit | 0f26760d9f550fd9aaa7d0c4f18f8571b7818142 (patch) | |
tree | f4c3c0756bdd5df1a9c370947c269fdd997542bb /sm/server.c | |
parent | We have reached a state where we are able to import certs and (diff) | |
download | gnupg-0f26760d9f550fd9aaa7d0c4f18f8571b7818142.tar.gz gnupg-0f26760d9f550fd9aaa7d0c4f18f8571b7818142.zip |
Base code for gpgsm --verify does work
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; } |