diff options
| author | Werner Koch <[email protected]> | 2001-11-26 13:08:36 +0000 |
|---|---|---|
| committer | Werner Koch <[email protected]> | 2001-11-26 13:08:36 +0000 |
| commit | 99829ef5fbff1c0a4aa9fb0b55b4720b44985c39 (patch) | |
| tree | 5780ab73d8432dcf7592a6d7a293ad20ac94ccc4 /sm/sign.c | |
| parent | More error codes (diff) | |
| download | gnupg-99829ef5fbff1c0a4aa9fb0b55b4720b44985c39.tar.gz gnupg-99829ef5fbff1c0a4aa9fb0b55b4720b44985c39.zip | |
* keydb.c (keydb_add_resource): Create keybox
* keylist.c (gpgsm_list_keys): Fixed non-server keylisting.
* server.c (rc_to_assuan_status): New. Use it for all commands.
Diffstat (limited to 'sm/sign.c')
| -rw-r--r-- | sm/sign.c | 15 |
1 files changed, 11 insertions, 4 deletions
@@ -244,16 +244,16 @@ gpgsm_sign (CTRL ctrl, int data_fd, int detached, FILE *out_fp) gcry_md_enable (data_md, algo); } + signer = 0; if (detached) - { /* we hash the data right now so tha we can store the message - digest. ksba_cms_build() takes this as an flag that deatched + { /* we hash the data right now so that we can store the message + digest. ksba_cms_build() takes this as an flag that detached data is expected. */ unsigned char *digest; size_t digest_len; /* Fixme do this for all signers and get the algo to use from the signer's certificate - does not make mich sense, bu we should do this consistent as we have already done it above */ - signer = 0; algo = GCRY_MD_SHA1; hash_data (data_fd, data_md); digest = gcry_md_read (data_md, algo); @@ -274,7 +274,14 @@ gpgsm_sign (CTRL ctrl, int data_fd, int detached, FILE *out_fp) } } - + err = ksba_cms_set_signing_time (cms, signer, 0 /*now*/); + if (err) + { + log_error ("ksba_cms_set_signing_time failed: %s\n", + ksba_strerror (err)); + rc = map_ksba_err (err); + goto leave; + } do { |
